From 0c889ec8c65d6068f4c863b169d61b5acf1ffde6 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Wed, 19 Apr 2006 07:50:16 +0000 Subject: (svn r4474) - NewGRF: Skip non-fatal errors when not in stage 2. --- newgrf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'newgrf.c') diff --git a/newgrf.c b/newgrf.c index dda73ad8d..a5efdff4d 100644 --- a/newgrf.c +++ b/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) { -- cgit v1.2.3-54-g00ecf