From 6be3b60cd42529cfb24bc630cb20b71f5a807405 Mon Sep 17 00:00:00 2001 From: Krzosa Karol Date: Thu, 20 Apr 2023 15:30:58 +0200 Subject: [PATCH] RTS: Fix history flickering --- build/rtsgame/main.core | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build/rtsgame/main.core b/build/rtsgame/main.core index 4d726de..a866188 100644 --- a/build/rtsgame/main.core +++ b/build/rtsgame/main.core @@ -177,8 +177,6 @@ main :: (): int it := map.actors.data + i MAP_PathFindStep(it) - MAP_PathFindUpdate(map) - BeginDrawing() ClearBackground(RAYWHITE) @@ -303,6 +301,8 @@ main :: (): int DrawRectangleRec(MouseSelectionBox, COLOR_SelectionBox) + MAP_PathFindUpdate(map) + menu_open := false if menu_open text_size := 24