summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Wernick <justin@worthe-it.co.za>2020-04-10 23:42:48 +0200
committerJustin Wernick <justin@worthe-it.co.za>2020-04-10 23:42:48 +0200
commitdbdaeb5134dbea5ef837866dfb2dc7a57ca6cbc3 (patch)
tree6ae2465c18ce900d7a4f70d77008d431c3ef8d10
parent1cd5247ccbd34bb76ab9d1fe80e67f6319fa000c (diff)
Tick boost
-rw-r--r--src/state.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/state.rs b/src/state.rs
index 6285e75..ac25f0d 100644
--- a/src/state.rs
+++ b/src/state.rs
@@ -62,6 +62,7 @@ impl GameState {
fn do_command(&mut self, player_index: usize, command: &Command) {
use Command::*;
+ self.players[player_index].tick_boost();
// TODO: Command validation assertions
match command {