Allow to input spaces with keyboard in name screens
authorparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Sun, 3 Aug 2008 23:38:35 +0000 (23:38 +0000)
committerparasti <parasti@78b8d119-cf0a-0410-b17c-f493084dd1d7>
Sun, 3 Aug 2008 23:38:35 +0000 (23:38 +0000)
git-svn-id: https://s.snth.net/svn/neverball/trunk@2444 78b8d119-cf0a-0410-b17c-f493084dd1d7

ball/st_name.c
ball/st_save.c

index bbe05e5..758ed93 100644 (file)
@@ -158,7 +158,7 @@ static int name_keybd(int c, int d)
 
         if (c == '\b' || c == 0x7F)
             return name_action(GUI_BS);
-        if (c > ' ')
+        if (c >= ' ')
             return name_action(c);
     }
     return 1;
index f39d93f..01c7706 100644 (file)
@@ -148,7 +148,7 @@ static int save_keybd(int c, int d)
 
         if (c == '\b' || c == 0x7F)
             return save_action(GUI_BS);
-        if (c > ' ')
+        if (c >= ' ')
             return save_action(c);
     }
     return 1;