


Moderator: NADEO
Code: Select all
public function getNbOfLaps() {
switch ($this->storage->gameInfos->gameMode) {
case 0:
case 2:
case 5:
return $this->storage->gameInfos->roundsForcedLaps;
break;
case 3:
return $this->storage->gameInfos->lapsNbLaps;
break;
default:
return 1;
}
}
Users browsing this forum: No registered users and 0 guests