(svn r17629) [0.7] -Backport from trunk:

- Document: AIInfo's functions [FS#3216] (r17627, r17621)
- Fix: Prevent false positives when verifying company and president name lengths (r17611).
- Fix: When a command did not fail in test run and failed in exec run, error message was not set. Affects only few commands (r17607)
- Fix: [NewGRF] Crash when defining the same tile in a tile layout twice [FS#3218] (r17605)
This commit is contained in:
rubidium
2009-09-24 19:22:32 +00:00
parent 88f87bc4ac
commit 36649f354a
10 changed files with 292 additions and 10 deletions
+1 -1
View File
@@ -606,7 +606,7 @@ bool DoCommandP(TileIndex tile, uint32 p1, uint32 p2, uint32 cmd, CommandCallbac
assert(res.GetCost() == res2.GetCost() && CmdFailed(res) == CmdFailed(res2)); // sanity check
} else {
if (CmdFailed(res2)) {
res.SetGlobalErrorMessage();
res2.SetGlobalErrorMessage();
goto show_error;
}
}