summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTenPlus1 <kinsellaja@yahoo.com>2016-10-04 09:54:26 +0100
committerTenPlus1 <kinsellaja@yahoo.com>2016-10-04 09:54:26 +0100
commit444b486c5e83ff9166fa8cf4c8e1847c8c581b72 (patch)
treeb20b6050f2ff44a5e2f59ac23e9efc8e0987758d
parent03e96f30175dfaf34a6635de0db3f566eb68f722 (diff)
Code tidy
-rw-r--r--api.lua6
1 files changed, 2 insertions, 4 deletions
diff --git a/api.lua b/api.lua
index e4399da..6331935 100644
--- a/api.lua
+++ b/api.lua
@@ -1,5 +1,5 @@
--- Mobs Api (29th September 2016)
+-- Mobs Api (4th October 2016)
mobs = {}
mobs.mod = "redo"
@@ -1470,9 +1470,7 @@ local do_states = function(self, dtime)
if get_velocity(self) <= 0.5
and self.object:getvelocity().y == 0 then
- local v = self.object:getvelocity()
- v.y = 5
- self.object:setvelocity(v)
+ do_jump(self)
end
set_velocity(self, self.run_velocity)