mirror of
https://gitlab.com/klmp200/LO41.git
synced 2025-07-18 15:49:28 +00:00
refactored printing
This commit is contained in:
@ -23,10 +23,10 @@ void * runnable_Resident(void * void_this){
|
||||
passenger->resident = this;
|
||||
passenger->type = RESIDENT;
|
||||
|
||||
printf("Je suis le resident %s et je suis a l'etage %d en direction de l'etage %d\n",
|
||||
printf("Résident %s : Je suis a l'etage %d, je vais en direction de l'etage %d\n",
|
||||
this->name, this->apartment_floor, this->destination);
|
||||
if(this->position == this->destination)
|
||||
printf("Résident %s : je reste chez moi\n", this->name);
|
||||
printf("Résident %s : Je reste chez moi\n", this->name);
|
||||
else
|
||||
data->main_building->go_to_floor(data->main_building, this->position, this->destination, passenger);
|
||||
return NULL;
|
||||
|
Reference in New Issue
Block a user