diff options
author | Kent Mein <mein@cs.umn.edu> | 2002-12-30 10:13:26 +0300 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2002-12-30 10:13:26 +0300 |
commit | e9a7e307580d8c0b9827226de076b2b9bb6dfe33 (patch) | |
tree | 9461943e610f6ff8429f9b1126214958169a6f76 /source | |
parent | cc95cdd39081ecba8ca1ea51f7c362c2802e04a6 (diff) |
Removed another unused var and cleaned up a couple of lines of code
Here is the diff
Kent
Index: GameLogic/SCA_KeyboardSensor.cpp
===================================================================
RCS file: /cvs01/blender/source/gameengine/GameLogic/SCA_KeyboardSensor.cpp,v
retrieving revision 1.3
diff -u -r1.3 SCA_KeyboardSensor.cpp
--- GameLogic/SCA_KeyboardSensor.cpp 25 Nov 2002 15:29:42 -0000 1.3
+++ GameLogic/SCA_KeyboardSensor.cpp 30 Dec 2002 07:09:42 -0000
@@ -167,14 +167,14 @@
} else
{
- // cerr << "======= SCA_KeyboardSensor::Evaluate:: peeking at key status" << endl;
- const SCA_InputEvent & inevent = inputdev->GetEventValue((SCA_IInputDevice::KX_EnumInputs) m_hotkey);
+ // cerr << "======= SCA_KeyboardSensor::Evaluate:: peeking at key status" << endl;
+ const SCA_InputEvent & inevent = inputdev->GetEventValue(
+ (SCA_IInputDevice::KX_EnumInputs) m_hotkey);
- // cerr << "======= SCA_KeyboardSensor::Evaluate::
status: " << inevent.m_status << endl;
+ // cerr << "======= SCA_KeyboardSensor::Evaluate:: status: " << inevent.m_status << endl;
if (inevent.m_status == SCA_InputEvent::KX_NO_INPUTSTATUS)
{
- int i=4;
} else
{
if (inevent.m_status == SCA_InputEvent::KX_JUSTACTIVATED)
Diffstat (limited to 'source')
-rw-r--r-- | source/gameengine/GameLogic/SCA_KeyboardSensor.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/gameengine/GameLogic/SCA_KeyboardSensor.cpp b/source/gameengine/GameLogic/SCA_KeyboardSensor.cpp index 0352d5d7c67..d31e2ae9200 100644 --- a/source/gameengine/GameLogic/SCA_KeyboardSensor.cpp +++ b/source/gameengine/GameLogic/SCA_KeyboardSensor.cpp @@ -167,14 +167,14 @@ bool SCA_KeyboardSensor::Evaluate(CValue* eventval) } else { - // cerr << "======= SCA_KeyboardSensor::Evaluate:: peeking at key status" << endl; - const SCA_InputEvent & inevent = inputdev->GetEventValue((SCA_IInputDevice::KX_EnumInputs) m_hotkey); + // cerr << "======= SCA_KeyboardSensor::Evaluate:: peeking at key status" << endl; + const SCA_InputEvent & inevent = inputdev->GetEventValue( + (SCA_IInputDevice::KX_EnumInputs) m_hotkey); - // cerr << "======= SCA_KeyboardSensor::Evaluate:: status: " << inevent.m_status << endl; + // cerr << "======= SCA_KeyboardSensor::Evaluate:: status: " << inevent.m_status << endl; if (inevent.m_status == SCA_InputEvent::KX_NO_INPUTSTATUS) { - int i=4; } else { if (inevent.m_status == SCA_InputEvent::KX_JUSTACTIVATED) |