mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
add on_hud_render event
This commit is contained in:
parent
247acb3687
commit
4aa76e35b7
4 changed files with 17 additions and 0 deletions
|
|
@ -139,6 +139,8 @@ void CameraControl::switchCamera() {
|
|||
if (static_cast<size_t>(index) != playerCameras.size()) {
|
||||
index = (index + 1) % playerCameras.size();
|
||||
player->currentCamera = playerCameras.at(index);
|
||||
} else {
|
||||
player->currentCamera = camera;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue