mirror of
https://github.com/1dot13/source.git
synced 2026-08-19 14:20:30 +02:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user