[quake3-commits] [ioquake/ioq3] 3377f9: Fix map list in Team Arena start server menu after...

Zack Middleton zack at cloemail.com
Thu Apr 12 02:12:31 EDT 2018


  Branch: refs/heads/master
  Home:   https://github.com/ioquake/ioq3
  Commit: 3377f9981a5c9a245422d6a1531f66fceb333f77
      https://github.com/ioquake/ioq3/commit/3377f9981a5c9a245422d6a1531f66fceb333f77
  Author: Zack Middleton <zack at cloemail.com>
  Date:   2018-04-12 (Thu, 12 Apr 2018)

  Changed paths:
    M code/ui/ui_gameinfo.c
    M code/ui/ui_local.h
    M code/ui/ui_main.c

  Log Message:
  -----------
  Fix map list in Team Arena start server menu after entering SP menu

In September 2017 I moved loading arenas.txt/*.arena files from entering
start server menu to at startup to fix running out of memory in Team Arena
UI after opening the start server menu several times.

However, Team Arena completely replaces the uiInfo.mapList array when
switching between single player and start server menus. So after my
change, entering single player and then entering start server would only
display single player maps. It caused SP endofgame menu to use MP map
list for replay/next map since arenas were loaded after gameinfo.txt.

Continue loading arena info at start up to avoid reallocating arena info
but move setting up uiInfo.mapList to when entering the start server
menu.




More information about the quake3-commits mailing list