I can't seem to change how much time giveExtraTime() gives.
In gameinfos.inc.php I set fast_additional_time to 5 seconds.
Then I click "Reload game informations" in my game control panel. I see in the log report it took into account this change from 30 to 5 seconds.
I start a game in fast mode.
At the end of a player turn I call "$this->giveExtraTime($player_id);" from 1 to 20 times depending on the complexity of my player turn (his actions can be undone so I have to do it this way). Unfortunately it gives my player some extra 30 seconds for each call, ending up in additional minutes !
What did I do wrong?
In gameinfos.inc.php I set fast_additional_time to 5 seconds.
Then I click "Reload game informations" in my game control panel. I see in the log report it took into account this change from 30 to 5 seconds.
I start a game in fast mode.
At the end of a player turn I call "$this->giveExtraTime($player_id);" from 1 to 20 times depending on the complexity of my player turn (his actions can be undone so I have to do it this way). Unfortunately it gives my player some extra 30 seconds for each call, ending up in additional minutes !
What did I do wrong?