diff options
author | frosch <frosch@openttd.org> | 2010-10-16 22:34:43 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2010-10-16 22:34:43 +0000 |
commit | 375be9a073365549883c6f146cc195c824e7e491 (patch) | |
tree | 02199fc342b1ddd7194cd7c0ed9041d9c0e54793 /src | |
parent | aa688689b1e282537680657c4e268391ef52c4b7 (diff) | |
download | openttd-375be9a073365549883c6f146cc195c824e7e491.tar.xz |
(svn r20954) -Codechange (r20952, r20953): Don't make stuff more complicated than needed.
Diffstat (limited to 'src')
-rw-r--r-- | src/gamelog.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gamelog.cpp b/src/gamelog.cpp index b331d253a..a271d6dd0 100644 --- a/src/gamelog.cpp +++ b/src/gamelog.cpp @@ -261,7 +261,7 @@ void GamelogPrint(GamelogPrintProc *proc) GrfIDMapping::Pair *gm = grf_names.Find(lc->grfrem.grfid); AddDebugText(buf, "GRF parameter changed: "); PrintGrfInfo(buf, lc->grfparam.grfid, NULL, gm != grf_names.End() ? gm->second : NULL); - if (!grf_names.Contains(lc->grfparam.grfid)) AddDebugText(buf, ". Gamelog inconsistency: GrfID was never added!"); + if (gm == grf_names.End()) AddDebugText(buf, ". Gamelog inconsistency: GrfID was never added!"); break; } @@ -270,7 +270,7 @@ void GamelogPrint(GamelogPrintProc *proc) AddDebugText(buf, "GRF order changed: %08X moved %d places %s", BSWAP32(lc->grfmove.grfid), abs(lc->grfmove.offset), lc->grfmove.offset >= 0 ? "down" : "up" ); PrintGrfInfo(buf, lc->grfmove.grfid, NULL, gm != grf_names.End() ? gm->second : NULL); - if (!grf_names.Contains(lc->grfmove.grfid)) AddDebugText(buf, ". Gamelog inconsistency: GrfID was never added!"); + if (gm == grf_names.End()) AddDebugText(buf, ". Gamelog inconsistency: GrfID was never added!"); break; } @@ -283,7 +283,7 @@ void GamelogPrint(GamelogPrintProc *proc) break; } PrintGrfInfo(buf, lc->grfbug.grfid, NULL, gm != grf_names.End() ? gm->second : NULL); - if (!grf_names.Contains(lc->grfbug.grfid)) AddDebugText(buf, ". Gamelog inconsistency: GrfID was never added!"); + if (gm == grf_names.End()) AddDebugText(buf, ". Gamelog inconsistency: GrfID was never added!"); break; } |