Browse Source

Clean-up script.cpp
* Introduced SCRIPT_CMD_END which display an error and put the script state to end

Atemo 2 năm trước cách đây
mục cha
commit
9c21d3af04
2 tập tin đã thay đổi với 171 bổ sung199 xóa
  1. 170 199
      src/map/script.cpp
  2. 1 0
      src/map/script.hpp

Những thai đổi đã bị hủy bỏ vì nó quá lớn
+ 170 - 199
src/map/script.cpp


+ 1 - 0
src/map/script.hpp

@@ -135,6 +135,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
 };
 
 #define SCRIPT_BLOCK_SIZE 512

Một số tệp đã không được hiển thị bởi vì quá nhiều tập tin thay đổi trong này khác