small fix for game switch

This commit is contained in:
p.kosyh 2009-09-01 17:42:05 +00:00
parent 10d68d774a
commit 314fe0ec49
2 changed files with 7 additions and 4 deletions

View file

@ -13,8 +13,8 @@ LUA_LFLAGS=$(shell pkg-config --libs lua5.1)
# for arch linux (may be others) use this
#
# LUA_CFLAGS=$(shell pkg-config --cflags lua)
# LUA_LFLAGS=$(shell pkg-config --libs lua)
LUA_CFLAGS=$(shell pkg-config --cflags lua)
LUA_LFLAGS=$(shell pkg-config --libs lua)
#
SDL_CFLAGS=$(shell sdl-config --cflags)

View file

@ -54,9 +54,12 @@ int main(int argc, char **argv)
cfg_load();
if (game_sw)
if (game_sw) {
if (opt_game)
free(opt_game);
opt_game = game_sw;
}
if (opt_theme)
game_theme_select(opt_theme);
if (!curtheme)