From 4c53365c16362156529c7669079e31845384589f Mon Sep 17 00:00:00 2001 From: Stijn Buys Date: Sat, 7 Mar 2009 13:57:09 +0000 Subject: renamed Entity::eventstate() to Entity::state(), introduced Destroyed state --- src/client/hud.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/client/hud.cc') diff --git a/src/client/hud.cc b/src/client/hud.cc index 014f4df..c1cd8c1 100644 --- a/src/client/hud.cc +++ b/src/client/hud.cc @@ -246,7 +246,7 @@ void HUD::draw() } } - unsigned int state = core::localcontrol()->eventstate(); + unsigned int state = core::localcontrol()->state(); if (state) { std::stringstream statestr; statestr.clear(); @@ -322,13 +322,13 @@ void HUD::draw() gl::end(); float u = core::localcontrol()->thrust(); - if (core::localcontrol()->eventstate() == core::Entity::Impulse) { + if (core::localcontrol()->state() == core::Entity::Impulse) { u = 1.0; } - if (( u > 0) || (core::localcontrol()->eventstate() == core::Entity::Impulse)) { + if (( u > 0) || (core::localcontrol()->state() == core::Entity::Impulse)) { - if (core::localcontrol()->eventstate() == core::Entity::Impulse) { + if (core::localcontrol()->state() == core::Entity::Impulse) { gl::color(0, .8, 0); } else { float d = math::absf(input::local_thrust - u); -- cgit v1.2.3