tidyup
This commit is contained in:
parent
12b6d1904e
commit
64f75f6f83
14
src/game.rs
14
src/game.rs
|
@ -349,8 +349,11 @@ impl Game {
|
||||||
|
|
||||||
// a room has tiles, so handle before room
|
// a room has tiles, so handle before room
|
||||||
for tile in &game.tiles {
|
for tile in &game.tiles {
|
||||||
let new_id = self.add_tile(tile.clone());
|
insert_if_different(
|
||||||
insert_if_different(tile_id_changes.borrow_mut(), tile.id.clone(), new_id);
|
tile_id_changes.borrow_mut(),
|
||||||
|
tile.id.clone(),
|
||||||
|
self.add_tile(tile.clone())
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
for variable in &game.variables {
|
for variable in &game.variables {
|
||||||
|
@ -386,8 +389,11 @@ impl Game {
|
||||||
|
|
||||||
// an ending lives in a room, so handle endings before rooms
|
// an ending lives in a room, so handle endings before rooms
|
||||||
for ending in &game.endings {
|
for ending in &game.endings {
|
||||||
let new_id = self.add_ending(ending.clone());
|
insert_if_different(
|
||||||
insert_if_different(ending_id_changes.borrow_mut(), ending.id.clone(), new_id);
|
ending_id_changes.borrow_mut(),
|
||||||
|
ending.id.clone(),
|
||||||
|
self.add_ending(ending.clone())
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// an item has a dialogue ID, so we need to handle these after dialogues
|
// an item has a dialogue ID, so we need to handle these after dialogues
|
||||||
|
|
Loading…
Reference in New Issue