mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Update (by anv):
- fix: data read from Data/AdditionalProperties, - new tag: <bTrapBonus> + updated data for tiles, trap level influenced by terrain, - new feature/option: COVER_SYSTEM_STATIC_SHADOWS_DECREASE_BRIGHTNESS. git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@7016 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -45,6 +45,7 @@ additionalTilePropertyStartElementHandle(void *userData, const XML_Char *name, c
|
||||
strcmp(name, "bCamoStanceModifer") == 0 ||
|
||||
strcmp(name, "bSoundModifier") == 0 ||
|
||||
strcmp(name, "bStealthDifficultyModifer") == 0 ||
|
||||
strcmp(name, "bTrapBonus") == 0 ||
|
||||
strcmp(name, "fBlockedWindow") == 0
|
||||
))
|
||||
{
|
||||
@@ -122,6 +123,11 @@ additionalTilePropertyEndElementHandle(void *userData, const XML_Char *name)
|
||||
pData->curElement = ELEMENT;
|
||||
zAdditionalTileProperties.bStealthDifficultyModifer = (INT8) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "bTrapBonus") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
zAdditionalTileProperties.bTrapBonus = (INT8) atol(pData->szCharData);
|
||||
}
|
||||
else if(strcmp(name, "fBlockedWindow") == 0)
|
||||
{
|
||||
pData->curElement = ELEMENT;
|
||||
|
||||
Reference in New Issue
Block a user