mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-19 02:54:41 +01:00
Changes over all instances of new/list() to something more sensible (#25569)
Signed-off-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
@@ -78,7 +78,7 @@
|
||||
return new /datum/game_mode/extended()
|
||||
|
||||
/datum/configuration_section/gamemode_configuration/proc/get_runnable_modes()
|
||||
var/list/datum/game_mode/runnable_modes = new
|
||||
var/list/datum/game_mode/runnable_modes = list()
|
||||
for(var/T in subtypesof(/datum/game_mode))
|
||||
var/datum/game_mode/M = new T()
|
||||
|
||||
|
||||
@@ -251,7 +251,7 @@ SUBSYSTEM_DEF(ticker)
|
||||
SSjobs.DivideOccupations() //Distribute jobs
|
||||
|
||||
if(hide_mode)
|
||||
var/list/modes = new
|
||||
var/list/modes = list()
|
||||
for(var/datum/game_mode/M in runnable_modes)
|
||||
modes += M.name
|
||||
modes = sortList(modes)
|
||||
|
||||
Reference in New Issue
Block a user