Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ratoa_gamecode/code/game/g_local.h
Original file line number Diff line number Diff line change
Expand Up @@ -924,6 +924,11 @@ typedef struct {

qboolean arenasLoaded;

qboolean maplistFromVotemaps;
qboolean maplistCached;
struct maplist_s maplistSource;
struct maplist_s maplistRecommended;

int teamBalanceTime;


Expand Down Expand Up @@ -1463,6 +1468,7 @@ extern char custom_vote_info[2048];

extern t_mappage getMappage(int page, qboolean largepage, qboolean recommendedonly);
extern t_mappage getGTMappage(int page, qboolean largepage);
void G_BuildMaplistCache( void );
void getCompleteMaplist(qboolean recommenedonly, int gametypebits_filter, int numPlayers, struct maplist_s *out);
extern int allowedMap(char *mapname);
extern int allowedGametype(char *gametypeStr);
Expand Down
2 changes: 2 additions & 0 deletions ratoa_gamecode/code/game/g_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1076,6 +1076,8 @@ void G_InitGame( int levelTime, int randomSeed, int restart ) {
level.time = levelTime;
level.startTime = levelTime;

G_BuildMaplistCache();

level.snd_fry = G_SoundIndex("sound/player/fry.wav"); // FIXME standing in lava / slime
level.snd_thaw = G_FreezeThawSound();

Expand Down
Loading