mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 04:21:47 +00:00
Hardcode tutorial prompt offset index
This commit is contained in:
parent
9660c0e3c8
commit
b1bfc35ad7
3 changed files with 8 additions and 3 deletions
|
|
@ -169,7 +169,11 @@ typedef struct
|
||||||
|
|
||||||
extern cutscene_t *cutscenes[128];
|
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
|
#define MAX_PAGES 128
|
||||||
|
|
||||||
typedef struct
|
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)
|
void F_StartTextPromptByNamedTag(char *tag, mobj_t *mo, UINT16 postexectag, boolean blockcontrols, boolean freezerealtime)
|
||||||
{
|
{
|
||||||
INT32 promptnum, pagenum;
|
INT32 promptnum, pagenum;
|
||||||
|
INT32 tutorialpromptnum = (tutorialmode) ? TUTORIAL_PROMPT-1 : 0;
|
||||||
char realtag[33];
|
char realtag[33];
|
||||||
|
|
||||||
if (!tag || !tag[0])
|
if (!tag || !tag[0])
|
||||||
|
|
@ -2248,7 +2249,7 @@ void F_StartTextPromptByNamedTag(char *tag, mobj_t *mo, UINT16 postexectag, bool
|
||||||
if (tutorialmode)
|
if (tutorialmode)
|
||||||
strncat(realtag, "FPS", 33);
|
strncat(realtag, "FPS", 33);
|
||||||
|
|
||||||
for (promptnum = 0; promptnum < MAX_PROMPTS; promptnum++)
|
for (promptnum = 0 + tutorialpromptnum; promptnum < MAX_PROMPTS; promptnum++)
|
||||||
{
|
{
|
||||||
if (!textprompts[promptnum])
|
if (!textprompts[promptnum])
|
||||||
continue;
|
continue;
|
||||||
|
|
|
||||||
|
|
@ -141,7 +141,7 @@ tic_t countdowntimer = 0;
|
||||||
boolean countdowntimeup = false;
|
boolean countdowntimeup = false;
|
||||||
|
|
||||||
cutscene_t *cutscenes[128];
|
cutscene_t *cutscenes[128];
|
||||||
textprompt_t *textprompts[256];
|
textprompt_t *textprompts[MAX_PROMPTS];
|
||||||
|
|
||||||
INT16 nextmapoverride;
|
INT16 nextmapoverride;
|
||||||
boolean skipstats;
|
boolean skipstats;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue