summaryrefslogtreecommitdiff
path: root/src/systems
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-02-23 01:18:17 +0100
committertroido <troido@protonmail.com>2020-02-23 01:18:17 +0100
commit7262cfc53b4af978d6db1b91e3143200f906587f (patch)
treef6aa651a3040a1389a9c4e82796f1c04b3c5198c /src/systems
parent522aad7889cd62e96af7c420789507ccbf5b7aaa (diff)
rooms have named locations to be used by portals
Diffstat (limited to 'src/systems')
-rw-r--r--src/systems/migrate.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/systems/migrate.rs b/src/systems/migrate.rs
index aecffd0..80690f3 100644
--- a/src/systems/migrate.rs
+++ b/src/systems/migrate.rs
@@ -27,7 +27,7 @@ impl <'a> System<'a> for Migrate {
for (player, position, _moved) in (&players, &positions, &moved).join() {
for ent in ground.cells.get(&position.pos).unwrap() {
if let Some(exit) = exits.get(*ent) {
- emigration.emigrants.push((player.id.clone(), exit.destination.clone()));
+ emigration.emigrants.push((player.id.clone(), exit.destination.clone(), exit.dest_pos.clone()));
break;
}
}