mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-08-27 08:29:11 +00:00
(svn r2206) - Regression Fix: slight typo of res2 into res, this also fixes recent bug "[ 1183396 ] Train can't find depot, it gives money in Multiplayer"
This commit is contained in:
@@ -490,7 +490,7 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, CommandCallback *callback,
|
|||||||
if (!notest && !((cmd & CMD_NO_TEST_IF_IN_NETWORK) && _networking)) {
|
if (!notest && !((cmd & CMD_NO_TEST_IF_IN_NETWORK) && _networking)) {
|
||||||
assert(res == res2); // sanity check
|
assert(res == res2); // sanity check
|
||||||
} else {
|
} else {
|
||||||
if (CmdFailed(res)) {
|
if (CmdFailed(res2)) {
|
||||||
if (res2 & 0xFFFF) _error_message = res2 & 0xFFFF;
|
if (res2 & 0xFFFF) _error_message = res2 & 0xFFFF;
|
||||||
goto show_error;
|
goto show_error;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user