mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 02:30:46 +00:00
Add null ptr check to minitext and fix the quotes for DNCLIP
git-svn-id: https://svn.eduke32.com/eduke32@1884 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
b9d47fa7df
commit
19d65b699c
1 changed files with 7 additions and 1 deletions
|
@ -465,6 +465,12 @@ int32_t minitext_(int32_t x,int32_t y,const char *t,int32_t s,int32_t p,int32_t
|
|||
cmode = (sb&ROTATESPRITE_MAX)!=0;
|
||||
sb &= ROTATESPRITE_MAX-1;
|
||||
|
||||
if (t == NULL)
|
||||
{
|
||||
OSD_Printf("minitext: NULL text!\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
do
|
||||
{
|
||||
if (*t == '^' && isdigit(*(t+1)))
|
||||
|
@ -6782,7 +6788,7 @@ FOUNDCHEAT:
|
|||
ud.clipping = 1-ud.clipping;
|
||||
KB_FlushKeyBoardQueue();
|
||||
g_player[myconnectindex].ps->cheat_phase = 0;
|
||||
P_DoQuote(QUOTE_CHEAT_NOCLIP-ud.clipping, g_player[myconnectindex].ps);
|
||||
P_DoQuote(QUOTE_CHEAT_NOCLIP-!ud.clipping, g_player[myconnectindex].ps);
|
||||
return;
|
||||
|
||||
case CHEAT_RESERVED2:
|
||||
|
|
Loading…
Reference in a new issue