Skip to content

Commit

Permalink
Remove World::make_object_standing()
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmytro Lysai authored and pingw33n committed Jul 7, 2020
1 parent 5f055fe commit 3d9a7ef
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/game/sequence/stand.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ impl Sequence for Stand {
if self.done {
Result::Done
} else {
ctx.world.make_object_standing(self.obj);
ctx.world.objects_mut().make_standing(self.obj);
self.done = true;
Result::Running(Running::NotLagging)
}
Expand Down
2 changes: 1 addition & 1 deletion src/game/state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ impl GameState {
dude_obj.set_pos(Some(map.entrance));
let dude_obj = world.objects_mut().insert(dude_obj);

world.make_object_standing(dude_obj);
world.objects_mut().make_standing(dude_obj);

{
assert!(!map.savegame);
Expand Down
4 changes: 0 additions & 4 deletions src/game/world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,6 @@ impl World {
self.sqr_tiles[elevation as usize].is_some()
}

pub fn make_object_standing(&mut self, h: object::Handle) {
self.objects.make_standing(h);
}

pub fn object_bounds(&self, obj: object::Handle, include_outline: bool) -> Rect {
self.objects.bounds(obj, &self.camera.hex(), include_outline)
}
Expand Down

0 comments on commit 3d9a7ef

Please sign in to comment.