Skip to content

Commit

Permalink
hgf
Browse files Browse the repository at this point in the history
  • Loading branch information
Anorak2024 committed Sep 10, 2024
1 parent 2aebba5 commit 093f337
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/modules/projectiles/firing.dm
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@

if(params)
var/list/mouse_control = params2list(params)
if(mouse_control["y_of_shot"]) // Протестировать этот иф
if(mouse_control["y_of_shot"]) // Протестировать этот иф, скорее всего не работает нормально.
var/y_of_shot = text2num(mouse_control["y_of_shot"])
pixel_y = world.icon_size * y_of_shot
var/angle = ATAN2(y * world.icon_size - (oy * world.icon_size + (y_of_shot - 0.5) * orld.icon_size), x * world.icon_size - ox * world.icon_size)
var/angle = ATAN2(yo * world.icon_size - (y_of_shot - 0.5) * world.icon_size, xo * world.icon_size)
Angle = angle
if(mouse_control["icon-x"])
p_x = text2num(mouse_control["icon-x"])
Expand Down

0 comments on commit 093f337

Please sign in to comment.