diff options
author | Ira Rice <irarice@gmail.com> | 2009-01-09 21:24:13 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-01-09 21:24:13 -0700 |
commit | 0dabbade690301ef89da2fb2562da8e48afc22d3 (patch) | |
tree | af73cc3f45c48dc0cf97b8c0fc3048f11eaaec03 /src/gui/viewport.cpp | |
parent | 43630ab7969fa26cb0a3e2773e7266f2f9647867 (diff) | |
download | mana-0dabbade690301ef89da2fb2562da8e48afc22d3.tar.gz mana-0dabbade690301ef89da2fb2562da8e48afc22d3.tar.bz2 mana-0dabbade690301ef89da2fb2562da8e48afc22d3.tar.xz mana-0dabbade690301ef89da2fb2562da8e48afc22d3.zip |
Added the ability to see your own name in game.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/viewport.cpp')
-rw-r--r-- | src/gui/viewport.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gui/viewport.cpp b/src/gui/viewport.cpp index 080ebddc..75b756f5 100644 --- a/src/gui/viewport.cpp +++ b/src/gui/viewport.cpp @@ -93,6 +93,10 @@ Viewport::draw(gcn::Graphics *gcnGraphics) Graphics *graphics = static_cast<Graphics*>(gcnGraphics); + // Ensure the client doesn't freak out if a feature localplayer uses + // is dependent on a map. + player_node->mMapInitialized = true; + // Avoid freaking out when tick_time overflows if (tick_time < lastTick) { @@ -196,6 +200,13 @@ Viewport::draw(gcn::Graphics *gcnGraphics) } } + if (player_node->mUpdateName) + { + player_node->mUpdateName = false; + player_node->setName(player_node->getName()); + } + + // Draw text if (textManager) { |