diff options
| author | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-07-17 13:12:28 +0000 |
|---|---|---|
| committer | oroborus <oroborus@0ee4d065-81f0-4d1e-b06c-ff20ad07cc3e> | 2008-07-17 13:12:28 +0000 |
| commit | 727e15323c6f1a902495d9b155ddbdbfa95f2f46 (patch) | |
| tree | 41d64011a95c659d7353f7f2a5cd86c1494261a5 /src/client | |
| parent | 7efb51e2cb64a417d9d18ba0064c84abad265dad (diff) | |
- 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
Diffstat (limited to 'src/client')
| -rw-r--r-- | src/client/chat.c | 32 |
1 files changed, 32 insertions, 0 deletions
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 ++; @@ -149,6 +165,22 @@ static void readKey() 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) + { line[len] -= 32; } |