mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
Changes a lot of del() to qdel()
This commit is contained in:
@@ -178,7 +178,7 @@
|
||||
probabilities[M.config_tag] = M.probability
|
||||
if(M.votable)
|
||||
votable_modes += M.config_tag
|
||||
del(M)
|
||||
qdel(M)
|
||||
votable_modes += "secret"
|
||||
|
||||
/datum/configuration/proc/load(filename, type = "config") //the type can also be game_options, in which case it uses a different switch. not making it separate to not copypaste code - Urist
|
||||
@@ -567,7 +567,7 @@
|
||||
var/datum/game_mode/M = new T()
|
||||
if(M.config_tag && M.config_tag == mode_name)
|
||||
return M
|
||||
del(M)
|
||||
qdel(M)
|
||||
return new /datum/game_mode/extended()
|
||||
|
||||
/datum/configuration/proc/get_runnable_modes()
|
||||
@@ -576,10 +576,10 @@
|
||||
var/datum/game_mode/M = new T()
|
||||
//world << "DEBUG: [T], tag=[M.config_tag], prob=[probabilities[M.config_tag]]"
|
||||
if(!(M.config_tag in modes))
|
||||
del(M)
|
||||
qdel(M)
|
||||
continue
|
||||
if(probabilities[M.config_tag]<=0)
|
||||
del(M)
|
||||
qdel(M)
|
||||
continue
|
||||
if(M.can_start())
|
||||
runnable_modes[M] = probabilities[M.config_tag]
|
||||
|
||||
@@ -29,7 +29,7 @@ var/datum/subsystem/radio/radio_controller
|
||||
frequency.remove_listener(device)
|
||||
|
||||
if(frequency.devices.len == 0)
|
||||
del(frequency)
|
||||
qdel(frequency)
|
||||
frequencies -= f_text
|
||||
|
||||
return 1
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
if(!istype(C.mob, /mob/dead))
|
||||
log_access("AFK: [key_name(C)]")
|
||||
C << "<span class='danger'>You have been inactive for more than 10 minutes and have been disconnected.</span>"
|
||||
del(C)
|
||||
qdel(C)
|
||||
|
||||
if(config.sql_enabled)
|
||||
sql_poll_players()
|
||||
|
||||
@@ -137,7 +137,7 @@ var/datum/subsystem/ticker/ticker
|
||||
mode = config.pick_mode(master_mode)
|
||||
if(!mode.can_start())
|
||||
world << "<B>Unable to start [mode.name].</B> Not enough players, [mode.required_players] players and [mode.required_enemies] eligible antagonists needed. Reverting to pre-game lobby."
|
||||
del(mode)
|
||||
qdel(mode)
|
||||
SSjob.ResetOccupations()
|
||||
return 0
|
||||
|
||||
@@ -148,7 +148,7 @@ var/datum/subsystem/ticker/ticker
|
||||
|
||||
if(!Debug2)
|
||||
if(!can_continue)
|
||||
del(mode)
|
||||
qdel(mode)
|
||||
world << "<B>Error setting up [master_mode].</B> Reverting to pre-game lobby."
|
||||
SSjob.ResetOccupations()
|
||||
return 0
|
||||
@@ -289,8 +289,8 @@ var/datum/subsystem/ticker/ticker
|
||||
flick("station_intact",cinematic)
|
||||
world << sound('sound/ambience/signal.ogg')
|
||||
sleep(100)
|
||||
if(cinematic) del(cinematic)
|
||||
if(temp_buckle) del(temp_buckle)
|
||||
if(cinematic) qdel(cinematic)
|
||||
if(temp_buckle) qdel(temp_buckle)
|
||||
return //Faster exit, since nothing happened
|
||||
else //Station nuked (nuke,explosion,summary)
|
||||
flick("intro_nuke",cinematic)
|
||||
|
||||
Reference in New Issue
Block a user