Skip to content

Commit 790d8fe

Browse files
committed
commented out debug line
1 parent 62eafcc commit 790d8fe

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

scripts/mouse.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ local fa_utils = require("scripts.fa-utils")
88
local Viewpoint = require("scripts.viewpoint")
99
local mod = {}
1010

11-
---comment
11+
---helper function with tripple return
1212
---@param position MapPosition
1313
---@param pindex int
1414
---@return {x:float,y:float} pixel_pos The sceen pixel coordinates of the map position
1515
---@return boolean on_sceen If that position is on sceen
16-
---@return {x:float,y:float} screen_center The x and y of the center of the screen
16+
---@return {x:float,y:float} screen_center The x and y pixels of the center of the screen
1717
local function get_pixel_pos_onscreen_center(position, pindex)
1818
local player = game.get_player(pindex)
1919
local screen_size = player.display_resolution
@@ -39,7 +39,7 @@ local function move_pointer_to_pixels(pos, pindex)
3939
local y = math.ceil(pos.y)
4040
local text_pos = " " .. x .. "," .. y
4141
print("setCursor " .. pindex .. text_pos)
42-
game.get_player(pindex).print("moved to" .. text_pos, { volume_modifier = 0 })
42+
--game.get_player(pindex).print("moved to" .. text_pos, { volume_modifier = 0 })
4343
end
4444

4545
---Moves the mouse pointer to the correct pixel on the screen for an input map position.

0 commit comments

Comments
 (0)