make baby windows work again
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
#include "townengine/twn_game_object.h"
|
||||
#include "townengine/game_api.h"
|
||||
#include "twn_game_object_c.h"
|
||||
#include "twn_game_api.h"
|
||||
|
||||
|
||||
void game_object_load(void) {
|
||||
|
@ -1,5 +1,5 @@
|
||||
#include "townengine/twn_game_object.h"
|
||||
#include "townengine/context.h"
|
||||
#include "twn_game_object_c.h"
|
||||
#include "twn_engine_context_c.h"
|
||||
|
||||
#include <errhandlingapi.h>
|
||||
#include <libloaderapi.h>
|
||||
@ -48,7 +48,7 @@ static void load_game_object(void) {
|
||||
|
||||
handle = new_handle;
|
||||
|
||||
if (ctx.tick_count != 0)
|
||||
if (ctx.game.tick_count != 0)
|
||||
log_info("Game object was reloaded\n");
|
||||
|
||||
return;
|
||||
|
@ -1,6 +1,7 @@
|
||||
#include "twn_util.h"
|
||||
#include "twn_engine_context_c.h"
|
||||
#include "twn_rendering_c.h"
|
||||
#include "twn_rendering.h"
|
||||
|
||||
#include <SDL2/SDL.h>
|
||||
#include <stb_ds.h>
|
||||
|
@ -1,3 +1,4 @@
|
||||
#include "twn_rendering.h"
|
||||
#include "twn_rendering_c.h"
|
||||
#include "twn_engine_context_c.h"
|
||||
#include "twn_textures_c.h"
|
||||
|
@ -3,6 +3,7 @@
|
||||
|
||||
#include "twn_context.h"
|
||||
#include "twn_textures_c.h"
|
||||
#include "twn_engine_api.h"
|
||||
#include "twn_input.h"
|
||||
#include "rendering/twn_rendering_c.h"
|
||||
|
||||
@ -47,6 +48,6 @@ typedef struct engine_context {
|
||||
bool was_successful;
|
||||
} t_engine_ctx;
|
||||
|
||||
extern t_engine_ctx ctx;
|
||||
TWN_API extern t_engine_ctx ctx;
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user