summaryrefslogtreecommitdiff
path: root/src/ui
diff options
context:
space:
mode:
authorChristopher Schwarz <lakitu7@gmail.com>2009-10-17 18:05:17 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:16:53 +0000
commitf9683711bedc6c22889d151fe27313cb724bfbe2 (patch)
treea747c421aab6c95132b74764235769f717ed6249 /src/ui
parented3a2a6da386c887ff721dfd3b559cb7b12f383d (diff)
* Fix wonky say text field behavior when you press insert (Rezyn)
* Properly prevent deconstructing the last spawn when it's markdeconstruct with no power (Rezyn) * Fix typo on nextmap votes (Byron Johnson)
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/ui_shared.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ui/ui_shared.c b/src/ui/ui_shared.c
index bcb694ce..dd862c09 100644
--- a/src/ui/ui_shared.c
+++ b/src/ui/ui_shared.c
@@ -3628,11 +3628,11 @@ qboolean Item_TextField_HandleKey( itemDef_t *item, int key )
else
{
// Reached maximum field length
-
if( editPtr->maxChars && item->cursorPos >= editPtr->maxChars )
+ {
releaseFocus = qfalse;
-
- goto exit;
+ goto exit;
+ }
}
buff[ item->cursorPos ] = key;