diff options
author | krzys-h <krzys_h@interia.pl> | 2014-01-11 17:51:13 +0100 |
---|---|---|
committer | krzys-h <krzys_h@interia.pl> | 2014-10-29 16:08:55 +0100 |
commit | d91569e165083a7c12b1c672713a9725d80c261c (patch) | |
tree | cdd8629522f413c724cb5e9cb7266378277e5315 /src/object/robotmain.cpp | |
parent | 7af762329b7b9bc93a4333cbde90fb1efa69e3a0 (diff) | |
download | colobot-d91569e165083a7c12b1c672713a9725d80c261c.tar.gz colobot-d91569e165083a7c12b1c672713a9725d80c261c.tar.bz2 colobot-d91569e165083a7c12b1c672713a9725d80c261c.zip |
Showing coordinates in stats menu (F12/showstat); removed "showpos" cheat
Issue #277
Conflicts:
src/object/cheat.cpp
src/object/robotmain.cpp
src/object/robotmain.h
Diffstat (limited to 'src/object/robotmain.cpp')
-rw-r--r-- | src/object/robotmain.cpp | 20 |
1 files changed, 4 insertions, 16 deletions
diff --git a/src/object/robotmain.cpp b/src/object/robotmain.cpp index adbe81d..90faceb 100644 --- a/src/object/robotmain.cpp +++ b/src/object/robotmain.cpp @@ -673,7 +673,6 @@ CRobotMain::CRobotMain(CApplication* app, bool loadProfile) m_editFull = false; m_hilite = false; m_freePhoto = false; - m_showPos = false; m_selectInsect = false; m_showSoluce = false; @@ -2080,12 +2079,6 @@ void CRobotMain::ExecuteCmd(char *cmd) return; } - if (strcmp(cmd, "showpos") == 0) - { - m_showPos = !m_showPos; - return; - } - if (strcmp(cmd, "selectinsect") == 0) { m_selectInsect = !m_selectInsect; @@ -3369,16 +3362,11 @@ void CRobotMain::AbortMovie() //! Updates the text information void CRobotMain::UpdateInfoText() { - if (m_showPos) + CObject* obj = GetSelect(); + if (obj != nullptr) { - CObject* obj = GetSelect(); - if (obj != nullptr) - { - Math::Vector pos = obj->GetPosition(0); - char info[100]; - sprintf(info, "Pos = %.2f ; %.2f", pos.x/g_unit, pos.z/g_unit); - //TODO: m_engine->SetInfoText(4, info); - } + Math::Vector pos = obj->GetPosition(0); + m_engine->SetStatisticPos(pos); } } |