fix shot axis
This commit is contained in:
		| @@ -881,8 +881,8 @@ function gun_base:actually_shoot(x, y) | |||||||
|   --   shots from guns with |   --   shots from guns with | ||||||
|   --   widely varying angles) |   --   widely varying angles) | ||||||
|   local m = munition.new{ |   local m = munition.new{ | ||||||
|    dx=sin(a)*v, |    dx=cos(a)*v, | ||||||
|    dy=cos(a)*v |    dy=sin(a)*v | ||||||
|   } |   } | ||||||
|   m:spawn_at(x+xo, y) |   m:spawn_at(x+xo, y) | ||||||
|  end |  end | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user