summaryrefslogtreecommitdiff
path: root/src/keyboardconfig.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-03-12 21:28:54 +0300
committerAndrei Karas <akaras@inbox.ru>2013-03-12 21:28:54 +0300
commit5c66d91e3e69446081ef6254063ad638fbc48aca (patch)
treec3bb94057bcd4bdbb8568e815c7f18c44417a78a /src/keyboardconfig.cpp
parentf6000c9088ee63428f65ee980f6751f85a7e7d7e (diff)
downloadmanaverse-5c66d91e3e69446081ef6254063ad638fbc48aca.tar.gz
manaverse-5c66d91e3e69446081ef6254063ad638fbc48aca.tar.bz2
manaverse-5c66d91e3e69446081ef6254063ad638fbc48aca.tar.xz
manaverse-5c66d91e3e69446081ef6254063ad638fbc48aca.zip
Fix code style.
Diffstat (limited to 'src/keyboardconfig.cpp')
-rw-r--r--src/keyboardconfig.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/keyboardconfig.cpp b/src/keyboardconfig.cpp
index 7287ed3ad..47ef4a06c 100644
--- a/src/keyboardconfig.cpp
+++ b/src/keyboardconfig.cpp
@@ -214,7 +214,8 @@ void KeyboardConfig::handleRepeat(const int time)
}
if (repeat)
{
- if (time > keyTime && abs(time - keyTime) > mRepeatTime)
+ if (time > keyTime && abs(time - keyTime)
+ > static_cast<signed>(mRepeatTime))
{
keyTime = time;
inputManager.triggerAction(getActionVectorByKey(key));