Skip to content

Commit

Permalink
missionName reconstructor orderfix
Browse files Browse the repository at this point in the history
  • Loading branch information
formtapez committed Jul 24, 2021
1 parent b944035 commit ceacc74
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
15 changes: 7 additions & 8 deletions addons/main/GELDZEIT/fn_serverInit.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,13 @@

#define LOGGING_VERSION 9

// Missionsnamen-Rekonstruktor (Symlink opt_latest -> opt_v123)
GVAR(missionName) = missionName;
if (GVAR(missionName) isEqualTo "opt_latest") then
{
GVAR(missionName) = "opt_v" + getMissionConfigValue "onLoadMission";
};

private _time = systemTime;
["Logging", "Start", [LOGGING_VERSION, OPT_GELDZEIT_Fraktionauswahl, format ["%1-%2-%3 %4:%5:%6", _time select 0, _time select 1, _time select 2, _time select 3, _time select 4, _time select 5]]] call OPT_LOGGING_fnc_writelog;
["Mission", "Load", [0, 0, 0, GVAR(missionName)]] call OPT_LOGGING_fnc_writelog;
Expand All @@ -35,14 +42,6 @@ publicVariable QGVAR(GAMESTAGE);

GVAR(playerList) = [];


// Missionsnamen-Rekonstruktor (Symlink opt_latest -> opt_v123)
GVAR(missionName) = missionName;
if (GVAR(missionName) isEqualTo "opt_latest") then
{
GVAR(missionName) = "opt_v" + getMissionConfigValue "onLoadMission";
};

["missionStarted",
{
GVAR(startTime) = serverTime;
Expand Down
2 changes: 1 addition & 1 deletion addons/main/script_version.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define MAJOR 1
#define MINOR 9
#define PATCHLVL 2
#define BUILD 57
#define BUILD 58


#ifdef VERSION
Expand Down

0 comments on commit ceacc74

Please sign in to comment.