amethyst / amethyst/rustrogueliketutorial

Chapter 35: Entities not properly filtered out

Aperta
#207 0 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
Rust
Stelle
970
Fork
166
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Hi,

It looks like there is a bug in the retain closure when filtering out entities that would overlap with a room vault:

https://github.com/amethyst/rustrogueliketutorial/blob/33872fe582f226178436847e1f74eafcbf9c0d1a/chapter-35-vaults2/src/map_builders/prefab_builder/mod.rs#L385

I believe this should be:

```rust
let y = idx / width;
```

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.