Ver código fonte

Fixed TXT char creation blocking characters with nonstandard names

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@10257 54d463be-8e91-2dee-dedb-b68131a5f0ec
ultramage 18 anos atrás
pai
commit
53823c3e67
2 arquivos alterados com 3 adições e 1 exclusões
  1. 2 0
      Changelog-Trunk.txt
  2. 1 1
      src/common/strlib.c

+ 2 - 0
Changelog-Trunk.txt

@@ -3,6 +3,8 @@ Date	Added
 AS OF SVN REV. 5091, WE ARE NOW USING TRUNK.  ALL UNTESTED BUGFIXES/FEATURES GO INTO TRUNK.
 IF YOU HAVE A WORKING AND TESTED BUGFIX PUT IT INTO STABLE AS WELL AS TRUNK.
 
+2007/04/15
+	* Fixed TXT char creation blocking characters with nonstandard names
 2007/04/13
 	* Committing some accumulated stuff [ultramage]
 	- makefile typo, maps_athena typo, svn:eol-style native for some files

+ 1 - 1
src/common/strlib.c

@@ -114,7 +114,7 @@ int remove_control_chars(char* str)
 	int change = 0;
 
 	for(i = 0; str[i]; i++) {
-		if (str[i] < 32) {
+		if (ISCNTRL(str[i])) {
 			str[i] = '_';
 			change = 1;
 		}