From 57b2c49d571ac160d03b9bc30b6eb72976bfe82a Mon Sep 17 00:00:00 2001 From: Magnus Auvinen Date: Mon, 15 Jun 2009 13:16:33 +0000 Subject: fixed so that the demo player doesn't crash when the map isn't found --- src/game/client/components/menus.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/game/client/components/menus.hpp') diff --git a/src/game/client/components/menus.hpp b/src/game/client/components/menus.hpp index 3ca3ee43..15369dbc 100644 --- a/src/game/client/components/menus.hpp +++ b/src/game/client/components/menus.hpp @@ -68,6 +68,7 @@ class MENUS : public COMPONENT POPUP_NONE=0, POPUP_FIRST_LAUNCH, POPUP_CONNECTING, + POPUP_MESSAGE, POPUP_DISCONNECTED, POPUP_PURE, POPUP_PASSWORD, @@ -95,6 +96,13 @@ class MENUS : public COMPONENT vec2 mouse_pos; int64 last_input; + + // + char message_topic[512]; + char message_body[512]; + char message_button[512]; + + void popup_message(const char *topic, const char *body, const char *button); // TODO: this is a bit ugly but.. well.. yeah enum { MAX_INPUTEVENTS = 32 }; -- cgit 1.4.1