Files
@ r12087:0095f1069b29
Branch filter:
Location: cpp/openttd-patchpack/source/src/statusbar_gui.h - annotation
r12087:0095f1069b29
560 B
text/x-c
(svn r16502) -Fix [FS#2935]: when an AI was suspended while in a function called (indirectly) via call/acall/pcall OpenTTD crashed. Fix this by disallowing AIs to be suspended while called via call/acall/pcall.
IMPORTANT FOR AI WRITERS: AIs can no longer call any DoCommand functions (change anything, build vehicles, etc.) in a function called (indirectly) via call/acall/pcall. Where possible, please rewrite your code so it doesn't use call/acall/pcall
IMPORTANT FOR AI WRITERS: AIs can no longer call any DoCommand functions (change anything, build vehicles, etc.) in a function called (indirectly) via call/acall/pcall. Where possible, please rewrite your code so it doesn't use call/acall/pcall
r9248:afa00db99401 r9248:afa00db99401 r9248:afa00db99401 r9248:afa00db99401 r9248:afa00db99401 r9248:afa00db99401 r9248:afa00db99401 r10646:b3b2c1ecae0d r10646:b3b2c1ecae0d r10646:b3b2c1ecae0d r10646:b3b2c1ecae0d r10646:b3b2c1ecae0d r10646:b3b2c1ecae0d r9248:afa00db99401 r9248:afa00db99401 r9248:afa00db99401 r9248:afa00db99401 r9248:afa00db99401 r9248:afa00db99401 r9248:afa00db99401 | /* $Id$ */
/** @file statusbar_gui.h Functions, definitions and such used only by the GUI. */
#ifndef STATUSBAR_GUI_H
#define STATUSBAR_GUI_H
enum StatusBarInvalidate {
SBI_SAVELOAD_START, ///< started saving
SBI_SAVELOAD_FINISH, ///< finished saving
SBI_SHOW_TICKER, ///< start scolling news
SBI_SHOW_REMINDER, ///< show a reminder (dot on the right side of the statusbar)
SBI_NEWS_DELETED, ///< abort current news display (active news were deleted)
SBI_END
};
bool IsNewsTickerShown();
void ShowStatusBar();
#endif /* STATUSBAR_GUI_H */
|