void Npc_actor::set_schedule_time_type (int time, int type) { Tile_coord tile; int i;  for (i = 0; i < num_schedules; i++) if (schedules[i].get_time() == time) break;  if (i == num_schedules) { Schedule_change *scheds = new Schedule_change[num_schedules+1];  for (i = 0; i < num_schedules; i++) { tile = schedules[i].get_pos(); scheds[i].set(tile.tx, tile.ty, schedules[i].get_type(), schedules[i].get_time()); }  scheds[num_schedules].set(0, 0, (unsigned char) type, (unsigned char) time); set_schedules(scheds, num_schedules+1); } else { tile = schedules[i].get_pos(); schedules[i].set(tile.tx, tile.ty, (unsigned char) type, (unsigned char) time); } }
virtual void set_schedule_time_type(int time, int type) { }
void Npc_actor::set_schedule_time_type (int time, int type){	Tile_coord tile;	int i;	for (i = 0; i < num_schedules; i++) if (schedules[i].get_time() == time) break;		if (i == num_schedules)	// Didn't find it	{		Schedule_change *scheds = new Schedule_change[num_schedules+1];		for (i = 0; i < num_schedules; i++)		{			tile = schedules[i].get_pos();			scheds[i].set(tile.tx, tile.ty, schedules[i].get_type(), schedules[i].get_time());		}		scheds[num_schedules].set(0, 0, (unsigned char) type, (unsigned char) time);		set_schedules(scheds, num_schedules+1);	}	else	// Did find it	{		tile = schedules[i].get_pos();		schedules[i].set(tile.tx, tile.ty, (unsigned char) type, (unsigned char) time);	}}