Skip to content

Commit 4dd5a4a

Browse files
Fixed a bug with platformer
Before this fix if you played a platformer level and then played a level made before platformer was added that level would be in platformer. So for example if you played id 25 and then played plummet then plummet would be platformer.
1 parent e3ca27f commit 4dd5a4a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/game/loading.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ pub fn load_level(
4242
"F-ALPHA"
4343
];
4444

45+
*current_mode = "1".to_string();
4546
obj_grid.clear();
4647
for pair in metadata_pairs {
4748
let key: &str = pair.split(":").collect::<Vec<&str>>()[0];

0 commit comments

Comments
 (0)