mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-11 07:11:39 +00:00
minor cosmetic tweaks in sector.[ch] and a off-by-one limit correction there
git-svn-id: https://svn.eduke32.com/eduke32@2195 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
2f7851336b
commit
4fd25d1eab
2 changed files with 4 additions and 4 deletions
|
@ -329,12 +329,12 @@ void G_DoSectorAnimations(void)
|
|||
}
|
||||
}
|
||||
|
||||
int32_t GetAnimationGoal(int32_t *animptr)
|
||||
int32_t GetAnimationGoal(const int32_t *animptr)
|
||||
{
|
||||
int32_t i = g_animateCount-1;
|
||||
|
||||
for (; i>=0; i--)
|
||||
if (animptr == (int32_t *)animateptr[i])
|
||||
if (animptr == animateptr[i])
|
||||
return i;
|
||||
return -1;
|
||||
}
|
||||
|
@ -343,7 +343,7 @@ int32_t SetAnimation(int32_t animsect,int32_t *animptr, int32_t thegoal, int32_t
|
|||
{
|
||||
int32_t i = 0, j = g_animateCount;
|
||||
|
||||
if (g_animateCount >= MAXANIMATES-1)
|
||||
if (g_animateCount >= MAXANIMATES)
|
||||
return(-1);
|
||||
|
||||
for (; i<g_animateCount; i++)
|
||||
|
|
|
@ -108,7 +108,7 @@ void G_OperateForceFields(int32_t s,int32_t low);
|
|||
void G_OperateMasterSwitches(int32_t low);
|
||||
void G_OperateRespawns(int32_t low);
|
||||
void G_OperateSectors(int32_t sn,int32_t ii);
|
||||
int32_t GetAnimationGoal(int32_t *animptr);
|
||||
int32_t GetAnimationGoal(const int32_t *animptr);
|
||||
int32_t isanearoperator(int32_t lotag);
|
||||
int32_t isanunderoperator(int32_t lotag);
|
||||
int32_t ldist(spritetype *s1,spritetype *s2);
|
||||
|
|
Loading…
Reference in a new issue