aboutsummaryrefslogtreecommitdiff
path: root/client/src/world/mod.rs
diff options
context:
space:
mode:
authormetamuffin <yvchraiqi@protonmail.com>2022-06-09 18:38:42 +0200
committermetamuffin <yvchraiqi@protonmail.com>2022-06-09 18:38:42 +0200
commit96e2ffc5f1ce1ff6163fc7fa31d51a6c36a9c0d5 (patch)
tree49c5aebcedd151bfb7517e83d49ab83af75b494e /client/src/world/mod.rs
parentf74ac9e9ed20d3958e180e8fc7fd328fcdfbbbec (diff)
downloadtwclient-96e2ffc5f1ce1ff6163fc7fa31d51a6c36a9c0d5.tar
twclient-96e2ffc5f1ce1ff6163fc7fa31d51a6c36a9c0d5.tar.bz2
twclient-96e2ffc5f1ce1ff6163fc7fa31d51a6c36a9c0d5.tar.zst
sdkljhfgjkhsdfgkjlhsgdf
Diffstat (limited to 'client/src/world/mod.rs')
-rw-r--r--client/src/world/mod.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/client/src/world/mod.rs b/client/src/world/mod.rs
index 8a16016..7b25a53 100644
--- a/client/src/world/mod.rs
+++ b/client/src/world/mod.rs
@@ -2,9 +2,9 @@ use self::{map::Map, tee::Tees};
use crate::client::{helper::get_map_path, ClientMesgOut};
use std::fs::File;
+pub mod helper;
pub mod map;
pub mod tee;
-pub mod helper;
pub use gamenet::enums;
@@ -26,7 +26,7 @@ impl World {
match m {
ClientMesgOut::MapChange { name, crc } => {
let file = File::open(get_map_path(name.as_str(), *crc)).unwrap();
- self.map = Map::load(file).unwrap();
+ self.map = Map::load(file, name.as_str(), *crc).unwrap();
}
_ => (),
}