1
0
Fork 0
mirror of https://github.com/jugeeya/UltimateTrainingModpack.git synced 2025-03-14 18:36:11 +00:00

Inclusive range for alphabet

This commit is contained in:
jugeeya 2021-08-16 17:05:52 -07:00 committed by GitHub
parent 40a5a08754
commit a4533a4810
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -112,8 +112,8 @@ fn show_segment(module_accessor: &mut app::BattleObjectModuleAccessor, z: f32, y
fn alphabet_index(to_print: char) -> i32 {
match to_print {
'A'..'Z' => to_print as i32 - 'A' as i32,
'0'..'9' => to_print as i32 - '0' as i32 + 'Z' as i32 - 'A' as i32 + 1,
'A'..='Z' => to_print as i32 - 'A' as i32,
'0'..='9' => to_print as i32 - '0' as i32 + 'Z' as i32 - 'A' as i32 + 1,
' ' => 36,
'-' => 37,
'+' => 38,
@ -210,4 +210,4 @@ pub fn print_string(module_accessor: &mut app::BattleObjectModuleAccessor, to_wr
line_num += 1;
}
}
}
}