- bugfix: When loading an I.M.P by nickname or 90210 the voice was not set correct

- feature: Now it is possible to load an I.M.P. even if it has multiple blanks (spaces) in the nickname. E.g. "Mr D 2", "Jack 1", ...

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@559 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2006-09-25 07:55:58 +00:00
parent 236e26fe8a
commit 0aa610ac40
7 changed files with 41 additions and 23 deletions
+1 -1
View File
@@ -339,7 +339,7 @@ void HandleTextEvent( UINT32 uiKey )
if( uiKey >= 'A' && uiKey <= 'Z' ||
uiKey >= 'a' && uiKey <= 'z' ||
uiKey >= '0' && uiKey <= '9' ||
uiKey == '_' || uiKey == '.' )
uiKey == '_' || uiKey == '.' || uiKey ==' ') // WANNE NEW: added ' '
{
// if the current string position is at max or great, do nothing
if( iStringPos >= 8 )