TimeKeep()
while(world)
sleep(60)
minutes += 1
if(minutes == 60)
minutes = 0
hours += 1
TimeKeep2()
while(world)
sleep(2)
if(hours == 13)
hours = 1
if(hours == 4&&minutes == 30&&time == "AM")
for(var/turf/Grass/G)
G.overlays += /obj/items/SortaNight
G.overlays -= /obj/items/Night
for(var/turf/Sidewalk/S)
S.overlays += /obj/items/SortaNight
S.overlays -= /obj/items/Night
timeofday = "Dawn"
world <<"The sun begins to rise. It is now dawn."
if(hours == 11&&minutes == 10&&time == "AM")
for(var/turf/Grass/G)
G.overlays -= /obj/items/Night
G.overlays -= /obj/items/SortaNight
for(var/turf/Sidewalk/S)
S.overlays -= /obj/items/Night
S.overlays -= /obj/items/SortaNight
timeofday = "Afternoon"
world <<"The sun shines in the sky. It is now the afternoon."
if(hours == 8&&minutes == 0&&time == "PM")
for(var/turf/Grass/G)
G.overlays += /obj/items/SortaNight
G.overlays -= /obj/items/Night
for(var/turf/Sidewalk/S)
S.overlays += /obj/items/SortaNight
S.overlays -= /obj/items/Night
timeofday = "Dusk"
world <<"The sun slowly descends. It is now dusk."
if(hours == 11&&minutes == 0&&time == "PM")
for(var/turf/Grass/G)
G.overlays += /obj/items/Night
G.overlays -= /obj/items/SortaNight
for(var/turf/Sidewalk/S)
S.overlays += /obj/items/Night
S.overlays -= /obj/items/SortaNight
timeofday = "Night"
world <<"The sun sinks below, and the world is plunged into darkness."
if(hours == 12&&minutes == 0)
if(time == "PM")
time = "AM"
else
time = "PM"
Problem description:
I set the time to just before dusk, and wait a minute. Nothing happens. It zooms right on by 8:00 PM and does nothing. I try setting it to 11:59 AM. Nothing. It doesn't change to PM. Nor the other way around.