mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-25 13:21:27 +00:00
- adjustments for recent ZDoom changes.
This commit is contained in:
parent
a602e47261
commit
df6ffe6418
2 changed files with 51 additions and 49 deletions
|
@ -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)
|
||||
{
|
||||
// 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 = §ors[secnum];
|
||||
if (s->floorplane.a==0 && s->floorplane.b==0) s->reflect[sector_t::floor] = arg1/255.f;
|
||||
|
|
|
@ -221,7 +221,8 @@ static int P_Set3DFloor(line_t * line, int param, int param2, int alpha)
|
|||
int tag = line->args[0];
|
||||
sector_t * sec = line->frontsector, *ss;
|
||||
|
||||
for (s=-1; (s = P_FindSectorFromTag(tag,s)) >= 0;)
|
||||
FSectorTagIterator itr(tag);
|
||||
while ((s = itr.Next()) >= 0)
|
||||
{
|
||||
ss = §ors[s];
|
||||
|
||||
|
|
Loading…
Reference in a new issue