fixed so that the data container is only loaded once

This commit is contained in:
Magnus Auvinen 2007-07-16 18:40:14 +00:00
parent c4373df7fe
commit f3149df6e4
2 changed files with 2 additions and 4 deletions

View file

@ -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};

View file

@ -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()