From 86fa62ce1d7862a14d728f6717beb1b6c6c72fd0 Mon Sep 17 00:00:00 2001 From: Cameron Reikes Date: Fri, 16 Dec 2022 17:44:58 -0800 Subject: [PATCH] Release with radar --- buildsettings.h | 2 +- gamestate.c | 4 ++-- types.h | 1 - 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/buildsettings.h b/buildsettings.h index 45f09f7..1bd942a 100644 --- a/buildsettings.h +++ b/buildsettings.h @@ -6,7 +6,7 @@ #define SERVER_PORT 2551 // must be unsigned integer -#define GIT_RELEASE_TAG 25 +#define GIT_RELEASE_TAG 26 #ifdef DEBUG diff --git a/gamestate.c b/gamestate.c index b42ab0b..ed74fa0 100644 --- a/gamestate.c +++ b/gamestate.c @@ -288,7 +288,7 @@ typedef struct QueryResult cpVect pointA; cpVect pointB; } QueryResult; -static THREADLOCAL char query_result_data[QUEUE_SIZE_FOR_ELEMENTS(sizeof(QueryResult), 128)] = {0}; +static THREADLOCAL char query_result_data[QUEUE_SIZE_FOR_ELEMENTS(sizeof(QueryResult), 256)] = {0}; // the data starts off NULL, on the first call sets it to result data static THREADLOCAL Queue query_result = {0}; @@ -3157,7 +3157,7 @@ void process(struct GameState *gs, double dt) */ circle_query(gs->space, entity_pos(cur_box), SCANNER_MAX_RANGE); - cpBody *body_results[128] = {0}; + cpBody *body_results[512] = {0}; size_t cur_results_len = 0; QUEUE_ITER(&query_result, QueryResult, res) diff --git a/types.h b/types.h index 0d1c71b..4752c8b 100644 --- a/types.h +++ b/types.h @@ -89,7 +89,6 @@ #define TIME_BETWEEN_WORLD_SAVE 30.0f #endif - #define BOMB_EXPLOSION_PUSH 5.0f #define BOMB_EXPLOSION_RADIUS 1.0f