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:
helixhorned 2011-12-21 18:43:39 +00:00
parent 2f7851336b
commit 4fd25d1eab
2 changed files with 4 additions and 4 deletions

View file

@ -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++)

View file

@ -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);