summaryrefslogtreecommitdiff
path: root/src/group_cmd.cpp
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2009-09-13 19:15:59 +0000
committerfrosch <frosch@openttd.org>2009-09-13 19:15:59 +0000
commitebd916be3def20902cf19ffd16555074728eb9c3 (patch)
treec7748d7612a61b9558ffd10ffb176e34584f2376 /src/group_cmd.cpp
parent5de9cc46b50b8e677395543c10b26b59c860212b (diff)
downloadopenttd-ebd916be3def20902cf19ffd16555074728eb9c3.tar.xz
(svn r17532) -Codechange: Rename several Invalidate functions to SetDirty for more consistency and distinguishability.
Diffstat (limited to 'src/group_cmd.cpp')
-rw-r--r--src/group_cmd.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/group_cmd.cpp b/src/group_cmd.cpp
index 61875e1b7..69f39cca3 100644
--- a/src/group_cmd.cpp
+++ b/src/group_cmd.cpp
@@ -228,7 +228,7 @@ CommandCost CmdAddVehicleGroup(TileIndex tile, DoCommandFlag flags, uint32 p1, u
}
/* Update the Replace Vehicle Windows */
- InvalidateWindow(WC_REPLACE_VEHICLE, v->type);
+ SetWindowDirty(WC_REPLACE_VEHICLE, v->type);
InvalidateWindowData(GetWindowClassForVehicleType(v->type), (v->type << 11) | VLW_GROUP_LIST | _current_company);
}
@@ -362,7 +362,7 @@ void SetTrainGroupID(Train *v, GroupID new_g)
}
/* Update the Replace Vehicle Windows */
- InvalidateWindow(WC_REPLACE_VEHICLE, VEH_TRAIN);
+ SetWindowDirty(WC_REPLACE_VEHICLE, VEH_TRAIN);
}
@@ -385,7 +385,7 @@ void UpdateTrainGroupID(Train *v)
}
/* Update the Replace Vehicle Windows */
- InvalidateWindow(WC_REPLACE_VEHICLE, VEH_TRAIN);
+ SetWindowDirty(WC_REPLACE_VEHICLE, VEH_TRAIN);
}
uint GetGroupNumEngines(CompanyID company, GroupID id_g, EngineID id_e)