Fixed victory remoteExec

This commit is contained in:
Wyqer 2019-07-23 18:04:38 +02:00
parent 1fe8cb106a
commit 91cae4dd51
No known key found for this signature in database
GPG Key ID: D7E2F8BD7F1E48FA
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
sleep 5;
if ([] call KP_liberation_victoryCheck) then {
if ([] call KP_liberation_victoryCheck && GRLIB_endgame != 1) then {
GRLIB_endgame = 1;
publicVariable "GRLIB_endgame";
{_x allowDamage false; (vehicle _x) allowDamage false;} forEach allPlayers;
@ -49,7 +49,7 @@ if ([] call KP_liberation_victoryCheck) then {
publicstats pushback stats_vehicles_recycled;
publicstats pushback _rabbits;
[publicstats] remoteExec ["remote_call_endgame"];
publicstats remoteExec ["remote_call_endgame"];
private _playtime_days = floor (stats_playtime / 86400);
private _playtime_hours = floor ((stats_playtime % 86400) / 3600);