mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r4474) - NewGRF: Skip non-fatal errors when not in stage 2.
This commit is contained in:
parent
de84d6338d
commit
0c889ec8c6
4
newgrf.c
4
newgrf.c
@ -2076,8 +2076,10 @@ static void GRFError(byte *buf, int len)
|
||||
msgid = buf[3];
|
||||
|
||||
// Undocumented TTDPatch feature.
|
||||
if ((severity & 0x80) == 0 && _cur_stage == 0)
|
||||
if ((severity & 0x80) == 0 && _cur_stage < 2) {
|
||||
DEBUG(grf, 7) ("Skipping non-fatal GRFError in stage 1");
|
||||
return;
|
||||
}
|
||||
severity &= 0x7F;
|
||||
|
||||
if (msgid == 0xFF) {
|
||||
|
Loading…
Reference in New Issue
Block a user