mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-09 16:12:17 +00:00
[MIRROR] fix some doors not operating in parallel (#11771)
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
9d3d8c8b20
commit
83d2abea8f
@@ -97,10 +97,10 @@
|
||||
if(specialfunctions & OPEN)
|
||||
if(D.density)
|
||||
D.open()
|
||||
return
|
||||
else
|
||||
D.close()
|
||||
return
|
||||
continue
|
||||
D.close()
|
||||
continue
|
||||
|
||||
if(desiredstate == 1)
|
||||
if(specialfunctions & IDSCAN)
|
||||
D.set_idscan(0)
|
||||
@@ -110,15 +110,16 @@
|
||||
D.electrify(-1)
|
||||
if(specialfunctions & SAFE)
|
||||
D.set_safeties(0)
|
||||
else
|
||||
if(specialfunctions & IDSCAN)
|
||||
D.set_idscan(1)
|
||||
if(specialfunctions & BOLTS)
|
||||
D.unlock()
|
||||
if(specialfunctions & SHOCK)
|
||||
D.electrify(0)
|
||||
if(specialfunctions & SAFE)
|
||||
D.set_safeties(1)
|
||||
continue
|
||||
|
||||
if(specialfunctions & IDSCAN)
|
||||
D.set_idscan(1)
|
||||
if(specialfunctions & BOLTS)
|
||||
D.unlock()
|
||||
if(specialfunctions & SHOCK)
|
||||
D.electrify(0)
|
||||
if(specialfunctions & SAFE)
|
||||
D.set_safeties(1)
|
||||
|
||||
#undef OPEN
|
||||
#undef IDSCAN
|
||||
|
||||
Reference in New Issue
Block a user