Skip to content

Commit

Permalink
renames c to client
Browse files Browse the repository at this point in the history
  • Loading branch information
uuuuhuuuu committed Jan 14, 2024
1 parent 7b5089a commit 2926b17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions code/game/sound.dm
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,8 @@


//This is the replacement for playsound_local. Use this for sending sounds directly to a client
/proc/playsound_client(client/C, soundin, atom/origin, vol = 100, random_freq, vol_cat = VOLUME_SFX, channel = 0, status, list/echo, y_s_offset, x_s_offset)
if(!istype(C) || !C.soundOutput) return FALSE
/proc/playsound_client(client/client, soundin, atom/origin, vol = 100, random_freq, vol_cat = VOLUME_SFX, channel = 0, status, list/echo, y_s_offset, x_s_offset)
if(!istype(client) || !client.soundOutput) return FALSE
var/datum/sound_template/S = new()
if(origin)
var/turf/T = get_turf(origin)
Expand All @@ -126,7 +126,7 @@
S.echo = echo
S.y_s_offset = y_s_offset
S.x_s_offset = x_s_offset
SSsound.queue(S, list(C))
SSsound.queue(S, list(client))

/// Plays sound to all mobs that are map-level contents of an area
/proc/playsound_area(area/A, soundin, vol = 100, channel = 0, status, vol_cat = VOLUME_SFX, list/echo, y_s_offset, x_s_offset)
Expand Down

0 comments on commit 2926b17

Please sign in to comment.