[FIX] Informa de la versió del runtime de mini

[FIX] Viewport centrat en l'X de l'abad
This commit is contained in:
2026-05-24 10:06:53 +02:00
parent 6aa100da9e
commit 9cbe4d0075
2 changed files with 8 additions and 7 deletions
+3 -3
View File
@@ -194,10 +194,10 @@ function viewport_update()
local vp_x = viewp.x
local vp_y = viewp.y
local vp_center_offset_x = (viewp.width >> 1)
local vp_center_offset_y = (viewp.height >> 1)
local vp_center_offset_x = (viewp.width // 2)
local vp_center_offset_y = (viewp.height // 2)
vp_x = abad.x - vp_center_offset_x
vp_x = abad.x+(abad.w/2) - vp_center_offset_x
if vp_x < 0 then vp_x = 0 end
vp_y = abad.y - vp_center_offset_y