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
|
@ -3592,7 +3592,7 @@ boolean G_CompetitionGametype(void)
|
||||||
* \return The typeoflevel flag to check for that gametype.
|
* \return The typeoflevel flag to check for that gametype.
|
||||||
* \author Graue <graue@oceanbase.org>
|
* \author Graue <graue@oceanbase.org>
|
||||||
*/
|
*/
|
||||||
INT16 G_TOLFlag(INT32 pgametype)
|
UINT32 G_TOLFlag(INT32 pgametype)
|
||||||
{
|
{
|
||||||
if (!multiplayer)
|
if (!multiplayer)
|
||||||
return TOL_SP;
|
return TOL_SP;
|
||||||
|
@ -3723,7 +3723,7 @@ static void G_DoCompleted(void)
|
||||||
&& (nextmap >= 0 && nextmap < NUMMAPS))
|
&& (nextmap >= 0 && nextmap < NUMMAPS))
|
||||||
{
|
{
|
||||||
register INT16 cm = nextmap;
|
register INT16 cm = nextmap;
|
||||||
INT16 tolflag = G_TOLFlag(gametype);
|
UINT32 tolflag = G_TOLFlag(gametype);
|
||||||
UINT8 visitedmap[(NUMMAPS+7)/8];
|
UINT8 visitedmap[(NUMMAPS+7)/8];
|
||||||
|
|
||||||
memset(visitedmap, 0, sizeof (visitedmap));
|
memset(visitedmap, 0, sizeof (visitedmap));
|
||||||
|
|
|
@ -309,6 +309,6 @@ FUNCMATH INT32 G_TicsToCentiseconds(tic_t tics);
|
||||||
FUNCMATH INT32 G_TicsToMilliseconds(tic_t tics);
|
FUNCMATH INT32 G_TicsToMilliseconds(tic_t tics);
|
||||||
|
|
||||||
// Don't split up TOL handling
|
// Don't split up TOL handling
|
||||||
INT16 G_TOLFlag(INT32 pgametype);
|
UINT32 G_TOLFlag(INT32 pgametype);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue