mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-07-19 02:56:14 +01:00
Add 'as anything' to various for loops
This commit is contained in:
@@ -33,11 +33,10 @@ PROCESSING_SUBSYSTEM_DEF(instruments)
|
||||
songs -= S
|
||||
|
||||
/datum/controller/subsystem/processing/instruments/proc/initialize_instrument_data()
|
||||
for(var/path in subtypesof(/datum/instrument))
|
||||
var/datum/instrument/I = path
|
||||
if(initial(I.abstract_type) == path)
|
||||
for(var/datum/instrument/I as anything in subtypesof(/datum/instrument))
|
||||
if(initial(I.abstract_type) == I)
|
||||
continue
|
||||
I = new path
|
||||
I = new I
|
||||
I.Initialize()
|
||||
if(!I.id)
|
||||
qdel(I)
|
||||
|
||||
@@ -19,7 +19,6 @@ PROCESSING_SUBSYSTEM_DEF(projectiles)
|
||||
|
||||
/datum/controller/subsystem/processing/projectiles/proc/set_pixel_speed(new_speed)
|
||||
global_pixel_speed = new_speed
|
||||
for(var/i in processing)
|
||||
var/obj/item/projectile/P = i
|
||||
for(var/obj/item/projectile/P as anything in processing)
|
||||
if(istype(P)) //there's non projectiles on this too.
|
||||
P.set_pixel_speed(new_speed)
|
||||
|
||||
Reference in New Issue
Block a user