- adjustments for recent ZDoom changes.

This commit is contained in:
Christoph Oelckers 2015-04-16 22:50:26 +02:00
parent a602e47261
commit df6ffe6418
2 changed files with 51 additions and 49 deletions

View file

@ -150,9 +150,10 @@ static int LS_Sector_SetPlaneReflection (line_t *ln, AActor *it, bool backSide,
int arg0, int arg1, int arg2, int arg3, int arg4) int arg0, int arg1, int arg2, int arg3, int arg4)
{ {
// Sector_SetPlaneReflection (tag, floor, ceiling) // Sector_SetPlaneReflection (tag, floor, ceiling)
int secnum = -1; int secnum;
FSectorTagIterator itr(arg0);
while ((secnum = P_FindSectorFromTag (arg0, secnum)) >= 0) while ((secnum = itr.Next()) >= 0)
{ {
sector_t * s = &sectors[secnum]; sector_t * s = &sectors[secnum];
if (s->floorplane.a==0 && s->floorplane.b==0) s->reflect[sector_t::floor] = arg1/255.f; if (s->floorplane.a==0 && s->floorplane.b==0) s->reflect[sector_t::floor] = arg1/255.f;

View file

@ -221,7 +221,8 @@ static int P_Set3DFloor(line_t * line, int param, int param2, int alpha)
int tag = line->args[0]; int tag = line->args[0];
sector_t * sec = line->frontsector, *ss; sector_t * sec = line->frontsector, *ss;
for (s=-1; (s = P_FindSectorFromTag(tag,s)) >= 0;) FSectorTagIterator itr(tag);
while ((s = itr.Next()) >= 0)
{ {
ss = &sectors[s]; ss = &sectors[s];