Fixes asteroid exoplanet turf lighting (#21599)

Replaces pixel_x/pixel_y adjustment for asteroid turfs with transform
method. This is the same method /tg/ uses for their turfs equalivent to
our asteroid turfs

Fixes #21587

## Images

<details><summary>Before:</summary>
<p>

<img width="997" height="981" alt="Screenshot_2"
src="https://github.com/user-attachments/assets/60e8c95e-574c-4aca-b7b6-cc2e94812823"
/>

</p>
</details> 

<details><summary>After:</summary>
<p>

<img width="998" height="984" alt="Screenshot_1"
src="https://github.com/user-attachments/assets/e49aa7d4-27e0-4c56-84d9-6002a768f621"
/>

</p>
</details>
This commit is contained in:
Kano
2025-11-15 23:14:48 +01:00
committed by GitHub
parent 210add0d68
commit 00b54843f2
3 changed files with 13 additions and 4 deletions
+3 -2
View File
@@ -763,8 +763,9 @@ GLOBAL_LIST_INIT(asteroid_floor_smooth, list(
if(smoothing_flags)
canSmoothWith = GLOB.asteroid_floor_smooth
pixel_x = -4
pixel_y = -4
var/matrix/M = new
M.Translate(-4, -4)
transform = M
if(light_range && light_power)
update_light()