… | |
… | |
547 | * done on the same tick, but that will happen very infrequently |
547 | * done on the same tick, but that will happen very infrequently |
548 | * |
548 | * |
549 | * I also think this code makes it easier to see how often we really are |
549 | * I also think this code makes it easier to see how often we really are |
550 | * doing the various things. |
550 | * doing the various things. |
551 | */ |
551 | */ |
552 | |
|
|
553 | extern unsigned long todtick; |
|
|
554 | |
|
|
555 | void |
552 | void |
556 | do_specials (void) |
553 | do_specials (void) |
557 | { |
554 | { |
558 | if (!(pticks % PTICKS_PER_CLOCK)) |
555 | if (!(pticks % TICKS_PER_HOUR)) |
559 | tick_the_clock (); |
556 | adjust_daylight (); |
560 | |
557 | |
561 | if (!(pticks % 7)) |
558 | if (!(pticks % 7)) |
562 | shstr::gc (); |
559 | shstr::gc (); |
563 | |
560 | |
564 | if (!(pticks % 2503)) |
561 | if (!(pticks % 2503)) |