Skip to content

Commit

Permalink
Display 8 maps instead of 4 in start server menu
Browse files Browse the repository at this point in the history
From mint-arena by popular request.
  • Loading branch information
zturtleman committed Oct 12, 2018
1 parent 6c7da99 commit 0969e14
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions code/q3_ui/ui_startserver.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ START SERVER MENU *****
#define GAMESERVER_ARROWSR "menu/art/gs_arrows_r"

#define MAX_MAPROWS 2
#define MAX_MAPCOLS 2
#define MAX_MAPSPERPAGE 4
#define MAX_MAPCOLS 4
#define MAX_MAPSPERPAGE 8

#define MAX_NAMELENGTH 16
#define ID_GAMETYPE 10
Expand Down Expand Up @@ -434,8 +434,8 @@ static void StartServer_MenuInit( void ) {

for (i=0; i<MAX_MAPSPERPAGE; i++)
{
x = (i % MAX_MAPCOLS) * (128+8) + 188;
y = (i / MAX_MAPROWS) * (128+8) + 96;
x = (i % MAX_MAPCOLS) * (128+8) + (SCREEN_WIDTH - (MAX_MAPCOLS * (128+8)) - 8) / 2;
y = ((i / MAX_MAPCOLS) % MAX_MAPROWS) * (128+8) + 96;

s_startserver.mappics[i].generic.type = MTYPE_BITMAP;
s_startserver.mappics[i].generic.flags = QMF_LEFT_JUSTIFY|QMF_INACTIVE;
Expand Down

0 comments on commit 0969e14

Please sign in to comment.