diff --git a/.gitignore b/.gitignore index f926d8500e..7851bea8dc 100644 --- a/.gitignore +++ b/.gitignore @@ -31,6 +31,5 @@ # Veloren *.rar *.log -*.ron run.sh screenshots diff --git a/client/src/error.rs b/client/src/error.rs index 2d22c5781e..20f3319649 100644 --- a/client/src/error.rs +++ b/client/src/error.rs @@ -7,7 +7,7 @@ pub enum Error { ServerTimeout, ServerShutdown, TooManyPlayers, - InvalidAlias, + //TODO: InvalidAlias, Other(String), } diff --git a/client/src/lib.rs b/client/src/lib.rs index cd99b590cb..720d4022b2 100644 --- a/client/src/lib.rs +++ b/client/src/lib.rs @@ -366,7 +366,7 @@ impl Client { match msg { ServerMsg::Error(e) => match e { ServerError::TooManyPlayers => return Err(Error::ServerWentMad), - ServerError::InvalidAlias => return Err(Error::InvalidAlias), + //TODO: ServerError::InvalidAlias => return Err(Error::InvalidAlias), }, ServerMsg::Shutdown => return Err(Error::ServerShutdown), ServerMsg::InitialSync { .. } => return Err(Error::ServerWentMad), diff --git a/common/src/comp/player.rs b/common/src/comp/player.rs index 0761273cf7..e9b7a1d5c7 100644 --- a/common/src/comp/player.rs +++ b/common/src/comp/player.rs @@ -19,7 +19,6 @@ impl Player { pub fn is_valid(&self) -> bool { self.alias.chars().all(|c| c.is_alphanumeric() || c == '_') && self.alias.len() <= MAX_ALIAS_LEN - // TODO: Check view distance here based on server config too } } diff --git a/common/src/msg/server.rs b/common/src/msg/server.rs index f42258fb2e..e48423fca4 100644 --- a/common/src/msg/server.rs +++ b/common/src/msg/server.rs @@ -49,5 +49,5 @@ pub enum ServerMsg { #[derive(Debug, Clone, Serialize, Deserialize)] pub enum ServerError { TooManyPlayers, - InvalidAlias, + //TODO: InvalidAlias, }