mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-21 03:11:03 +00:00
Hardcode tutorial prompt offset index
This commit is contained in:
parent
a197c19742
commit
99a0831b0b
3 changed files with 8 additions and 3 deletions
|
@ -169,7 +169,11 @@ typedef struct
|
|||
|
||||
extern cutscene_t *cutscenes[128];
|
||||
|
||||
#define MAX_PROMPTS 256
|
||||
// Reserve prompt space for tutorials
|
||||
#define TUTORIAL_PROMPT 201 // one-based
|
||||
#define TUTORIAL_AREAS 6
|
||||
#define TUTORIAL_AREA_PROMPTS 5
|
||||
#define MAX_PROMPTS (TUTORIAL_PROMPT+TUTORIAL_AREAS*TUTORIAL_AREA_PROMPTS*3) // 3 control modes
|
||||
#define MAX_PAGES 128
|
||||
|
||||
typedef struct
|
||||
|
|
|
@ -2236,6 +2236,7 @@ void F_StartTextPrompt(INT32 promptnum, INT32 pagenum, mobj_t *mo, UINT16 postex
|
|||
void F_StartTextPromptByNamedTag(char *tag, mobj_t *mo, UINT16 postexectag, boolean blockcontrols, boolean freezerealtime)
|
||||
{
|
||||
INT32 promptnum, pagenum;
|
||||
INT32 tutorialpromptnum = (tutorialmode) ? TUTORIAL_PROMPT-1 : 0;
|
||||
char realtag[33];
|
||||
|
||||
if (!tag || !tag[0])
|
||||
|
@ -2248,7 +2249,7 @@ void F_StartTextPromptByNamedTag(char *tag, mobj_t *mo, UINT16 postexectag, bool
|
|||
if (tutorialmode)
|
||||
strncat(realtag, "FPS", 33);
|
||||
|
||||
for (promptnum = 0; promptnum < MAX_PROMPTS; promptnum++)
|
||||
for (promptnum = 0 + tutorialpromptnum; promptnum < MAX_PROMPTS; promptnum++)
|
||||
{
|
||||
if (!textprompts[promptnum])
|
||||
continue;
|
||||
|
|
|
@ -141,7 +141,7 @@ tic_t countdowntimer = 0;
|
|||
boolean countdowntimeup = false;
|
||||
|
||||
cutscene_t *cutscenes[128];
|
||||
textprompt_t *textprompts[256];
|
||||
textprompt_t *textprompts[MAX_PROMPTS];
|
||||
|
||||
INT16 nextmapoverride;
|
||||
boolean skipstats;
|
||||
|
|
Loading…
Reference in a new issue