mirror of
https://github.com/ZDoom/ZDRay.git
synced 2025-01-24 16:51:08 +00:00
- fix thing positioning
This commit is contained in:
parent
4fd952e7bb
commit
1b25024e1d
1 changed files with 5 additions and 2 deletions
|
@ -676,6 +676,9 @@ void FLevel::CreateLights()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int x = thing->x >> FRACBITS;
|
||||||
|
int y = thing->y >> FRACBITS;
|
||||||
|
|
||||||
thingLight = new thingLight_t;
|
thingLight = new thingLight_t;
|
||||||
|
|
||||||
thingLight->mapThing = thing;
|
thingLight->mapThing = thing;
|
||||||
|
@ -685,10 +688,10 @@ void FLevel::CreateLights()
|
||||||
thingLight->radius = lightDef->radius >= 0 ? lightDef->radius : thing->angle;
|
thingLight->radius = lightDef->radius >= 0 ? lightDef->radius : thing->angle;
|
||||||
thingLight->height = lightDef->height;
|
thingLight->height = lightDef->height;
|
||||||
thingLight->bCeiling = lightDef->bCeiling;
|
thingLight->bCeiling = lightDef->bCeiling;
|
||||||
thingLight->ssect = PointInSubSector(thing->x, thing->y);
|
thingLight->ssect = PointInSubSector(x, y);
|
||||||
thingLight->sector = GetSectorFromSubSector(thingLight->ssect);
|
thingLight->sector = GetSectorFromSubSector(thingLight->ssect);
|
||||||
|
|
||||||
thingLight->origin.Set(thing->x, thing->y);
|
thingLight->origin.Set(x, y);
|
||||||
thingLights.Push(thingLight);
|
thingLights.Push(thingLight);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue