aboutsummaryrefslogtreecommitdiff
path: root/src/entities/generale.c
diff options
context:
space:
mode:
authornathansmithsmith <nathansmith7@mailfence.com>2023-10-11 17:56:54 -0600
committernathansmithsmith <nathansmith7@mailfence.com>2023-10-11 17:56:54 -0600
commit720467f4b295d86aac8acb75c78822c21fcba281 (patch)
tree4da746a9b978e710901271ba28adf5c8863a416e /src/entities/generale.c
parent71f748a76ef0b86b6377ea82cb2e7e785d28b647 (diff)
Fixed frame rate issue (should have fixed it a month ago)
Diffstat (limited to 'src/entities/generale.c')
-rw-r--r--src/entities/generale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/entities/generale.c b/src/entities/generale.c
index c49faba..3cf9854 100644
--- a/src/entities/generale.c
+++ b/src/entities/generale.c
@@ -104,7 +104,7 @@ void updateGenerale(Game * game, Entity * entity) {
if (data->targetNotSet) {
getTargetGenerale(game, entity);
data->targetNotSet = false;
- } else if (Vector3Distance(entity->position, data->target) <= GENERALE_NEXT_POINT_THRESHOLD)
+ } else if (Vector3Distance(entity->position, data->target) <= GENERALE_NEXT_POINT_THRESHOLD * GetFrameTime())
getTargetGenerale(game, entity);
entityFlyToPoint(