1
0
mirror of https://gitlab.com/klmp200/LO41.git synced 2025-07-12 04:39:23 +00:00
This commit is contained in:
Aethor
2018-06-22 05:49:15 +02:00
parent 3334f77d22
commit 7f160f69f8
4 changed files with 44 additions and 35 deletions

View File

@ -20,7 +20,7 @@ void * runnable_ElevatorBreaker(void * void_this){
AGENT_OPTIONS
while (data->is_active_passengers_left(data)){
while (data->is_active_passengers_left(data)){
usleep(900000);
// One chance out of two to break something
if ((rand() % 101) > 50) {
@ -44,4 +44,4 @@ ElevatorBreaker *_init_ElevatorBreaker(){
)
return new_elevator_breaker;
}
}