mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-10 23:02:03 +00:00
- SW: Fixed fortune cookie text display.
This commit is contained in:
parent
8c01061053
commit
864c3c5766
2 changed files with 3 additions and 7 deletions
|
@ -141,8 +141,6 @@ int minigametext(int x,int y,const char *t,char s,short dabits)
|
|||
if (*t == 32) {newx+=4; t++; continue; }
|
||||
else ac = *t - '!' + 2930;
|
||||
|
||||
if ((ac < 2930 || ac > 3023) && *t != asc_Space) break;
|
||||
|
||||
if (*t > asc_Space && *t < 127)
|
||||
{
|
||||
newx += tilesiz[ac].x;
|
||||
|
@ -162,8 +160,6 @@ int minigametext(int x,int y,const char *t,char s,short dabits)
|
|||
if (*t == 32) {x+=4; t++; continue; }
|
||||
else ac = *t - '!' + 2930;
|
||||
|
||||
if ((ac < 2930 || ac > 3023) && *t != asc_Space) break;
|
||||
|
||||
if (*t > asc_Space && *t < 127)
|
||||
{
|
||||
rotatesprite(x<<16,y<<16,65536L,0,ac,-128,17,dabits,0,0,xdim-1,ydim-1);
|
||||
|
|
|
@ -5773,9 +5773,9 @@ KeyMain:
|
|||
if (pp == Player+myconnectindex && hud_messages)
|
||||
{
|
||||
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.
|
||||
FStringf msg(TEXTCOLOR_SAPPHIRE "%s: %s", GStrings("TXTS_FORTUNE"), quoteMgr.GetQuote(QUOTE_COOKIE + cookie));
|
||||
Printf("%s\n", msg.GetChars());
|
||||
// print to the console, and the user quote display.
|
||||
FStringf msg("%s %s", GStrings("TXTS_FORTUNE"), quoteMgr.GetQuote(QUOTE_COOKIE + cookie));
|
||||
Printf(TEXTCOLOR_SAPPHIRE "%s\n", msg.GetChars());
|
||||
adduserquote(msg.GetChars());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue