Skip to content

Commit

Permalink
bugfix: AI fail to click on certain lines of map (#5178)
Browse files Browse the repository at this point in the history
  • Loading branch information
BeebBeebBoob authored Jun 10, 2024
1 parent 7e0b659 commit 93f96cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/modules/mob/living/silicon/ai/freelook/cameranet.dm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#define CHUNK_SIZE 16 // Only chunk sizes that are to the power of 2. E.g: 2, 4, 8, 16, etc..
/// Takes a position, transforms it into a chunk bounded position. Indexes at 1 so it'll land on actual turfs always
#define GET_CHUNK_COORD(v) (FLOOR(v, CHUNK_SIZE) + 1)
#define GET_CHUNK_COORD(v) (max((FLOOR(v, CHUNK_SIZE)), 1))
GLOBAL_DATUM_INIT(cameranet, /datum/cameranet, new())

/datum/cameranet
Expand Down

0 comments on commit 93f96cb

Please sign in to comment.