diff options
author | max-001 <maxsmits21@kpnmail.nl> | 2024-12-10 08:53:03 +0100 |
---|---|---|
committer | max-001 <maxsmits21@kpnmail.nl> | 2024-12-10 08:53:03 +0100 |
commit | 4e7ddc9d8eb396f7160e09da8c9b3d797274600a (patch) | |
tree | d132f6a2a38fd3cb9dd206ce8cc3223cb57e1f13 /src/crepe/system/AISystem.cpp | |
parent | c8d05f759bb1be0ec99e8f23eaa65c80c36ce03d (diff) |
Replaced copy by reference
Diffstat (limited to 'src/crepe/system/AISystem.cpp')
-rw-r--r-- | src/crepe/system/AISystem.cpp | 2 |
1 files changed, 1 insertions, 1 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; |