- Added DefaultEnvironment MAPINFO option to set the default sound environment for the whole map.

SVN r2261 (trunk)
This commit is contained in:
Randy Heit 2010-03-31 03:48:16 +00:00
commit aa86e62693
4 changed files with 27 additions and 1 deletions

View file

@ -265,6 +265,7 @@ void level_info_t::Reset()
bordertexture[0] = 0;
teamdamage = 0.f;
specialactions.Clear();
DefaultEnvironment = 0;
}
@ -1250,6 +1251,20 @@ DEFINE_MAP_OPTION(mapbackground, true)
parse.ParseLumpOrTextureName(info->mapbg);
}
DEFINE_MAP_OPTION(defaultenvironment, false)
{
int id;
parse.ParseAssign();
parse.sc.MustGetNumber();
id = parse.sc.Number << 8;
if (parse.CheckNumber())
{
id |= parse.sc.Number;
}
info->DefaultEnvironment = id;
}
//==========================================================================
//