Skip to content

Commit

Permalink
Remove WipeSave Params and functioality to prevent abuse
Browse files Browse the repository at this point in the history
  • Loading branch information
Comfy committed Feb 11, 2017
1 parent c097b5c commit c161346
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 23 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,3 @@
if ( !(isNil "GRLIB_param_wipe_savegame_1") && !(isNil "GRLIB_param_wipe_savegame_2") ) then {
if ( GRLIB_param_wipe_savegame_1 == 1 && GRLIB_param_wipe_savegame_2 == 1 ) then {
profileNamespace setVariable [ GRLIB_save_key,nil ];
saveProfileNamespace;
};
};

date_year = date select 0;
date_month = date select 1;
date_day = date select 2;
Expand Down
4 changes: 0 additions & 4 deletions src/greuh_liberation.Default/scripts/shared/fetch_params.sqf
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ if ( isMultiplayer ) then {
GRLIB_adaptive_opfor = ["AdaptToPlayercount",1] call bis_fnc_getParamValue;
GRLIB_civilian_activity = ["civilians",1] call bis_fnc_getParamValue;
GRLIB_build_first_fob = ["FirstFob",0] call bis_fnc_getParamValue;
GRLIB_param_wipe_savegame_1 = ["WipeSave1",0] call bis_fnc_getParamValue;
GRLIB_param_wipe_savegame_2 = ["WipeSave2",0] call bis_fnc_getParamValue;
GRLIB_passive_income = ["PassiveIncome",0] call bis_fnc_getParamValue;
GRLIB_permissions_param = ["Permissions",1] call bis_fnc_getParamValue;
GRLIB_cleanup_vehicles = ["CleanupVehicles",2] call bis_fnc_getParamValue;
Expand All @@ -25,8 +23,6 @@ if ( isMultiplayer ) then {
GRLIB_unitcap = 1;
GRLIB_civilian_activity = 1;
GRLIB_build_first_fob = 0;
GRLIB_param_wipe_savegame_1 = 0;
GRLIB_param_wipe_savegame_2 = 0;
GRLIB_passive_income = 0;
GRLIB_permissions_param = 1;
GRLIB_cleanup_vehicles = 2;
Expand Down
12 changes: 0 additions & 12 deletions src/greuh_liberation.Default/ui/mission_params.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,4 @@ class Params {
texts[] = { $STR_YES, $STR_NO };
default = 0;
};
class WipeSave1 {
title = $STR_WIPE_TITLE;
values[] = {0,1};
texts[] = {$STR_WIPE_NO,$STR_WIPE_YES};
default = 0;
};
class WipeSave2 {
title = $STR_WIPE_TITLE_2;
values[] = {0,1};
texts[] = {$STR_WIPE_NO,$STR_WIPE_YES};
default = 0;
};
};

0 comments on commit c161346

Please sign in to comment.