-changed light and smoke effect durations back to UINT8s

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@207 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
MaddMugsy
2006-06-08 23:48:25 +00:00
parent fa99f2ff83
commit cb4ba2fab9
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -299,7 +299,7 @@ typedef struct
UINT8 ubVolatility; // maximum chance of accidental explosion
UINT8 ubAnimationID; // Animation enum to use
UINT32 uiIndex;
UINT16 ubDuration;
UINT8 ubDuration;
UINT8 ubStartRadius;
} EXPLOSIVETYPE;
+1 -1
View File
@@ -187,7 +187,7 @@ explosiveEndElementHandle(void *userData, const char *name)
else if(strcmp(name, "ubDuration") == 0)
{
pData->curElement = ELEMENT;
pData->curExplosive.ubDuration = (UINT16) atol(pData->szCharData);
pData->curExplosive.ubDuration = (UINT8) atol(pData->szCharData);
}
pData->maxReadDepth--;
+1 -1
View File
@@ -96,7 +96,7 @@ void UpdateLightingSprite( LIGHTEFFECT *pLight )
}
INT32 NewLightEffect( INT16 sGridNo, UINT16 ubDuration, UINT8 ubStartRadius )
INT32 NewLightEffect( INT16 sGridNo, UINT8 ubDuration, UINT8 ubStartRadius )
{
LIGHTEFFECT *pLight;
INT32 iLightIndex;
+2 -2
View File
@@ -15,9 +15,9 @@ typedef struct
{
INT16 sGridNo; // gridno at which the tear gas cloud is centered
UINT16 ubDuration; // the number of turns will remain effective
UINT8 ubDuration; // the number of turns will remain effective
UINT8 bRadius; // the current radius
UINT16 bAge; // the number of turns light has been around
UINT8 bAge; // the number of turns light has been around
BOOLEAN fAllocated;
INT32 iLight;
UINT32 uiTimeOfLastUpdate;
+2 -2
View File
@@ -22,10 +22,10 @@ typedef struct TAG_SMOKE_EFFECT
{
INT16 sGridNo; // gridno at which the tear gas cloud is centered
UINT16 ubDuration; // the number of turns gas will remain effective
UINT8 ubDuration; // the number of turns gas will remain effective
UINT8 ubRadius; // the current radius of the cloud in map tiles
UINT8 bFlags; // 0 - outdoors (fast spread), 1 - indoors (slow)
UINT16 bAge; // the number of turns gas has been around
UINT8 bAge; // the number of turns gas has been around
BOOLEAN fAllocated;
INT8 bType;
UINT16 usItem;