From 55f334751475a2e1826c51ac43d27445f5c8a8ac Mon Sep 17 00:00:00 2001 From: truelight Date: Tue, 14 Dec 2004 18:13:02 +0000 Subject: (svn r1085) -Fix: [Network] [ 1084834 ] If IF_IN_NETWORK flag was on, an error resulted in infinite money (or assert) --- command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'command.c') diff --git a/command.c b/command.c index c9bcdb59a..95c290b9c 100644 --- a/command.c +++ b/command.c @@ -472,7 +472,7 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, CommandCallback *callback, // If notest is on, it means the result of the test can be different then // the real command.. so ignore the test - if (!notest) { + if (!notest && !((cmd & CMD_NO_TEST_IF_IN_NETWORK) && _networking)) { assert(res == res2); // sanity check } else { if ((uint32)res2 >> 16 == 0x8000) { -- cgit v1.2.3-54-g00ecf