mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Fix: Spreadpatterns did never work since their externalization. Now they should work.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7624 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -123,7 +123,7 @@ spreadpatternStartElementHandle(void *userData, const XML_Char *name, const XML_
|
||||
|| strcmp(name, "y") == 0
|
||||
|| strcmp(name, "xspread") == 0
|
||||
|| strcmp(name, "yspread") == 0
|
||||
|| strcmp(name, "Name") == 0
|
||||
|| strcmp(name, "NAME") == 0
|
||||
|| strcmp(name, "method") == 0
|
||||
))
|
||||
|
||||
@@ -204,7 +204,7 @@ spreadpatternEndElementHandle(void *userData, const XML_Char *name)
|
||||
d = fabs( atof(pData->szCharData) );
|
||||
gpSpreadPattern[giSpreadPatternCount-1].yspread = d;
|
||||
}
|
||||
else if(strcmp(name, "Name") == 0)
|
||||
else if(strcmp(name, "NAME") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
//Trim whitespace.
|
||||
|
||||
Reference in New Issue
Block a user