forked from mirror/OpenTTD
(svn r169) -Fix: move around sort-widgets a bit so it looks more natural
-Fix: savegames are sorted with newest date first by default -Codechange: refine sorter functions -Fix: fixed linux warnings (tokai)
This commit is contained in:
@@ -521,8 +521,8 @@ static void TileLoopWaterHelper(uint tile, const int16 *offs)
|
||||
static void FloodVehicle(Vehicle *v)
|
||||
{
|
||||
Vehicle *u;
|
||||
uint16 pass;
|
||||
if (!(v->vehstatus & VS_CRASHED)) {
|
||||
uint16 pass = 0;
|
||||
|
||||
if (v->type == VEH_Road) { // flood bus/truck
|
||||
pass = 1; // driver
|
||||
@@ -550,7 +550,8 @@ static void FloodVehicle(Vehicle *v)
|
||||
v->u.rail.crash_anim_pos = 4000; // max 4440, disappear pretty fast
|
||||
_vehicle_sort_dirty[VEHTRAIN] = true;
|
||||
InvalidateWindow(WC_TRAINS_LIST, v->owner);
|
||||
}
|
||||
} else
|
||||
return;
|
||||
|
||||
InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, 4);
|
||||
InvalidateWindow(WC_VEHICLE_DEPOT, v->tile);
|
||||
|
Reference in New Issue
Block a user