mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-30 11:19:51 +02:00
Allow everything Unicode except noncharacters and control characters
Thanks mniip, see a113cbe
.
This commit is contained in:
@@ -263,7 +263,7 @@ bool Textbox::CharacterValid(int character)
|
||||
return true;
|
||||
case All:
|
||||
default:
|
||||
return character >= ' ';
|
||||
return character >= ' ' && character <= 0x10FFFF && !(character >= 0xD800 && character <= 0xDFFF) && !(character >= 0xFDD0 && character <= 0xFDEF) && !((character & 0xFFFF) >= 0xFFFE);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user