Cleaning up.
This commit is contained in:
parent
08201160b1
commit
35b8b986db
15 changed files with 127 additions and 109 deletions
|
|
@ -89,8 +89,7 @@ Class SWWMStaticHandler : StaticEventHandler
|
|||
for ( int i=0; i<MAXPLAYERS; i++ )
|
||||
{
|
||||
if ( !playeringame[i] || !(players[i].mo is 'Demolitionist') ) continue;
|
||||
let demo = Demolitionist(players[i].mo);
|
||||
demo.CheckUnderwaterAmb(true);
|
||||
Demolitionist(players[i].mo).CheckUnderwaterAmb(true);
|
||||
}
|
||||
}
|
||||
SWWMHandler.ClearAllShaders();
|
||||
|
|
@ -139,7 +138,7 @@ Class SWWMStaticHandler : StaticEventHandler
|
|||
// fix voice type cvar
|
||||
int lmp;
|
||||
Array<String> types;
|
||||
for ( lmp = Wads.FindLumpFullName("swwmvoicepack.txt"); lmp != -1; lmp = Wads.FindLumpFullName("swwmvoicepack.txt",lmp+1) )
|
||||
for ( lmp = Wads.FindLumpFullName("swwmvoicepack",0,true); lmp != -1; lmp = Wads.FindLumpFullName("swwmvoicepack",lmp+1,true) )
|
||||
{
|
||||
Array<String> lst;
|
||||
lst.Clear();
|
||||
|
|
@ -159,7 +158,7 @@ Class SWWMStaticHandler : StaticEventHandler
|
|||
else LoadAchievements();
|
||||
// precache fonts
|
||||
Array<String> fonts;
|
||||
for ( lmp = Wads.FindLumpFullName("precachefonts.txt"); lmp != -1; lmp = Wads.FindLumpFullName("precachefonts.txt",lmp+1) )
|
||||
for ( lmp = Wads.FindLumpFullName("precachefonts",0,true); lmp != -1; lmp = Wads.FindLumpFullName("precachefonts",lmp+1,true) )
|
||||
{
|
||||
Array<String> lst;
|
||||
lst.Clear();
|
||||
|
|
@ -180,7 +179,7 @@ Class SWWMStaticHandler : StaticEventHandler
|
|||
S_StartSound("compat/warn",CHAN_YOUDONEFUCKEDUP,CHANF_UI|CHANF_NOPAUSE|CHANF_OVERLAP,1,ATTN_NONE);
|
||||
}
|
||||
// warning for unsupported
|
||||
if ( Wads.FindLumpFullName("swwmgamesupported.txt") != -1 ) return;
|
||||
if ( Wads.FindLumpFullName("swwmgamesupported",0,true) != -1 ) return;
|
||||
Console.Printf(
|
||||
"\cx┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┓\c-\n"
|
||||
"\cx┃ \cr[\cgWARNING\cr] \cx┃\c-\n"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue