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

fixed light controls in EZT modules, added missing vbo code

This commit is contained in:
tmj-fstate
2017-03-20 22:09:27 +01:00
parent 4052bdea5c
commit 38acc083d1
4 changed files with 67 additions and 32 deletions

View File

@@ -73,16 +73,18 @@ light_array::update() {
else {
light.intensity = 0.0f;
}
/*
// crude catch for unmanned modules which share the light state with the controlled unit.
// why don't they get their own light bits btw ._.
// TODO, TBD: have separate light bits for each vehicle, so this override isn't necessary
// NOTE: should be no longer needed, test and delete if there's no ill effects
if( ( light.owner->Controller == AIdriver )
&& ( light.owner->Mechanik == nullptr ) ) {
light.intensity = 0.0f;
light.count = 0;
}
*/
}
else {
// with battery off the lights are off