aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/crepe/system/AISystem.cpp2
-rw-r--r--src/crepe/system/AISystem.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/crepe/system/AISystem.cpp b/src/crepe/system/AISystem.cpp
index 4d5039b..b42cb11 100644
--- a/src/crepe/system/AISystem.cpp
+++ b/src/crepe/system/AISystem.cpp
@@ -80,7 +80,7 @@ vec2 AISystem::calculate(AI & ai, const Rigidbody & rigidbody) {
return force;
}
-bool AISystem::accumulate_force(const AI & ai, vec2 & running_total, vec2 force_to_add) {
+bool AISystem::accumulate_force(const AI & ai, vec2 & running_total, vec2 & force_to_add) {
float magnitude = running_total.length();
float magnitude_remaining = ai.max_force - magnitude;
diff --git a/src/crepe/system/AISystem.h b/src/crepe/system/AISystem.h
index 160df01..9a937d2 100644
--- a/src/crepe/system/AISystem.h
+++ b/src/crepe/system/AISystem.h
@@ -37,7 +37,7 @@ private:
* \param force_to_add The force to add
* \return true if the force was added, false otherwise
*/
- bool accumulate_force(const AI & ai, vec2 & running_total, vec2 force_to_add);
+ bool accumulate_force(const AI & ai, vec2 & running_total, vec2 & force_to_add);
/**
* \brief Calculate the seek force