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:
parent
40a5a08754
commit
a4533a4810
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue