summaryrefslogtreecommitdiff
path: root/src/engine.cpp
diff options
context:
space:
mode:
authorJosé Ávila <linux@javila.net>2005-06-17 07:20:03 +0000
committerJosé Ávila <linux@javila.net>2005-06-17 07:20:03 +0000
commitc702285ab5c288fc65dacdf81b583890d3b99c63 (patch)
tree589cffa9c16d15f18df4c988bbe300806e6f6425 /src/engine.cpp
parent50b0f0e7ea4508e1ee30f0a0ea8741af6d3212d4 (diff)
downloadmana-c702285ab5c288fc65dacdf81b583890d3b99c63.tar.gz
mana-c702285ab5c288fc65dacdf81b583890d3b99c63.tar.bz2
mana-c702285ab5c288fc65dacdf81b583890d3b99c63.tar.xz
mana-c702285ab5c288fc65dacdf81b583890d3b99c63.zip
new BrowserBox widget with colors/links support
Diffstat (limited to 'src/engine.cpp')
-rw-r--r--src/engine.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/engine.cpp b/src/engine.cpp
index 64015153..8bede976 100644
--- a/src/engine.cpp
+++ b/src/engine.cpp
@@ -65,6 +65,7 @@ TradeWindow *tradeWindow;
BuddyWindow *buddyWindow;
Menu *menu;
HelpWindow *helpWindow;
+PopupMenu *popupMenu;
std::map<int, Spriteset*> monsterset;
char hairtable[16][4][2] = {
@@ -195,6 +196,7 @@ Engine::Engine():
tradeWindow = new TradeWindow();
buddyWindow = new BuddyWindow();
helpWindow = new HelpWindow();
+ popupMenu = new PopupMenu();
/**
* Menu items
@@ -249,6 +251,7 @@ Engine::Engine():
buddyWindow->setVisible(false);
menu->setVisible(false);
helpWindow->setVisible(false);
+ popupMenu->setVisible(false);
// Do not focus any text field
gui->focusNone();
@@ -297,6 +300,7 @@ Engine::~Engine()
delete buddyWindow;
delete menu;
delete helpWindow;
+ delete popupMenu;
// Delete sprite sets
//delete monsterset;
@@ -409,7 +413,7 @@ void Engine::draw()
sx * 32 - 8 - offset_x,
sy * 32 - 52 - offset_y);
}
- else if (being->job < 10) { // Draw a player
+ else if ((being->job < 10) && (being->name != "")) { // Draw a player
being->text_x = sx * 32 + get_x_offset(being) - offset_x;
being->text_y = sy * 32 + get_y_offset(being) - offset_y;