mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
git-svn-id: https://svn.eduke32.com/eduke32@611 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
b530c1ca75
commit
ce81d4f061
1 changed files with 3 additions and 4 deletions
|
@ -190,16 +190,15 @@ int isanearoperator(int lotag)
|
|||
|
||||
inline int checkcursectnums(int sect)
|
||||
{
|
||||
int i;
|
||||
for (i=connecthead;i>=0;i=connectpoint2[i])
|
||||
int i = connecthead;
|
||||
for (;i>=0;i=connectpoint2[i])
|
||||
if (sprite[g_player[i].ps->i].sectnum == sect) return i;
|
||||
return -1;
|
||||
}
|
||||
|
||||
inline int ldist(spritetype *s1,spritetype *s2)
|
||||
{
|
||||
int ret = FindDistance2D(s1->x-s2->x, s1->y-s2->y);
|
||||
return (ret?ret:1);
|
||||
return (FindDistance2D(s1->x-s2->x, s1->y-s2->y));
|
||||
}
|
||||
|
||||
inline int dist(spritetype *s1,spritetype *s2)
|
||||
|
|
Loading…
Reference in a new issue