And finally fix some of the API names to make more sense in their current location.

This commit is contained in:
Zed A. Shaw 2025-08-20 23:49:30 -04:00
parent a20d701096
commit 7ffa6025ce
11 changed files with 74 additions and 99 deletions

View file

@ -32,7 +32,7 @@ namespace gui {
}
DinkyECS::Entity MainUI::camera_aim() {
auto& level = GameDB::current();
auto& level = GameDB::current_level();
// what happens if there's two things at that spot
if(level.collision->something_there($rayview->aiming_at)) {
return level.collision->get($rayview->aiming_at);
@ -98,7 +98,7 @@ namespace gui {
}
void MainUI::update_level() {
auto& level = GameDB::current();
auto& level = GameDB::current_level();
auto& player_position = GameDB::player_position();
auto player = player_position.location;