mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Fixed miscount in Overitem::prim_count causing the tutorial button to fly around when multiple overitem texts are drawn
This commit is contained in:
parent
5445094174
commit
1144eefa46
@ -71,7 +71,11 @@ impl<'a> Ingameable for Overitem<'a> {
|
||||
// TODO maybe this could be done automatically?
|
||||
// - 2 Text for name
|
||||
// - 0 or 2 Rectangle and Text for button
|
||||
2 + match self.controls.get_binding(GameInput::Interact) {
|
||||
2 + match self
|
||||
.controls
|
||||
.get_binding(GameInput::Interact)
|
||||
.filter(|_| self.active)
|
||||
{
|
||||
Some(_) => 2,
|
||||
None => 0,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user