Revert 'move sprites with ceiling/floor'-behaviour, maybe fix tile drawing?

git-svn-id: https://svn.eduke32.com/eduke32@1862 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
helixhorned 2011-04-09 15:35:46 +00:00
parent a1c4c6dce7
commit 5d91ec502a

View file

@ -3780,12 +3780,11 @@ static int32_t DrawTiles(int32_t iTopLeft, int32_t iSelected, int32_t nXTiles, i
int32_t usehitilecnt=0, usehitile; int32_t usehitilecnt=0, usehitile;
static uint8_t loadedhitile[(MAXTILES+7)>>3]; static uint8_t loadedhitile[(MAXTILES+7)>>3];
begindrawing();
setpolymost2dview(); setpolymost2dview();
clearview(0); clearview(0);
begindrawing();
restart: restart:
for (YTile = 0-(offset>0); YTile < nYTiles+(offset<0)+1; YTile++) for (YTile = 0-(offset>0); YTile < nYTiles+(offset<0)+1; YTile++)
{ {
@ -5435,7 +5434,7 @@ static void Keys3d(void)
for (i=headspritesect[sect]; i!=-1; i=nextspritesect[i]) for (i=headspritesect[sect]; i!=-1; i=nextspritesect[i])
{ {
spriteoncfz(i, &cz, &fz); spriteoncfz(i, &cz, &fz);
if ((moveCeilings && sprite[i].z <= cz) || (moveFloors && sprite[i].z >= fz)) if ((moveCeilings && sprite[i].z == cz) || (moveFloors && sprite[i].z == fz))
sprite[i].z += tsign * (updownunits << (eitherCTRL<<1)); // JBF 20031128 sprite[i].z += tsign * (updownunits << (eitherCTRL<<1)); // JBF 20031128
} }