mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-12-13 14:20:59 +00:00
7ff616b26e
* Move the visitation flags, Record Attack/NiGHTS Attack data, and emblem checking to outside of Y_StartIntermission. * Y_CleanupScreenBuffer never got called for maps which skip the intermission, leading to a small memory leak; this is now fixed by moving it to G_AfterIntermission. * Y_FollowIntermission was just G_AfterIntermission with modeattacking specific behaviour, but this is desired for all places where G_AfterIntermission is called, so just merge this into G_AfterIntermission. Notably, these changes are necessary because there are now three maps in the main SP campaign which do not end with traditional intermissions. As a result, this fixes an issue where Black Core's tracks are not available in the Sound Test (due to MV_BEATEN never being applied). Also, since I was here: Remove "gotperfect" from recorddata_t. This is a duplicate of `mapvisited[gamemap-1] & MV_PERFECT` which uses more memory. I have kept the new spacing in the gamedata for compatibility with RC1 savedatas, but moved it across to the original method everywhere else.
33 lines
1,004 B
C
33 lines
1,004 B
C
// SONIC ROBO BLAST 2
|
|
//-----------------------------------------------------------------------------
|
|
// Copyright (C) 2004-2018 by Sonic Team Junior.
|
|
//
|
|
// This program is free software distributed under the
|
|
// terms of the GNU General Public License, version 2.
|
|
// See the 'LICENSE' file for more details.
|
|
//-----------------------------------------------------------------------------
|
|
/// \file y_inter.h
|
|
/// \brief Tally screens, or "Intermissions" as they were formally called in Doom
|
|
|
|
extern boolean usebuffer;
|
|
|
|
void Y_IntermissionDrawer(void);
|
|
void Y_Ticker(void);
|
|
void Y_StartIntermission(void);
|
|
void Y_EndIntermission(void);
|
|
void Y_ConsiderScreenBuffer(void);
|
|
void Y_CleanupScreenBuffer(void);
|
|
|
|
typedef enum
|
|
{
|
|
int_none,
|
|
int_coop, // Single Player/Cooperative
|
|
int_match, // Match
|
|
int_teammatch,// Team Match
|
|
// int_tag, // Tag
|
|
int_ctf, // CTF
|
|
int_spec, // Special Stage
|
|
int_race, // Race
|
|
int_comp, // Competition
|
|
} intertype_t;
|
|
extern intertype_t intertype;
|