16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-21 11:19:19 +02:00

Merge branch 'gfx-work' into sim

This commit is contained in:
milek7
2019-08-08 15:56:06 +02:00
29 changed files with 1178 additions and 84 deletions

View File

@@ -1025,6 +1025,9 @@ basic_region::on_click( TAnimModel const *Instance ) {
// legacy method, polls event launchers around camera
void
basic_region::update_events() {
if( false == simulation::is_ready ) { return; }
// render events and sounds from sectors near enough to the viewer
auto const range = EU07_SECTIONSIZE; // arbitrary range
auto const &sectionlist = sections( Global.pCamera.Pos, range );