Add switch seats + fix 0 divisor

Also fix CFG error
This commit is contained in:
icomrade
2014-03-16 16:32:30 -04:00
parent eaa0ba1b04
commit 3c28809247
5 changed files with 130 additions and 8 deletions

View File

@@ -3,6 +3,7 @@ disableSerialization;
if ((!r_player_handler1) and (r_handlerCount == 0)) then {
//Unconscious Meter
_totalTimeout = r_player_timeout;
if (_totalTimeout == 0) then { _totalTimeout = 1; }; //Fix for zero divisor
4 cutRsc ["playerStatusWaiting", "PLAIN",0];
_display = uiNamespace getVariable 'DAYZ_GUI_waiting';
_ctrl1 = _display displayCtrl 1400;