1
0
mirror of https://gitlab.com/klmp200/LO41.git synced 2025-07-12 04:39:23 +00:00

moving elevators, fixed a crash, more documentation

This commit is contained in:
Aethor
2018-06-18 23:03:32 +02:00
parent c4048afe3b
commit 7fcb2a8b5a
2 changed files with 36 additions and 17 deletions

View File

@ -109,8 +109,11 @@ void *runnable_Elevator(void * void_this){
AGENT_OPTIONS
printf("Je suis l'ascenseur %s\n", this->name);
for (;;)
for (;;){
data->main_building->signal_elevator_at_floor(data->main_building, this->get_floor(this));
this->set_floor(this, this->get_next_floor(this));
}
return NULL;
}