diff options
author | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-03 11:31:39 +0200 |
---|---|---|
committer | Bjørn Lindeijer <bjorn@lindeijer.nl> | 2009-05-03 11:37:00 +0200 |
commit | 91242cdfe50922e7258a04743bd940956c0453da (patch) | |
tree | 85e66499c7a12920ec2309142e839abd74bee53b /src/gui | |
parent | 1bc515864c9f317562b3edb0267a3cc4db5737ad (diff) | |
download | mana-91242cdfe50922e7258a04743bd940956c0453da.tar.gz mana-91242cdfe50922e7258a04743bd940956c0453da.tar.bz2 mana-91242cdfe50922e7258a04743bd940956c0453da.tar.xz mana-91242cdfe50922e7258a04743bd940956c0453da.zip |
Moved mIsGM from Being to Player and made isGM() const
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/minimap.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/minimap.cpp b/src/gui/minimap.cpp index b4a70d18..bae599a8 100644 --- a/src/gui/minimap.cpp +++ b/src/gui/minimap.cpp @@ -170,7 +170,7 @@ void Minimap::draw(gcn::Graphics *graphics) for (Beings::const_iterator bi = beings.begin(), bi_end = beings.end(); bi != bi_end; ++bi) { - Being *being = (*bi); + const Being *being = (*bi); int dotSize = 2; switch (being->getType()) @@ -185,7 +185,7 @@ void Minimap::draw(gcn::Graphics *graphics) dotSize = 3; } - if (static_cast<Player*>(being)->isGM()) + if (static_cast<const Player*>(being)->isGM()) type = Palette::GM_NAME; graphics->setColor(guiPalette->getColor(type)); |