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

resulted in infinite money (or assert)
pull/155/head
truelight 20 years ago
parent 6189664ad3
commit 9dec8ca01e

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

Loading…
Cancel
Save