- Removed the unused sfx_ variables for the chainsaw sounds.
- Fixed map name checks in idclev, hxvisit, for +map and the titlemap. - Changed handling of Zips so that the patches/, graphics/, sounds/ and music/ subdirectories no longer are placed in the global namespace. Instead new namespaces are defined. These namespaces aren't merged, however and searching in them either returns a lump inside it or one from the global namespace when it doesn't come from a Zip file. Proper order of files is still observed though. As a result proper use of the directories inside Zips is strictly enforced now so that for example anything used as a patch must be in the patches/ directory and won't be found anywhere else. SVN r199 (trunk)
This commit is contained in:
parent
a42f98af15
commit
cf7d8ab43b
19 changed files with 95 additions and 65 deletions
|
|
@ -257,10 +257,13 @@ CCMD (idclev)
|
|||
|
||||
// Catch invalid maps.
|
||||
mapname = CalcMapName (epsd, map);
|
||||
if (Wads.CheckNumForName (mapname) == -1)
|
||||
|
||||
MapData * mapd = P_OpenMapData(mapname);
|
||||
if (mapd == NULL)
|
||||
return;
|
||||
|
||||
// So be it.
|
||||
delete mapd;
|
||||
Printf ("%s\n", GStrings("STSTR_CLEV"));
|
||||
G_DeferedInitNew (mapname);
|
||||
players[0].health = 0; // Force reset
|
||||
|
|
@ -281,9 +284,12 @@ CCMD (hxvisit)
|
|||
if (CheckWarpTransMap (mapname, false))
|
||||
{
|
||||
// Just because it's in MAPINFO doesn't mean it's in the wad.
|
||||
if (Wads.CheckNumForName (mapname) != -1)
|
||||
|
||||
MapData * map = P_OpenMapData(mapname);
|
||||
if (map != NULL)
|
||||
{
|
||||
// So be it.
|
||||
delete map;
|
||||
Printf ("%s\n", GStrings("STSTR_CLEV"));
|
||||
G_DeferedInitNew (mapname);
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue