Shorten the name of various scalar types

This commit is contained in:
crumblingstatue 2023-04-08 22:12:05 +02:00
parent 390a4d45d2
commit e7c30d231b
4 changed files with 28 additions and 28 deletions

View file

@ -18,7 +18,7 @@ use crate::{
input::Input,
math::{center_offset, TILE_SIZE},
res::Res,
world::{TilePosScalar, CHUNK_EXTENT},
world::{TPosSc, CHUNK_EXTENT},
};
/// Application level state (includes game and ui state, etc.)
@ -217,8 +217,8 @@ impl App {
);
imm!(
"@ chunk {}, {}",
mouse_tpos.x / CHUNK_EXTENT as TilePosScalar,
mouse_tpos.y / CHUNK_EXTENT as TilePosScalar
mouse_tpos.x / CHUNK_EXTENT as TPosSc,
mouse_tpos.y / CHUNK_EXTENT as TPosSc
);
if self.debug.freecam && self.input.pressed(Key::P) {
self.game.world.player.col_en.en.pos.x = wpos.x as i32;