aboutsummaryrefslogtreecommitdiff
path: root/server/src/commands.rs
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/commands.rs')
-rw-r--r--server/src/commands.rs9
1 files changed, 3 insertions, 6 deletions
diff --git a/server/src/commands.rs b/server/src/commands.rs
index 1ffe4cd1..ad5812bd 100644
--- a/server/src/commands.rs
+++ b/server/src/commands.rs
@@ -18,7 +18,7 @@
use crate::{
entity::{bot::BotDriver, tutorial::Tutorial},
message::TrError,
- server::Server,
+ server::{AnnounceState, Server},
tre, trm,
};
use anyhow::Result;
@@ -173,11 +173,8 @@ impl Server {
.generate_with_book(&spec)
.map_err(|e| TrError::Plain(e.to_string()))?;
self.load(data, timer.map(Duration::from_secs));
- if !skip_announce {
- self.announce_timer = 3.5;
- self.packet_out
- .push_back(PacketC::Menu(Menu::AnnounceStart));
- self.update_paused();
+ if skip_announce {
+ self.announce_state = AnnounceState::Done
}
}
Command::End => {