(svn r1085) -Fix: [Network] [ 1084834 ] If IF_IN_NETWORK flag was on, an error

resulted in infinite money (or assert)
This commit is contained in:
truelight 2004-12-14 18:13:02 +00:00
parent 23612e41f2
commit 55f3347514
1 changed files with 1 additions and 1 deletions

View File

@ -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) {