16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-18 03:09:18 +02:00

cab change logic tweak, event launcher execution fix

This commit is contained in:
tmj-fstate
2019-08-06 14:08:22 +02:00
parent fbd2ff85fa
commit d317dc2296
2 changed files with 33 additions and 8 deletions

View File

@@ -950,6 +950,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 );