48 { 0, 0, 0, 0, 0, 0, 0,-1,-1,-1,-1,-1,-1,-1,-1, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1 },
49 { 0, 0, 0, 0, 0, 0,-1,-1,-1,-1,-1,-1,-1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 0 },
50 { 0, 0, 0, 0, 0,-1,-1,-1,-1,-1,-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0 },
51 { 0, 0, 0, 0, 0,-1,-1,-1,-1,-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 0 },
52 { 0, 0, 0, 0, 0, 0,-1,-1,-1,-1,-1,-1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 0 }
74 for (i = 0; i <= tod.
hour; i++) {
138 case 1:
if (b <= 2 || b == 8)
return 1;
break;
139 case 2:
if (b > 0 && b < 4)
return 1;
break;
140 case 3:
if (b > 1 && b < 5)
return 1;
break;
141 case 4:
if (b > 2 && b < 6)
return 1;
break;
142 case 5:
if (b > 3 && b < 7)
return 1;
break;
143 case 6:
if (b > 4 && b < 8)
return 1;
break;
144 case 7:
if (b > 5)
return 1;
break;
145 case 8:
if (b > 6 || b == 1)
return 1;
break;
void set_darkness_map(mapstruct *m)
static const int season_timechange[5][HOURS_PER_DAY]
int change_map_light(mapstruct *m, int change)
void write_todclock(void)
static void dawn_to_dusk(const timeofday_t *tod)
void tick_the_clock(void)
void get_tod(timeofday_t *tod)
int similar_direction(int a, int b)
EXTERN mapstruct * first_map