- allow specifying actor classes whose graphics to precache through MAPINFO.

- some reorganization of texture precaching so that the renderer can decide what to do with actors.

Just marking the sprite textures loses too much info if more is needed than just loading the images into memory.
This commit is contained in:
Christoph Oelckers 2016-05-01 22:47:36 +02:00
commit 65e1589543
10 changed files with 144 additions and 121 deletions

View file

@ -1083,6 +1083,18 @@ DEFINE_MAP_OPTION(PrecacheTextures, true)
} while (parse.sc.CheckString(","));
}
DEFINE_MAP_OPTION(PrecacheClasses, true)
{
parse.ParseAssign();
do
{
parse.sc.MustGetString();
//the class list is not initialized here so all we can do is store the class's name.
info->PrecacheClasses.Push(parse.sc.String);
} while (parse.sc.CheckString(","));
}
DEFINE_MAP_OPTION(redirect, true)
{
parse.ParseAssign();