From 727e15323c6f1a902495d9b155ddbdbfa95f2f46 Mon Sep 17 00:00:00 2001 From: oroborus Date: Thu, 17 Jul 2008 13:12:28 +0000 Subject: - maximalny pocet ID je 1 000 000 - maximalny pocet item sa nastavuje v configu MAX_ITEM ( parameter --max-item ) git-svn-id: http://opensvn.csie.org/tuxanci_ng@152 0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e --- src/client/chat.c | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) (limited to 'src/client/chat.c') diff --git a/src/client/chat.c b/src/client/chat.c index b599853..bad3826 100644 --- a/src/client/chat.c +++ b/src/client/chat.c @@ -91,6 +91,22 @@ static void readKey() int len; int i; + const int len_shift_map = 20; + + char shift_map[] = + { + '-', '_', + '=', '+', + '[', '{', + ']', '}', + ';', ':', + '/', '\"', + '\\', '|', + ',', '<', + '.', '>', + '/', '?' + }; + if (line_atime < 100) line_atime ++; @@ -146,6 +162,22 @@ static void readKey() line[len] = c; + if( mapa[SDLK_LSHIFT] == SDL_PRESSED || + mapa[SDLK_RSHIFT] == SDL_PRESSED) + { + int i; + + for( i = 0 ; i < len_shift_map ; i+= 2 ) + { + if( c == shift_map[i] ) + { + line[len] = shift_map[i+1]; + } + } + + return; + } + if( mapa[SDLK_LSHIFT] == SDL_PRESSED || mapa[SDLK_RSHIFT] == SDL_PRESSED) { -- cgit v1.2.3