Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2009-03-07 13:57:09 +0000
committerStijn Buys <ingar@osirion.org>2009-03-07 13:57:09 +0000
commit4c53365c16362156529c7669079e31845384589f (patch)
tree193bb5d05299d2acb38311d108c1d39b6e1dd229 /src/client/playerview.cc
parentee2200638be3fcb14097f3e8b0abb93e210f93d9 (diff)
renamed Entity::eventstate() to Entity::state(),
introduced Destroyed state
Diffstat (limited to 'src/client/playerview.cc')
-rw-r--r--src/client/playerview.cc12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/client/playerview.cc b/src/client/playerview.cc
index f129a1e..54d444d 100644
--- a/src/client/playerview.cc
+++ b/src/client/playerview.cc
@@ -144,6 +144,9 @@ void PlayerView::draw()
{
if (core::localplayer()->view()) {
+ // hide hide when a view is set
+ view_hud->hide();
+
// docking view
if (core::localplayer()->view()->menus().size()) {
@@ -154,11 +157,13 @@ void PlayerView::draw()
label_zonename->show();
if (view_lastentity != core::localplayer()->view()) {
- // initialy show the menu
+ // initially show the menu
show_menu("main");
map()->hide();
chat()->hide();
audio::play("ui/menu");
+
+ view_lastentity = core::localplayer()->view();
} else if (!view_menu->visible() && !map()->visible() && (!chat()->visible() || chat()->small_view()) ) {
// show the menu if there's no other window open
menu()->show();
@@ -167,13 +172,12 @@ void PlayerView::draw()
} else {
// entity without menus, plain view
+ view_lastentity = 0;
+
this->hide();
return;
}
- view_hud->hide();
- view_lastentity = core::localplayer()->view();
-
} else {
if (view_menu->visible()) {
view_menu->hide();