From 489a05a4a403a6a150b57b44606e3b75eb11684d Mon Sep 17 00:00:00 2001 From: dg <dg@51575b47-30f0-44d4-a5cc-537603b46e54> Date: Tue, 14 May 2013 22:10:53 +0000 Subject: [PATCH] they are getting smart git-svn-id: http://svn.net-core.org/repos/t-engine4@6710 51575b47-30f0-44d4-a5cc-537603b46e54 --- game/engines/default/engine/interface/ActorProject.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/game/engines/default/engine/interface/ActorProject.lua b/game/engines/default/engine/interface/ActorProject.lua index 1e0fd6554b..11b9e927bc 100644 --- a/game/engines/default/engine/interface/ActorProject.lua +++ b/game/engines/default/engine/interface/ActorProject.lua @@ -295,8 +295,8 @@ function _M:projectile(t, x, y, damtype, dam, particles) -- if type(dam) == "number" and dam < 0 then return end local typ = Target:getType(t) typ.source_actor = self - typ.start_x = typ.start_x or typ.x or typ.source_actor and typ.source_actor.x or self.x - typ.start_y = typ.start_y or typ.y or typ.source_actor and typ.source_actor.y or self.x + typ.start_x = typ.start_x or typ.x or (typ.source_actor and typ.source_actor.x or self.x) + typ.start_y = typ.start_y or typ.y or (typ.source_actor and typ.source_actor.y or self.y) if self.lineFOV then typ.line_function = self:lineFOV(x, y, nil, nil, typ.start_x, typ.start_y) else -- GitLab