- warning fixed and constants used.

This commit is contained in:
Christoph Oelckers 2020-10-18 12:18:19 +02:00
parent c2828fe2e3
commit a8eaf3575f
2 changed files with 3 additions and 3 deletions

View file

@ -62,7 +62,7 @@ FString GameInterface::GetCoordString()
FString out;
out.Format("pos= %d, %d, %d - angle = %2.3f - sector = %d, lotag = %d, hitag = %d",
ps[snum].posx, ps[snum].posy, ps[snum].posz, ps[snum].angle.ang.asbuild(), ps[snum].cursectnum,
ps[snum].posx, ps[snum].posy, ps[snum].posz, ps[snum].angle.ang.asdeg(), ps[snum].cursectnum,
sector[ps[snum].cursectnum].lotag, sector[ps[snum].cursectnum].hitag);
return out;

View file

@ -312,7 +312,7 @@ void prelevel_d(int g)
{
if (sprite[i].statnum < MAXSTATUS)
{
if (sprite[i].picnum == SECTOREFFECTOR && sprite[i].lotag == 14)
if (sprite[i].picnum == SECTOREFFECTOR && sprite[i].lotag == SE_14_SUBWAY_CAR)
continue;
fi.spawn(-1, i);
}
@ -321,7 +321,7 @@ void prelevel_d(int g)
for (i = 0; i < MAXSPRITES; i++)
if (sprite[i].statnum < MAXSTATUS)
{
if (sprite[i].picnum == SECTOREFFECTOR && sprite[i].lotag == 14)
if (sprite[i].picnum == SECTOREFFECTOR && sprite[i].lotag == SE_14_SUBWAY_CAR)
fi.spawn(-1, i);
}