(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.
This commit is contained in:
4
newgrf.c
4
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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user