world.New()
while(timer)
set background = 1
if(gamestarted)
timer += 1
clock += 1
if(clock >= 300)
clock = 0
if(clock >= 0&&clock < 60)
time = 1
for(var/turf/T in world)
if(istype(T,/turf/Title_Screen))
continue
T.daytime(T)
if(clock >= 60&&clock < 180)
time = 2
for(var/turf/T in world)
if(istype(T,/turf/Title_Screen))
continue
T.daytime(T)
if(clock >= 180&&clock < 240)
time = 3
for(var/turf/T in world)
if(istype(T,/turf/Title_Screen))
continue
T.daytime(T)
if(clock >= 240&&clock <= 300)
time = 4
for(var/turf/T in world)
if(istype(T,/turf/Title_Screen))
continue
T.daytime(T)
turf
var
light = 0
proc
daytime(turf/T)
if(world.time == 1)
if(T.light != 1)
T.light = 1
T.icon -= rgb(5,5,5)
if(world.time == 2)
if(T.light != 2)
T.light = 2
T.icon += rgb(5,5,5)
if(world.time == 3)
if(T.light != 3)
T.light = 3
T.icon += rgb(10,0,0)
T.icon -= rgb(0,10,10)
if(world.time == 4)
if(T.light != 4)
T.light = 4
T.icon -= rgb(30,10,10)
Problem description:
That's not everything... but what happens, is when I start the game, it spams me with this error :
runtime error: type mismatch
proc name: daytime (/turf/proc/daytime)
usr: null
src: the turf (16,1,1) (/turf)
call stack:
the turf (16,1,1) (/turf): daytime(the turf (16,1,1) (/turf))
: New()
I can't figure out what that runtime means so I can actually fix it, but I have run through alot of ways of doing this... none of which have made much difference.
daytime(var/turf/T)