summaryrefslogtreecommitdiff
path: root/src/gui.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-07-03 14:32:15 +0000
committerfrosch <frosch@openttd.org>2011-07-03 14:32:15 +0000
commit2a55273291191a25ff827321f9d5203e05f12c76 (patch)
tree9d3d49ae781ccb0f19f33f86d370da15e286e586 /src/gui.h
parent2158f4f1bf9e8bafd8602b07652f24019ecde8c9 (diff)
downloadopenttd-2a55273291191a25ff827321f9d5203e05f12c76.tar.xz
(svn r22629) -Fix [FS#4599]: Remove all usages of the ErrorRefStack. It was continuously overwritten by e.g. industry prospection without closing the old error window; also StopTextRefStackUsage() was not called for errors returned by commands (which caused FS#4599). Now return in the CommandCost result whether the textref stack needs to be used, and store a copy of the stack values in the error window just like for the normal string parameters.
Diffstat (limited to 'src/gui.h')
-rw-r--r--src/gui.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui.h b/src/gui.h
index 68ae76d0c..823423575 100644
--- a/src/gui.h
+++ b/src/gui.h
@@ -63,7 +63,7 @@ enum WarningLevel {
WL_CRITICAL, ///< Critical errors, the MessageBox is shown in all cases
};
-void ShowErrorMessage(StringID summary_msg, StringID detailed_msg, WarningLevel wl, int x = 0, int y = 0);
+void ShowErrorMessage(StringID summary_msg, StringID detailed_msg, WarningLevel wl, int x = 0, int y = 0, uint textref_stack_size = 0, const uint32 *textref_stack = NULL);
void ShowExtraViewPortWindow(TileIndex tile = INVALID_TILE);
void ShowExtraViewPortWindowForTileUnderCursor();