mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 09:11:48 +00:00
Merge branch 'tolflag-fix' into 'next'
Fix G_TOLFlag returning the wrong type See merge request STJr/SRB2!834
This commit is contained in:
commit
039aeed633
2 changed files with 3 additions and 3 deletions
|
@ -3592,7 +3592,7 @@ boolean G_CompetitionGametype(void)
|
|||
* \return The typeoflevel flag to check for that gametype.
|
||||
* \author Graue <graue@oceanbase.org>
|
||||
*/
|
||||
INT16 G_TOLFlag(INT32 pgametype)
|
||||
UINT32 G_TOLFlag(INT32 pgametype)
|
||||
{
|
||||
if (!multiplayer)
|
||||
return TOL_SP;
|
||||
|
@ -3723,7 +3723,7 @@ static void G_DoCompleted(void)
|
|||
&& (nextmap >= 0 && nextmap < NUMMAPS))
|
||||
{
|
||||
register INT16 cm = nextmap;
|
||||
INT16 tolflag = G_TOLFlag(gametype);
|
||||
UINT32 tolflag = G_TOLFlag(gametype);
|
||||
UINT8 visitedmap[(NUMMAPS+7)/8];
|
||||
|
||||
memset(visitedmap, 0, sizeof (visitedmap));
|
||||
|
|
|
@ -309,6 +309,6 @@ FUNCMATH INT32 G_TicsToCentiseconds(tic_t tics);
|
|||
FUNCMATH INT32 G_TicsToMilliseconds(tic_t tics);
|
||||
|
||||
// Don't split up TOL handling
|
||||
INT16 G_TOLFlag(INT32 pgametype);
|
||||
UINT32 G_TOLFlag(INT32 pgametype);
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue