mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-13 09:39:10 +00:00
(svn r4474) - NewGRF: Skip non-fatal errors when not in stage 2.
This commit is contained in:
4
newgrf.c
4
newgrf.c
@@ -2076,8 +2076,10 @@ static void GRFError(byte *buf, int len)
|
|||||||
msgid = buf[3];
|
msgid = buf[3];
|
||||||
|
|
||||||
// Undocumented TTDPatch feature.
|
// 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;
|
return;
|
||||||
|
}
|
||||||
severity &= 0x7F;
|
severity &= 0x7F;
|
||||||
|
|
||||||
if (msgid == 0xFF) {
|
if (msgid == 0xFF) {
|
||||||
|
Reference in New Issue
Block a user