forked from mirror/OpenTTD
(svn r4654) - Fix [NewGRF]: Properly read in the GRFID. This fixes GRFID checking and activation/deactivation. Do swap the GRFID for displaying purposes.
This commit is contained in:
@@ -957,7 +957,7 @@ static void NewgrfWndProc(Window *w, WindowEvent *e)
|
||||
|
||||
// draw grf id
|
||||
x = DrawString(5, 209, STR_NEWGRF_GRF_ID, 0);
|
||||
snprintf(_userstring, lengthof(_userstring), "%08X", _sel_grffile->grfid);
|
||||
snprintf(_userstring, lengthof(_userstring), "%08X", BSWAP32(_sel_grffile->grfid));
|
||||
DrawString(x + 2, 209, STR_SPEC_USERSTRING, 0x01);
|
||||
}
|
||||
} break;
|
||||
|
Reference in New Issue
Block a user