Fixes reflectors and a Projectile angle bug

This commit is contained in:
FreeStylaLT
2019-12-15 12:04:29 +02:00
parent 1029bf7e7a
commit d911954920
3 changed files with 7 additions and 3 deletions
@@ -254,6 +254,7 @@
shot_number = 0
P.setDir(dir)
P.starting = loc
P.Angle = null
P.fire()
return P
+1 -2
View File
@@ -240,8 +240,7 @@
if(!paused)
if((!( current ) || loc == current))
current = locate(Clamp(x+xo,1,world.maxx),Clamp(y+yo,1,world.maxy),z)
if(!Angle)
if(isnull(Angle))
Angle=round(Get_Angle(src,current))
if(spread)
Angle += (rand() - 0.5) * spread