Skip to content

Instantly share code, notes, and snippets.

@legumbre
Created July 16, 2012 22:33
Show Gist options
  • Save legumbre/3125507 to your computer and use it in GitHub Desktop.
Save legumbre/3125507 to your computer and use it in GitHub Desktop.
Modified src/RingRun/src/common/rr_runner.lua
diff --git a/src/RingRun/src/common/rr_runner.lua b/src/RingRun/src/common/rr_runner.lua
index e0b32ad..0a48d9f 100644
--- a/src/RingRun/src/common/rr_runner.lua
+++ b/src/RingRun/src/common/rr_runner.lua
@@ -926,9 +926,13 @@ function Runner:switch_in_started(time, step)
else
klog.debug("Boost conditions weren't met.")
end
+
+ if isa(self, Player) then
self.boost_charge= 0 -- in any case, after switch_in we lose the charge...
self.can_charge_boost= false -- ...until the next switch out cycle starts
+ end
+
end
function Runner:max_outside_reached(time, step)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment