fix picking

git-svn-id: https://svn.eduke32.com/eduke32@2031 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2011-09-17 15:26:52 +00:00
parent b486f3aa0d
commit 6f4fedb7fe

View file

@ -4427,7 +4427,7 @@ static void drawalls(int32_t bunch)
{ {
if (searchy <= uplc[searchx] if (searchy <= uplc[searchx]
#ifdef YAX_ENABLE #ifdef YAX_ENABLE
&& umost[searchx] <= searchy && getceilzofslope(sectnum, globalposx, globalposz) <= globalposz && umost[searchx] <= searchy && getceilzofslope(sectnum, globalposx, globalposy) <= globalposz
&& (yax_getbunch(sectnum, YAX_CEILING) < 0 || showinvisibility || (sec->ceilingstat&(256+128)) || klabs(yax_globallev-YAX_MAXDRAWS)==YAX_MAXDRAWS) && (yax_getbunch(sectnum, YAX_CEILING) < 0 || showinvisibility || (sec->ceilingstat&(256+128)) || klabs(yax_globallev-YAX_MAXDRAWS)==YAX_MAXDRAWS)
#endif #endif
) //ceiling ) //ceiling
@ -4437,7 +4437,7 @@ static void drawalls(int32_t bunch)
} }
else if (dplc[searchx] <= searchy else if (dplc[searchx] <= searchy
#ifdef YAX_ENABLE #ifdef YAX_ENABLE
&& searchy < dmost[searchx] && getflorzofslope(sectnum, globalposx, globalposz) >= globalposz && searchy < dmost[searchx] && getflorzofslope(sectnum, globalposx, globalposy) >= globalposz
&& (yax_getbunch(sectnum, YAX_FLOOR) < 0 || showinvisibility || (sec->floorstat&(256+128)) || klabs(yax_globallev-YAX_MAXDRAWS)==YAX_MAXDRAWS) && (yax_getbunch(sectnum, YAX_FLOOR) < 0 || showinvisibility || (sec->floorstat&(256+128)) || klabs(yax_globallev-YAX_MAXDRAWS)==YAX_MAXDRAWS)
#endif #endif
) //floor ) //floor