mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
remove unused resolution
This commit is contained in:
parent
e7fe866036
commit
95c4368df6
|
@ -130,9 +130,6 @@ impl EntityMap {
|
||||||
if surface == MapElement::Wall {
|
if surface == MapElement::Wall {
|
||||||
let wall_resolution = resolve_wall_move(&entity.entity);
|
let wall_resolution = resolve_wall_move(&entity.entity);
|
||||||
match wall_resolution {
|
match wall_resolution {
|
||||||
WallResolution::Die => {
|
|
||||||
hero_has_died |= self.kill_entity(entity_key, &mut animations);
|
|
||||||
}
|
|
||||||
WallResolution::StayPut => {
|
WallResolution::StayPut => {
|
||||||
animations.push(AnimationInstruction::FakeOutMove(
|
animations.push(AnimationInstruction::FakeOutMove(
|
||||||
entity_key,
|
entity_key,
|
||||||
|
@ -316,7 +313,6 @@ enum OverlapResolution {
|
||||||
}
|
}
|
||||||
|
|
||||||
enum WallResolution {
|
enum WallResolution {
|
||||||
Die,
|
|
||||||
StayPut,
|
StayPut,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -340,7 +336,7 @@ fn resolve_overlap(me: &Entity, other: &Entity) -> OverlapResolution {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn resolve_wall_move(entity: &EntityType) -> WallResolution {
|
fn resolve_wall_move(_entity: &EntityType) -> WallResolution {
|
||||||
WallResolution::StayPut
|
WallResolution::StayPut
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue