mirror of
https://github.com/ddnet/ddnet.git
synced 2024-09-20 01:24:18 +00:00
fixed so that the data container is only loaded once
This commit is contained in:
parent
c4373df7fe
commit
f3149df6e4
|
@ -11,7 +11,7 @@
|
||||||
|
|
||||||
using namespace baselib;
|
using namespace baselib;
|
||||||
|
|
||||||
static data_container *data;
|
data_container *data = 0x0;
|
||||||
|
|
||||||
int charids[16] = {2,10,0,4,12,6,14,1,9,15,13,11,7,5,8,3};
|
int charids[16] = {2,10,0,4,12,6,14,1,9,15,13,11,7,5,8,3};
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
#include "data.h"
|
#include "data.h"
|
||||||
|
|
||||||
static data_container *data;
|
extern data_container *data;
|
||||||
|
|
||||||
using namespace baselib;
|
using namespace baselib;
|
||||||
|
|
||||||
|
@ -956,8 +956,6 @@ void modmenu_init()
|
||||||
teewars_banner_texture = gfx_load_texture("data/gui_logo.png");
|
teewars_banner_texture = gfx_load_texture("data/gui_logo.png");
|
||||||
|
|
||||||
music_menu = snd_load_wav("data/audio/Music_Menu.wav");
|
music_menu = snd_load_wav("data/audio/Music_Menu.wav");
|
||||||
|
|
||||||
data = load_data_container("data/client.dat");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void modmenu_shutdown()
|
void modmenu_shutdown()
|
||||||
|
|
Loading…
Reference in a new issue