amethyst / amethyst/rustrogueliketutorial

Prefab section in chapter 34 gets rstripped causing an out of bounds error

Offen
#217 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
Vorherrschende Sprache
Rust
Sterne
970
Forks
166
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

Really enjoying the tutorial so far. I landed on chapter 34 and got stuck on the prefab sections.

My code would panic on L229 i prefab_builder/mod.rs due to an out of bounds error. After some digging around, I noticed that something was rstripping my white spaces at the ends of the RIGHT_FORT prefab in prefab_sections.rs. I don't know if this is my IDE or something else that's causing this. For reference, I'm using RustRover Build #RR-241.15989.180.

After replacing the spaces in RIGHT_FORT with zeroes and updating `char_to_map`, everything ran just fine and I managed to play the game as expected. I wonder if anyone else has run into this issue?

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Bewertung

Dieses Issue wurde noch nicht bewertet.

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.