diff options
author | tron <tron@openttd.org> | 2005-11-13 21:16:34 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2005-11-13 21:16:34 +0000 |
commit | 357aba747578ecd3b8cc1a29bc740634211ada37 (patch) | |
tree | d66fcca83a94bececa75c9b65acbde8161e9e4be /openttd.c | |
parent | eeade6978653e60e587f132f44b8d370244cc7bd (diff) | |
download | openttd-357aba747578ecd3b8cc1a29bc740634211ada37.tar.xz |
(svn r3176) Use proper types, not some variants of int
Diffstat (limited to 'openttd.c')
-rw-r--r-- | openttd.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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; } |