Commit 141c37cb authored by Peter Bojtos's avatar Peter Bojtos

Added support for characters with unicode between 256 and 382.

parent 7c4e3db7
......@@ -205,6 +205,8 @@ int PlayLaserGame(int diff_level)
key_unicode -= 32; //convert lowercase to uppercase
if (key_unicode >= 224 && key_unicode <= 255)
key_unicode -= 32; //same for non-US chars
if ((key_unicode >= 256) && (key_unicode <= 382)) // Fix for other letters, such as the hungarian letter O with double acute
key_unicode -= 1;
LOG ("After checking for lower case:\n");
DEBUGCODE
......
......@@ -348,6 +348,8 @@ int PlayCascade(int diflevel)
key_unicode -= 32; //convert lowercase to uppercase
if (key_unicode >= 224 && key_unicode <= 255)
key_unicode -= 32; //same for non-US Western European chars
if ((key_unicode >= 256) && (key_unicode <= 382)) // Fix for other letters, such as the hungarian letter O with double acute
key_unicode -= 1;
LOG ("After checking for lower case:\n");
DEBUGCODE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment