Fix warnings
This commit is contained in:
parent
eb6ea6caf3
commit
f45f15b3bf
@ -11,10 +11,7 @@ use crate::{
|
|||||||
bgm::{Music, MusicManager},
|
bgm::{Music, MusicManager},
|
||||||
chat::{Chat, ChatMessage},
|
chat::{Chat, ChatMessage},
|
||||||
game::{
|
game::{
|
||||||
commands::{
|
commands::{register_commands, unregister_commands},
|
||||||
KillCommand, ListPlayersCommand, RespawnBallCommand, register_commands,
|
|
||||||
unregister_commands,
|
|
||||||
},
|
|
||||||
opts::{GameOption, GameOptionValue, GameOptions},
|
opts::{GameOption, GameOptionValue, GameOptions},
|
||||||
},
|
},
|
||||||
map::Map,
|
map::Map,
|
||||||
@ -36,7 +33,7 @@ use crate::{
|
|||||||
},
|
},
|
||||||
replay::{ReplayEvent, ReplayPlayback, ReplayRecorder},
|
replay::{ReplayEvent, ReplayPlayback, ReplayRecorder},
|
||||||
team_resource::TeamResource,
|
team_resource::TeamResource,
|
||||||
ui::cli::{CliColor, Command, CommandLinePanel},
|
ui::cli::CommandLinePanel,
|
||||||
};
|
};
|
||||||
|
|
||||||
pub mod commands;
|
pub mod commands;
|
||||||
|
|||||||
@ -1,12 +1,9 @@
|
|||||||
use std::{
|
use std::time::{Duration, SystemTime, UNIX_EPOCH};
|
||||||
net::SocketAddr,
|
|
||||||
time::{Duration, SystemTime, UNIX_EPOCH},
|
|
||||||
};
|
|
||||||
|
|
||||||
use godot::{
|
use godot::{
|
||||||
classes::{
|
classes::{
|
||||||
AudioServer, DisplayServer, FileAccess, InputEvent, InputEventKey, InputEventMouseButton,
|
AudioServer, DisplayServer, FileAccess, InputEvent, InputEventKey, InputEventMouseButton,
|
||||||
InputMap, display_server::WindowMode, file_access::ModeFlags, window::Mode,
|
InputMap, display_server::WindowMode, file_access::ModeFlags,
|
||||||
},
|
},
|
||||||
global::{Key, MouseButton},
|
global::{Key, MouseButton},
|
||||||
prelude::*,
|
prelude::*,
|
||||||
|
|||||||
@ -17,7 +17,7 @@ impl NetworkManager {
|
|||||||
|
|
||||||
if let Some(peer) = &mut self.peer {
|
if let Some(peer) = &mut self.peer {
|
||||||
match peer {
|
match peer {
|
||||||
PeerKind::Client(peer, addr) => match message {
|
PeerKind::Client(peer, _) => match message {
|
||||||
teanet::PeerMessage::NewConnection(connection) => {
|
teanet::PeerMessage::NewConnection(connection) => {
|
||||||
cli.bind_mut().publish_message(
|
cli.bind_mut().publish_message(
|
||||||
format!("Connected to: {}", connection.address),
|
format!("Connected to: {}", connection.address),
|
||||||
|
|||||||
@ -362,9 +362,7 @@ impl INode for ReplayPlayback {
|
|||||||
}
|
}
|
||||||
self.telegrenades.remove(player_id);
|
self.telegrenades.remove(player_id);
|
||||||
|
|
||||||
if let Some(map) = &mut self.current_map
|
if let Some(map) = &mut self.current_map {
|
||||||
&& let Some(player) = self.replay.players.get(player_id)
|
|
||||||
{
|
|
||||||
if let Some(telegrenade) = map.bind_mut().spawn_replay_telegrenade(
|
if let Some(telegrenade) = map.bind_mut().spawn_replay_telegrenade(
|
||||||
(*location).into(),
|
(*location).into(),
|
||||||
(*velocity).into(),
|
(*velocity).into(),
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
use godot::{
|
use godot::{
|
||||||
classes::{Control, IControl, InputEvent, Label, Slider},
|
classes::{Control, IControl, Label, Slider},
|
||||||
prelude::*,
|
prelude::*,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user