Changeset - r19952:fae8b96afc59
[Not reviewed]
master
0 2 0
zuu - 11 years ago 2013-01-12 12:48:00
zuu@openttd.org
(svn r24908) -Fix [FS#5419]: Allow GSs to pass negative integer string parameters (frosch123)
2 files changed with 2 insertions and 2 deletions:
0 comments (0 inline, 0 general)
src/script/api/script_text.cpp
Show inline comments
 
@@ -183,7 +183,7 @@ char *ScriptText::_GetEncodedText(char *
 
			p = this->paramt[i]->_GetEncodedText(p, lastofp);
 
			continue;
 
		}
 
		p += seprintf(p, lastofp,":%X", this->parami[i]);
 
		p += seprintf(p, lastofp,":%X", (uint32)this->parami[i]);
 
	}
 

	
 
	return p;
src/strings.cpp
Show inline comments
 
@@ -867,7 +867,7 @@ static char *FormatString(char *buff, co
 
						bool lookup = (l == SCC_ENCODED);
 
						if (lookup) s += len;
 

	
 
						param = strtol(s, &p, 16);
 
						param = (int32)strtoul(s, &p, 16);
 

	
 
						if (lookup) {
 
							if (param >= TAB_SIZE) {
0 comments (0 inline, 0 general)