remove numeric check and just do sprites in the order that they were imported
This commit is contained in:
12
src/game.rs
12
src/game.rs
@@ -1,4 +1,4 @@
|
||||
use crate::{Dialogue, Ending, Font, Item, Palette, Room, Sprite, TextDirection, Tile, ToBase36, Variable, transform_line_endings, segments_from_string, is_string_numeric, to_base36, from_base36};
|
||||
use crate::{Dialogue, Ending, Font, Item, Palette, Room, Sprite, TextDirection, Tile, ToBase36, Variable, transform_line_endings, segments_from_string, to_base36, from_base36};
|
||||
use std::error::Error;
|
||||
use loe::TransformMode;
|
||||
use std::str::FromStr;
|
||||
@@ -267,15 +267,7 @@ impl ToString for Game {
|
||||
}
|
||||
|
||||
for sprite in &self.sprites {
|
||||
if is_string_numeric(sprite.id.clone()) {
|
||||
segments.push(sprite.to_string());
|
||||
}
|
||||
}
|
||||
|
||||
for sprite in &self.sprites {
|
||||
if !is_string_numeric(sprite.id.clone()) {
|
||||
segments.push(sprite.to_string());
|
||||
}
|
||||
segments.push(sprite.to_string());
|
||||
}
|
||||
|
||||
for item in &self.items {
|
||||
|
||||
Reference in New Issue
Block a user