Skip to content

Commit

Permalink
- adjusted the script-side MidPrint calls to honor the con_midconsole…
Browse files Browse the repository at this point in the history
…font CVAR.
  • Loading branch information
coelckers committed Mar 11, 2019
1 parent f500414 commit c0d333e
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion wadsrc/static/zscript/actors/inventory/inv_misc.zs
Expand Up @@ -127,7 +127,7 @@ class PuzzleItem : Inventory
Owner.A_PlaySound ("*puzzfail", CHAN_VOICE);
if (Owner.CheckLocalView())
{
Console.MidPrint ("SmallFont", PuzzFailMessage, true);
Console.MidPrint (null, PuzzFailMessage, true);
}
return false;
}
Expand Down
8 changes: 4 additions & 4 deletions wadsrc/static/zscript/actors/strife/alienspectres.zs
Expand Up @@ -108,13 +108,13 @@ class AlienSpectre1 : SpectralMonster
}
else if (cls == "AlienSpectre2")
{
Console.MidPrint("SmallFont", "$TXT_KILLED_BISHOP");
Console.MidPrint(null, "$TXT_KILLED_BISHOP");
log = 74;
player.GiveInventoryType ("QuestItem21");
}
else if (cls == "AlienSpectre3")
{
Console.MidPrint("SmallFont", "$TXT_KILLED_ORACLE");
Console.MidPrint(null, "$TXT_KILLED_ORACLE");
// If there are any Oracles still alive, kill them.
ThinkerIterator it = ThinkerIterator.Create("Oracle");
Actor oracle;
Expand Down Expand Up @@ -144,7 +144,7 @@ class AlienSpectre1 : SpectralMonster
}
else if (cls == "AlienSpectre4")
{
Console.MidPrint("SmallFont", "$TXT_KILLED_MACIL");
Console.MidPrint(null, "$TXT_KILLED_MACIL");
player.GiveInventoryType ("QuestItem24");
if (player.FindInventory ("QuestItem25") == null)
{ // Richter has taken over. Macil is a snake.
Expand All @@ -157,7 +157,7 @@ class AlienSpectre1 : SpectralMonster
}
else if (cls == "AlienSpectre5")
{
Console.MidPrint("SmallFont", "$TXT_KILLED_LOREMASTER");
Console.MidPrint(null, "$TXT_KILLED_LOREMASTER");

player.GiveInventoryType ("QuestItem26");
if (!multiplayer)
Expand Down
6 changes: 3 additions & 3 deletions wadsrc/static/zscript/actors/strife/strifeitems.zs
Expand Up @@ -531,7 +531,7 @@ class Scanner : PowerupGiver
{
if (Owner.CheckLocalView())
{
Console.MidPrint("SmallFont", "$TXT_NEEDMAP");
Console.MidPrint(null, "$TXT_NEEDMAP");
}
return false;
}
Expand Down Expand Up @@ -632,7 +632,7 @@ class RaiseAlarm : DummyStrifeItem
dropper.target.SoundAlert(dropper.target);
if (dropper.target.CheckLocalView())
{
Console.MidPrint(SmallFont, "$TXT_YOUFOOL");
Console.MidPrint(null, "$TXT_YOUFOOL");
}
}
Destroy ();
Expand Down Expand Up @@ -672,7 +672,7 @@ class CloseDoor222 : DummyStrifeItem
{
if (dropper.target.CheckLocalView())
{
Console.MidPrint(SmallFont, "$TXT_YOUREDEAD");
Console.MidPrint(null, "$TXT_YOUREDEAD");
}
dropper.target.SoundAlert(dropper.target);
}
Expand Down
2 changes: 1 addition & 1 deletion wadsrc/static/zscript/actors/strife/thingstoblowup.zs
Expand Up @@ -32,7 +32,7 @@ extend class Actor

if (msg != msgid) // if both are identical there was no message of this name in the stringtable.
{
Console.MidPrint ("SmallFont", msg);
Console.MidPrint (null, msg);
}
}

Expand Down

0 comments on commit c0d333e

Please sign in to comment.