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

Cofnięcie zmian wyświetlania mechanika; to trzeba dogłębniej przerobić.

Aktualizacja świateł z programatora przy załączaniu baterii tylko gdy ten istnieje.
This commit is contained in:
antonisauren
2016-06-23 20:30:54 +02:00
parent 90ab2a5774
commit ef3e8b5929
5 changed files with 9 additions and 7 deletions

View File

@@ -459,7 +459,10 @@ void TTrain::OnKeyDown(int cKey)
if (mvOccupied->BatterySwitch(true)) // bateria potrzebna np. do zapalenia œwiate³
{
dsbSwitch->Play(0, 0, 0);
SetLights();
if (mvOccupied->LightsPosNo > 0)
{
SetLights();
}
if (TestFlag(mvOccupied->SecuritySystem.SystemType,
2)) // Ra: znowu w kabinie jest coœ, co byæ nie powinno!
{