From ce81d4f0614297f975bc34bd3ee08ebd2155fefd Mon Sep 17 00:00:00 2001 From: terminx Date: Wed, 6 Feb 2008 11:48:48 +0000 Subject: [PATCH] git-svn-id: https://svn.eduke32.com/eduke32@611 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/sector.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/polymer/eduke32/source/sector.c b/polymer/eduke32/source/sector.c index 1410bdac1..9599ab41d 100644 --- a/polymer/eduke32/source/sector.c +++ b/polymer/eduke32/source/sector.c @@ -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)