- fixed missing messages in Shadow Warrior.

This commit is contained in:
Christoph Oelckers 2020-01-24 19:50:44 +01:00
parent a431d6e190
commit 08e69b1d2e
4 changed files with 7 additions and 5 deletions

View file

@ -218,7 +218,7 @@ DoRotatorMatch(PLAYERp pp, short match, SWBOOL manual)
else else
#endif #endif
{ {
PutStringInfo(pp, quoteMgr.GetExQuote(QUOTE_DOORMSG + key_num - 1)); PutStringInfo(pp, quoteMgr.GetQuote(QUOTE_DOORMSG + key_num - 1));
return -1; return -1;
} }
} }

View file

@ -214,7 +214,7 @@ DoSlidorMatch(PLAYERp pp, short match, SWBOOL manual)
else else
#endif #endif
{ {
PutStringInfo(pp, quoteMgr.GetExQuote(QUOTE_DOORMSG + key_num - 1)); PutStringInfo(pp, quoteMgr.GetQuote(QUOTE_DOORMSG + key_num - 1));
return -1; return -1;
} }
} }

View file

@ -5763,7 +5763,9 @@ KeyMain:
{ {
int cookie = (adult_lockout || Global_PLock)? STD_RANDOM_RANGE(10) : STD_RANDOM_RANGE(MAX_FORTUNES); int cookie = (adult_lockout || Global_PLock)? STD_RANDOM_RANGE(10) : STD_RANDOM_RANGE(MAX_FORTUNES);
// print to the console, and if active to the generic notify display. // print to the console, and if active to the generic notify display.
Printf(PRINT_NOTIFY, TEXTCOLOR_SAPPHIRE "%s: %s\n", GStrings("TXTS_FORTUNE"), quoteMgr.GetQuote(QUOTE_COOKIE + cookie)); FStringf msg(TEXTCOLOR_SAPPHIRE "%s: %s", GStrings("TXTS_FORTUNE"), quoteMgr.GetQuote(QUOTE_COOKIE + cookie));
Printf("%s\n", msg.GetChars());
adduserquote(msg.GetChars());
} }
SetFadeAmt(pp,ITEMFLASHAMT,ITEMFLASHCLR); // Flash blue on item pickup SetFadeAmt(pp,ITEMFLASHAMT,ITEMFLASHCLR); // Flash blue on item pickup

View file

@ -200,7 +200,7 @@ short DoVatorOperate(PLAYERp pp, short sectnum)
else else
#endif #endif
{ {
PutStringInfo(pp, quoteMgr.GetExQuote(QUOTE_DOORMSG + key_num - 1)); PutStringInfo(pp, quoteMgr.GetQuote(QUOTE_DOORMSG + key_num - 1));
return FALSE; return FALSE;
} }
} }
@ -268,7 +268,7 @@ DoVatorMatch(PLAYERp pp, short match)
else else
#endif #endif
{ {
PutStringInfo(pp, quoteMgr.GetExQuote(QUOTE_DOORMSG + key_num - 1)); PutStringInfo(pp, quoteMgr.GetQuote(QUOTE_DOORMSG + key_num - 1));
return -1; return -1;
} }
} }