1
0
mirror of https://gitlab.com/klmp200/LO41.git synced 2025-07-18 15:49:28 +00:00

refactored printing

This commit is contained in:
Aethor
2018-06-22 01:50:27 +02:00
parent 3e73835b81
commit 3bcb7faf66
4 changed files with 14 additions and 16 deletions

View File

@ -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("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;