summaryrefslogtreecommitdiff
path: root/openttd.c
diff options
context:
space:
mode:
authortron <tron@openttd.org>2005-11-13 21:16:34 +0000
committertron <tron@openttd.org>2005-11-13 21:16:34 +0000
commit357aba747578ecd3b8cc1a29bc740634211ada37 (patch)
treed66fcca83a94bececa75c9b65acbde8161e9e4be /openttd.c
parenteeade6978653e60e587f132f44b8d370244cc7bd (diff)
downloadopenttd-357aba747578ecd3b8cc1a29bc740634211ada37.tar.xz
(svn r3176) Use proper types, not some variants of int
Diffstat (limited to 'openttd.c')
-rw-r--r--openttd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/openttd.c b/openttd.c
index ede882c11..783b58810 100644
--- a/openttd.c
+++ b/openttd.c
@@ -789,9 +789,9 @@ void SwitchMode(int new_mode)
}
case SM_LOAD_SCENARIO: { /* Load scenario from scenario editor */
- int i;
-
if (SafeSaveOrLoad(_file_to_saveload.name, _file_to_saveload.mode, GM_EDITOR)) {
+ PlayerID i;
+
_opt_ptr = &_opt;
_local_player = OWNER_NONE;
@@ -1283,8 +1283,9 @@ bool AfterLoadGame(uint version)
}
if (version < 0x1000) {
- int i;
FOR_ALL_PLAYERS(p) {
+ EngineID i;
+
for (i = 0; i < TOTAL_NUM_ENGINES; i++) {
p->engine_replacement[i] = INVALID_ENGINE;
}