mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 23:32:02 +00:00
- need to validate SetSectorTerrain's 'plane' parameter,
This commit is contained in:
parent
23cfd29dbb
commit
53d385a596
1 changed files with 10 additions and 6 deletions
|
@ -5973,15 +5973,19 @@ doplaysound: if (funcIndex == ACSF_PlayActorSound)
|
||||||
case ACSF_SetSectorTerrain:
|
case ACSF_SetSectorTerrain:
|
||||||
if (argCount >= 3)
|
if (argCount >= 3)
|
||||||
{
|
{
|
||||||
int terrain = P_FindTerrain(FBehavior::StaticLookupString(args[2]));
|
if (args[1] == sector_t::floor || args[1] == sector_t::ceiling)
|
||||||
FSectorTagIterator it(args[0]);
|
|
||||||
int s;
|
|
||||||
while ((s = it.Next()) >= 0)
|
|
||||||
{
|
{
|
||||||
sectors[s].terrainnum[args[1]] = terrain;
|
int terrain = P_FindTerrain(FBehavior::StaticLookupString(args[2]));
|
||||||
|
FSectorTagIterator it(args[0]);
|
||||||
|
int s;
|
||||||
|
while ((s = it.Next()) >= 0)
|
||||||
|
{
|
||||||
|
sectors[s].terrainnum[args[1]] = terrain;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue