summaryrefslogtreecommitdiff
path: root/newgrf.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-12-29 13:59:48 +0000
committerDarkvater <darkvater@openttd.org>2006-12-29 13:59:48 +0000
commit649b25bd11434a9631d6f3a29f2d9fb36b2880de (patch)
treefe64ccf24044b6f9be0f7d19f02e41bbde9dac4a /newgrf.c
parent5bb559a978712b872873b78b2c5e75ded06f3913 (diff)
downloadopenttd-649b25bd11434a9631d6f3a29f2d9fb36b2880de.tar.xz
(svn r7616) -Cleanup:
-(re)set _rename_[id/what] to -1 to catch invalid calls (main_gui.c) -Only invalidate widget of pause/ff instead of whole window (main_gui.c) -Remove numbering from WE_ and WC_ as it's not needed, also remove non-existing windowclasses (window.h, openttd.h) -Give names to some of the enums (window.h) -In UninitWindowSystem not only free malloc'd widgets, but also reset the z-array (window.c) -Some coding style, comments, etc.
Diffstat (limited to 'newgrf.c')
-rw-r--r--newgrf.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/newgrf.c b/newgrf.c
index ea91c1e33..fa7d0ed86 100644
--- a/newgrf.c
+++ b/newgrf.c
@@ -2483,9 +2483,7 @@ static void SafeInfo(byte *buf, int len)
info = name + name_len + 1;
info_len = ttd_strnlen(info, len);
- if (info_len < len) {
- _cur_grfconfig->info = TranslateTTDPatchCodes(info);
- }
+ if (info_len < len) _cur_grfconfig->info = TranslateTTDPatchCodes(info);
}
}