Explorar o código

Removed SCRIPT_CMD_END
Terminate the script when SCRIPT_CMD_FAILURE is returned

Atemo %!s(int64=2) %!d(string=hai) anos
pai
achega
b5413b0997
Modificáronse 2 ficheiros con 77 adicións e 142 borrados
  1. 76 140
      src/map/script.cpp
  2. 1 2
      src/map/script.hpp

A diferenza do arquivo foi suprimida porque é demasiado grande
+ 76 - 140
src/map/script.cpp


+ 1 - 2
src/map/script.hpp

@@ -134,8 +134,7 @@
 
 enum script_cmd_result {
 	SCRIPT_CMD_SUCCESS = 0, ///when a buildin cmd was correctly done
-	SCRIPT_CMD_FAILURE = 1, ///when an errors appear in cmd, show_debug will follow
-	SCRIPT_CMD_END = 2, ///when an errors appear in cmd, show_debug will follow and the script state END
+	SCRIPT_CMD_FAILURE = 1, ///when an errors appear in cmd, show_debug will follow and the script terminate
 };
 
 #define SCRIPT_BLOCK_SIZE 512

Algúns arquivos non se mostraron porque demasiados arquivos cambiaron neste cambio