From 6ac111e0ed67187554ead8cccc241029465e8979 Mon Sep 17 00:00:00 2001 From: xHire Date: Sat, 23 May 2009 20:45:01 +0200 Subject: Rewritten messages/comments in code of client Rectified the coding style in code of client --- src/client/hotKey.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/client/hotKey.c') diff --git a/src/client/hotKey.c b/src/client/hotKey.c index 5b981ea..3e67edd 100644 --- a/src/client/hotKey.c +++ b/src/client/hotKey.c @@ -1,4 +1,3 @@ - #include #include #include @@ -31,7 +30,7 @@ static hotKey_t *newHotKey(SDLKey key, void (*handler) ()) return new; } -static void destroyHotKey(hotKey_t * hotkey) +static void destroyHotKey(hotKey_t *hotkey) { free(hotkey); } @@ -79,7 +78,7 @@ void hot_key_unregister(SDLKey key) hotkey = findHotkey(key); if (hotkey == NULL) { - assert(!"This hotkey not register"); + assert(!_("[Error] Unregisterring not registerred hotkey")); } my_index = list_search(listHotKey, hotkey); @@ -94,7 +93,7 @@ void hot_key_enable(SDLKey key) hotkey = findHotkey(key); if (hotkey == NULL) { - assert(!"This hotkey not register"); + assert(!_("[Error] Enabling not registerred hotkey")); } lastActive = timer_get_current_time(); @@ -108,7 +107,7 @@ void hot_key_disable(SDLKey key) hotkey = findHotkey(key); if (hotkey == NULL) { - assert(!"This hotkey not register"); + assert(!_("[Error] Disabling not registerred hotkey")); } lastActive = timer_get_current_time(); @@ -136,7 +135,7 @@ void hot_key_event() if (mapa[this->key] == SDL_PRESSED && this->active == TRUE) { lastActive = timer_get_current_time(); - //printf("hotKey = %d\n", this->key); + /*printf("hotKey = %d\n", this->key);*/ this->handler(); return; -- cgit v1.2.3