Skip to content

Commit

Permalink
Correct writing spawns even if editor disabled.
Browse files Browse the repository at this point in the history
  • Loading branch information
splewis committed Apr 6, 2016
1 parent 8c1e9a2 commit e8105b3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripting/retakes.sp
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public void OnMapEnd() {
return;
}

if (g_hEditorEnabled.IntValue != 0 && g_DirtySpawns) {
if (g_DirtySpawns) {
WriteSpawns();
}
}
Expand All @@ -272,8 +272,6 @@ public int EnabledChanged(Handle cvar, const char[] oldValue, const char[] newVa
bool wasEnabled = !StrEqual(oldValue, "0");
g_Enabled = !StrEqual(newValue, "0");

LogMessage("EnabledChanged");

if (wasEnabled && !g_Enabled) {
if (g_SavedCvars != INVALID_HANDLE)
RestoreCvars(g_SavedCvars, true);
Expand Down

0 comments on commit e8105b3

Please sign in to comment.