- need to validate SetSectorTerrain's 'plane' parameter,

This commit is contained in:
Christoph Oelckers 2016-01-09 21:10:12 +01:00
parent 23cfd29dbb
commit 53d385a596

View file

@ -5972,6 +5972,8 @@ doplaysound: if (funcIndex == ACSF_PlayActorSound)
case ACSF_SetSectorTerrain: case ACSF_SetSectorTerrain:
if (argCount >= 3) if (argCount >= 3)
{
if (args[1] == sector_t::floor || args[1] == sector_t::ceiling)
{ {
int terrain = P_FindTerrain(FBehavior::StaticLookupString(args[2])); int terrain = P_FindTerrain(FBehavior::StaticLookupString(args[2]));
FSectorTagIterator it(args[0]); FSectorTagIterator it(args[0]);
@ -5981,6 +5983,8 @@ doplaysound: if (funcIndex == ACSF_PlayActorSound)
sectors[s].terrainnum[args[1]] = terrain; sectors[s].terrainnum[args[1]] = terrain;
} }
} }
}
break;
default: default:
break; break;