Page 1 of 1

stop_block and aoe projectiles

Posted: Mon Apr 29, 2013 9:56 pm
by Umbrall
This doesn't matter at all for the core game but it's a trivial fix:
line 246 of projectile should be changed from

Code: Select all

self.src:projectDoStop(self.project.def.typ, self.project.def.tg, self.project.def.damtype, self.project.def.dam, self.project.def.particles, self.x, self.y, self.tmp_proj)
to

Code: Select all

self.src:projectDoStop(self.project.def.typ, self.project.def.tg, self.project.def.damtype, self.project.def.dam, self.project.def.particles, self.x, self.y, self.tmp_proj, self.old_x, self.old_y)
This is so that projectiles with an aoe don't break when they have stop_block

Re: stop_block and aoe projectiles

Posted: Tue Apr 30, 2013 3:45 am
by tiger_eye
Good catch, but it should use the current x and y, not "old_x" and "old_y".

Re: stop_block and aoe projectiles

Posted: Tue Apr 30, 2013 8:02 pm
by darkgod
fixed