Skip to content

Commit

Permalink
More TG fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
EvilDragonfiend committed Apr 17, 2024
1 parent 6bcd034 commit 1d863f2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions code/game/data_huds.dm
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,7 @@
if(internal_damage)
holder.icon_state = "hudwarn"
set_hud_image_active(DIAG_STAT_HUD)
return
holder.icon_state = null
set_hud_image_inactive(DIAG_STAT_HUD)

Expand Down
4 changes: 4 additions & 0 deletions code/modules/antagonists/_common/antag_spawner.dm
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@
var/mob/living/carbon/human/M = new/mob/living/carbon/human(T)
C.prefs.apply_prefs_to(M)
M.key = C.key
if(length(GLOB.newplayer_start)) // needed as hud code doesn't render huds if the atom (in this case the nukie) is in nullspace, so just move the nukie somewhere safe
nukie.forceMove(pick(GLOB.newplayer_start))
else
nukie.forceMove(locate(1,1,1))

var/datum/antagonist/nukeop/new_op = new()
new_op.send_to_spawnpoint = FALSE
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/carbon.dm
Original file line number Diff line number Diff line change
Expand Up @@ -546,7 +546,7 @@
if(!isnull(E.lighting_alpha))
lighting_alpha = E.lighting_alpha

if(client.eye != src)
if(client.eye && client.eye != src)
var/atom/A = client.eye
if(A.update_remote_sight(src)) //returns 1 if we override all other sight updates.
return
Expand Down

0 comments on commit 1d863f2

Please sign in to comment.