remove commented out callproc/funcs

This commit is contained in:
IntelOrca committed 2016-02-16 20:10:24 +00:00
1 parent 115f600735
commit 5cf0c4bd07
5 files changed
+2 -33

No files matched your search

+2 -2
View File
@@ -1091,8 +1091,8 @@ void process_mouse_over(int x, int y)
ebx = 0;
edi = cursorId;
esi = (int)subWindow;
// Not sure what this is for, no windows actually implement a handler
// RCT2_CALLFUNC_X(subWindow->event_handlers[WE_UNKNOWN_0E], &eax, &ebx, &ecx, &edx, &esi, &edi, &ebp);
// Window event WE_UNKNOWN_0E was called here, but no windows actually implemented a handler and
// its not known what it was for
cursorId = edi;
if ((ebx & 0xFF) != 0)
{
-2
View File
@@ -7791,8 +7791,6 @@ void sub_6CB945(int rideIndex)
}
} while (!map_element_is_last_for_tile(mapElement++));
}
//RCT2_CALLPROC_X(0x006CB945, 0, 0, 0, rideIndex, 0, 0, 0);
}
/**
-4
View File
@@ -632,10 +632,6 @@ static void ride_ratings_calculate(rct_ride *ride)
ride->ratings.nausea = max(0, ride->ratings.nausea);
}
#endif
// Original ride calculation
// calcFunc = RCT2_ADDRESS(0x0097E050, ride_ratings_calculation)[ride->type];
// RCT2 CALLPROC X((int)calcFunc, 0, 0, 0, 0, 0, (int)ride, 0);
}
static void ride_ratings_calculate_value(rct_ride *ride)
-11
View File
@@ -7965,23 +7965,12 @@ int vehicle_update_track_motion(rct_vehicle *vehicle, int *outStation)
{
registers regs = { 0 };
//////////////////////////////////////////////////////////////////////////////////////////
regs.esi = (int)vehicle;
//RCT2_CALLFUNC_Y(0x006DAB4C, &regs);
//if (outStation != NULL) *outStation = regs.ebx;
//return regs.eax;
//////////////////////////////////////////////////////////////////////////////////////////
rct_ride *ride = get_ride(vehicle->ride);
rct_ride_type *rideEntry = get_ride_entry(vehicle->ride_subtype);
rct_ride_type_vehicle *vehicleEntry = vehicle_get_vehicle_entry(vehicle);
rct_map_element *mapElement = NULL;
// esi = vehicle
// eax = rideEntry
// edi = vehicleEntry
if (vehicleEntry->flags_a & VEHICLE_ENTRY_FLAG_A_MINI_GOLF) {
return vehicle_update_track_motion_mini_golf(vehicle, outStation);
}
-14
View File
@@ -1639,20 +1639,6 @@ static money32 map_set_land_height(int flags, int x, int y, int height, int styl
}
}
//Uncomment to use vanilla code
/*
registers regs = {0};
regs.eax = x;
regs.ebx = flags;
regs.ecx = y;
regs.dl = height;
regs.dh = style;
regs.esi = 0;
regs.edi = selectionType << 5;
regs.ebp = 0;
RCT2_CALLFUNC_Y(0x006639FE, &regs); return regs.ebx;
*/
RCT2_GLOBAL(0x9E2E18, money32) = MONEY(0, 0);
if(flags & GAME_COMMAND_FLAG_APPLY)
{