From 62d4f12bc90607f7c1df3169586e9624d1a77087 Mon Sep 17 00:00:00 2001 From: Max Bradbury Date: Tue, 23 Jun 2020 17:00:46 +0100 Subject: [PATCH] don't need to worry about SPR A, since to_base36 will never produce capital letters --- src/game.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/game.rs b/src/game.rs index f6a0c3d..811484c 100644 --- a/src/game.rs +++ b/src/game.rs @@ -360,9 +360,8 @@ impl Game { /// if current tile IDs are [0, 1, 2] the result will be `3` #[inline] pub fn new_tile_id(&self) -> String { - // don't allow `0` - this is a reserved ID - // todo new_sprite_id will need to avoid A too let mut ids = self.tile_ids(); + // don't allow 0 - this is a reserved ID for an implicit background tile ids.push("0".to_string()); new_unique_id(ids) }