Enhancement:

- SCROLL_SPEED_FACTOR in Ja2_Options.ini allows to modify scroll speed
- while reading MovementCosts.xml the game checks now for valid traversal type and asserts instead simply assigning type GROUNDBARRIER

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@8295 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
silversurfer
2016-09-11 11:42:48 +00:00
parent cedb77bffb
commit 9395fcc8a2
5 changed files with 52 additions and 42 deletions
+7 -1
View File
@@ -257,6 +257,10 @@ smctableEndElementHandle(void *userData, const XML_Char *name)
{
trav_type = HILLS;
}
else if(strcmp(pData->szCharData, "GROUNDBARRIER") == 0)
{
trav_type = GROUNDBARRIER;
}
else if(strcmp(pData->szCharData, "NS_RIVER") == 0)
{
trav_type = NS_RIVER;
@@ -319,7 +323,9 @@ smctableEndElementHandle(void *userData, const XML_Char *name)
}
else
{
trav_type = GROUNDBARRIER;
// silversurfer: don't just assign type GROUNDBARRIER. Let modders know that the data is incorrect!
AssertMsg(0, String( "Incorrect traversal data '%s' for sector row=%d column=%d !", pData->szCharData, pData->uiRowNumber, pData->uiColNumber) );
//trav_type = GROUNDBARRIER;
}
// Now assign it to the correct directory using the close tag as a guide
if(strcmp(name, "North") == 0)