Browse Source

Change enum nomenclature

`DumpAction_UpdateCheck` is a much better name than
`DumpAction_FileCheck` as it's possible for updates in other ways (e.g.,
we can compare `.server-version` to the value returned by
`GetNetworkPatchVersion()`).
nosoop 7 years ago
parent
commit
9a8b0bf32a
1 changed files with 4 additions and 4 deletions
  1. 4 4
      scripting/csrd_data_dump.sp

+ 4 - 4
scripting/csrd_data_dump.sp

@@ -13,7 +13,7 @@
 #include <stocksoup/files>
 #include <stocksoup/version>
 
-#define PLUGIN_VERSION "1.1.2"
+#define PLUGIN_VERSION "1.1.3"
 public Plugin myinfo = {
 	name = "[CSRD] SRCDS Automatic Data Dumper",
 	author = "nosoop",
@@ -36,7 +36,7 @@ public Plugin myinfo = {
 
 enum DumpAction {
 	DumpAction_None = 0,		// no checks are performed
-	DumpAction_FileCheck,		// check if dump indicator is present
+	DumpAction_UpdateCheck,		// check if dump indicator is present (TODO change method?)
 	DumpAction_PendingDump		// pending dump on current map
 };
 
@@ -47,7 +47,7 @@ public APLRes AskPluginLoad2(Handle hPluginSelf, bool bLateLoaded, char[] error,
 	if (bLateLoaded) {
 		g_DumpAction = DumpAction_None;
 	} else {
-		g_DumpAction = DumpAction_FileCheck;
+		g_DumpAction = DumpAction_UpdateCheck;
 		
 		/**
 		 * cache flags early in case a plugin overrides flags
@@ -84,7 +84,7 @@ public void OnMapStart() {
 		/** 
 		 * Stage 1:  Check if the marker file exists; change map if necessary.
 		 */
-		case DumpAction_FileCheck: {
+		case DumpAction_UpdateCheck: {
 			if (FileExists(path, false)) {
 				g_DumpAction = DumpAction_PendingDump;
 				ForceChangeLevel(LOW_ENTITY_MAP, "Starting server data dump");