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

Sanding works only when direction is set

This commit is contained in:
Królik Uszasty
2020-10-10 11:33:00 +02:00
parent e8974613ac
commit 99d80da71d

View File

@@ -2714,7 +2714,7 @@ bool TMoverParameters::Sandbox( bool const State, range_t const Notify )
if( SandDose != State ) { if( SandDose != State ) {
if( SandDose == false ) { if( SandDose == false ) {
// switch on // switch on
if( Sand > 0 ) { if(( Sand > 0 ) && ( DirActive != 0 )) {
SandDose = true; SandDose = true;
result = true; result = true;
} }