From 94914e2ebcea150de2f8d816ece4090dc6bd1a3b Mon Sep 17 00:00:00 2001 From: Dominic Masters Date: Sun, 27 Feb 2022 09:49:06 -0800 Subject: [PATCH] Made compilation actually work --- CMakeLists.txt | 2 +- src/games/poker/game.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0f44287b..ac4411cf 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -13,7 +13,7 @@ set(CMAKE_CXX_STANDARD_REQUIRED True) # Set some global flags add_compile_definitions( _CRT_SECURE_NO_WARNINGS=1 - ASSET_PREFIX="assets/" + ASSET_PREFIX="../assets/" ) # Do initial set up depending on the build target type. diff --git a/src/games/poker/game.c b/src/games/poker/game.c index 5db4a8da..1f093907 100644 --- a/src/games/poker/game.c +++ b/src/games/poker/game.c @@ -31,6 +31,9 @@ bool gameInit(game_t *game) { bool doneResize = false; bool gameUpdate(game_t *game, float delta) { + ASSERT_NOT_NULL(game); + ASSERT_GREATER_THAN(delta, 0); + // Let the engine do its thing. engineUpdateStart(&game->engine, delta);