mirror of https://github.com/OpenTTD/OpenTTD.git
(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:
parent
23612e41f2
commit
55f3347514
|
@ -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…
Reference in New Issue