diff options
author | truelight <truelight@openttd.org> | 2004-12-14 18:13:02 +0000 |
---|---|---|
committer | truelight <truelight@openttd.org> | 2004-12-14 18:13:02 +0000 |
commit | 9dec8ca01ee7cffa67fe9a4f50fea3413177f2f4 (patch) | |
tree | 3f0a5ce3c6d43a283f77392f8c14a31099156126 | |
parent | 6189664ad3a7e2d199f5d0a05483f50e78c04fd2 (diff) | |
download | openttd-9dec8ca01ee7cffa67fe9a4f50fea3413177f2f4.tar.xz |
(svn r1085) -Fix: [Network] [ 1084834 ] If IF_IN_NETWORK flag was on, an error
resulted in infinite money (or assert)
-rw-r--r-- | command.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |