aboutsummaryrefslogtreecommitdiff
path: root/src/system/sdl-1.2
diff options
context:
space:
mode:
authorXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-09-20 17:28:35 +0200
committerXavier Del Campo Romero <xavi.dcr@tutanota.com>2022-09-20 17:34:25 +0200
commitd9851c5e7864121e804b4563eedffef830d5117e (patch)
treefea42ef25444f131ec5242a09a7ad2a5bf743371 /src/system/sdl-1.2
parent6b54e9be328182d08bfa3e7278e8742493441b94 (diff)
downloadjancity-d9851c5e7864121e804b4563eedffef830d5117e.tar.gz
menu: Implement join_menu
Diffstat (limited to 'src/system/sdl-1.2')
-rw-r--r--src/system/sdl-1.2/src/system.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/system/sdl-1.2/src/system.c b/src/system/sdl-1.2/src/system.c
index 24c3e18..bff5e4f 100644
--- a/src/system/sdl-1.2/src/system.c
+++ b/src/system/sdl-1.2/src/system.c
@@ -1,5 +1,6 @@
#include <gfx.h>
#include <sfx.h>
+#include <net.h>
#include <system.h>
#include <SDL.h>
#include <stdio.h>
@@ -19,6 +20,7 @@ void system_deinit(void)
{
gfx_deinit();
sfx_deinit();
+ net_deinit();
SDL_Quit();
}
@@ -29,7 +31,7 @@ int system_init(void)
fprintf(stderr, "SDL_Init: %s\n", SDL_GetError());
goto failure;
}
- else if (gfx_init() || sfx_init())
+ else if (gfx_init() || sfx_init() || net_init())
goto failure;
SDL_WM_SetCaption("rts", NULL);