render refactoring

This commit is contained in:
A-lex-Ra
2023-12-17 21:52:00 +06:00
parent 89d9447410
commit 88280f8002
6 changed files with 59 additions and 47 deletions
+1 -1
View File
@@ -125,7 +125,7 @@ HudRenderer::HudRenderer(Engine* engine,
TextBox* box = new TextBox(L"");
box->textSupplier([this, ax]() {
Hitbox* hitbox = this->level->player->hitbox;
return std::to_wstring((int)hitbox->position[ax]);
return std::to_wstring(hitbox->position[ax]);
});
box->textConsumer([this, ax](wstring text) {
try {