diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-09-20 17:28:35 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-09-20 17:34:25 +0200 |
| commit | 3eef29c327abd46e73c0a4d5b1c186dd7d3878b2 (patch) | |
| tree | f08cfce76affcc84a6563b9ed5c0e8c610345d6f /src/system/sdl-1.2 | |
| parent | 8f9737b776bf98d0686a2f11685d1e307b2ef390 (diff) | |
| download | rts-3eef29c327abd46e73c0a4d5b1c186dd7d3878b2.tar.gz | |
menu: Implement join_menu
Diffstat (limited to 'src/system/sdl-1.2')
| -rw-r--r-- | src/system/sdl-1.2/src/system.c | 4 |
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); |
