Small fix

This commit is contained in:
fed 2023-08-13 04:52:24 +02:00
parent 4101540add
commit 208525e682
2 changed files with 11 additions and 4 deletions

View File

@ -53,6 +53,14 @@ namespace camera
return;
}
if (cg_paused->modified)
{
ps->origin[0] = game::refdef->org[0];
ps->origin[1] = game::refdef->org[1];
ps->origin[2] = game::refdef->org[2];
cg_paused->modified = false;
}
float viewangles[3]{};
viewangles[0] = angle_normalize((cmd.angles[0] * 0.000021457672f) + ps->delta_angles[0]);
viewangles[1] = angle_normalize((cmd.angles[1] * 0.000021457672f) + ps->delta_angles[1]);

View File

@ -281,11 +281,10 @@ namespace fps
}
const auto font = fps_font;
const auto pos_string = utils::string::va("%f %f %f",
game::g_entities[0].origin[0],
game::g_entities[0].origin[1],
game::g_entities[0].origin[2]);
game::refdef->org[0],
game::refdef->org[1],
game::refdef->org[2]);
const auto x = screen_max[0] - 15.f - game::R_TextWidth(pos_string, 0x7FFFFFFF, font);