(svn r5944) -Merge TGP (r5578, r5579, r5724, r5726): -Feature: filter for textboxes to only

allow certain patterns (like numbers only)
This commit is contained in:
truelight
2006-08-19 09:31:22 +00:00
parent ee0daa0a4f
commit 83d56d6d79
19 changed files with 95 additions and 57 deletions

View File

@@ -164,7 +164,7 @@ static void TranslateTTDPatchCodes(char *str)
case 0x98: *c = 31; break;
default:
/* Validate any unhandled character */
if (!IsValidAsciiChar(*c)) *c = '?';
if (!IsValidAsciiChar(*c, CS_ALPHANUMERAL)) *c = '?';
break;
}
}