diff options
author | celestar <celestar@openttd.org> | 2005-06-21 16:28:17 +0000 |
---|---|---|
committer | celestar <celestar@openttd.org> | 2005-06-21 16:28:17 +0000 |
commit | 354058341b8500cbb0075c0c568ec12063e84fe7 (patch) | |
tree | dbd1b9d6a856fcab15da2adfe0bacfb2bdc19b7e /oldloader.c | |
parent | 09f92807fc061b80b976a4134d71670ef4ef64fa (diff) | |
download | openttd-354058341b8500cbb0075c0c568ec12063e84fe7.tar.xz |
(svn r2468) -Codechange: Got rid of DEREF_PLAYER and replaced it by GetPlayer
Diffstat (limited to 'oldloader.c')
-rw-r--r-- | oldloader.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/oldloader.c b/oldloader.c index df3eb584a..3f85161df 100644 --- a/oldloader.c +++ b/oldloader.c @@ -810,7 +810,7 @@ static const OldChunks player_yearly_chunk[] = { static bool OldPlayerYearly(LoadgameState *ls, int num) { int i; - Player *p = DEREF_PLAYER(_current_player_id); + Player *p = GetPlayer(_current_player_id); for (i = 0; i < 13; i++) { if (!LoadChunk(ls, NULL, player_yearly_chunk)) @@ -834,7 +834,7 @@ static const OldChunks player_economy_chunk[] = { static bool OldPlayerEconomy(LoadgameState *ls, int num) { int i; - Player *p = DEREF_PLAYER(_current_player_id); + Player *p = GetPlayer(_current_player_id); if (!LoadChunk(ls, &p->cur_economy, player_economy_chunk)) return false; @@ -872,7 +872,7 @@ static const OldChunks player_ai_build_rec_chunk[] = { }; static bool OldLoadAIBuildRec(LoadgameState *ls, int num) { - Player *p = DEREF_PLAYER(_current_player_id); + Player *p = GetPlayer(_current_player_id); switch (num) { case 0: return LoadChunk(ls, &p->ai.src, player_ai_build_rec_chunk); @@ -987,7 +987,7 @@ static const OldChunks player_ai_chunk[] = { }; static bool OldPlayerAI(LoadgameState *ls, int num) { - Player *p = DEREF_PLAYER(_current_player_id); + Player *p = GetPlayer(_current_player_id); return LoadChunk(ls, &p->ai, player_ai_chunk); } @@ -1035,7 +1035,7 @@ static const OldChunks player_chunk[] = { }; static bool LoadOldPlayer(LoadgameState *ls, int num) { - Player *p = DEREF_PLAYER(num); + Player *p = GetPlayer(num); _current_player_id = num; |