浏览代码

Follow up fa40773 :
* Revert change some code

Napster 9 年之前
父节点
当前提交
e56f329d5d
共有 2 个文件被更改,包括 2 次插入3 次删除
  1. 1 1
      src/common/mmo.h
  2. 1 2
      src/map/pc.c

+ 1 - 1
src/common/mmo.h

@@ -6,7 +6,7 @@
 
 #include "cbasetypes.h"
 #include "../common/db.h"
-#include "../config/core.h"
+//#include "../config/core.h"
 #include <time.h>
 
 // server->client protocol version

+ 1 - 2
src/map/pc.c

@@ -8434,7 +8434,6 @@ void pc_setoption(struct map_session_data *sd,int type)
 bool pc_setcart(struct map_session_data *sd,int type) {
 #ifndef NEW_CARTS
 	int cart[6] = {0x0000,OPTION_CART1,OPTION_CART2,OPTION_CART3,OPTION_CART4,OPTION_CART5};
-#else
 	int option;
 #endif
 	nullpo_retr(false,sd);
@@ -8445,7 +8444,7 @@ bool pc_setcart(struct map_session_data *sd,int type) {
 	if( pc_checkskill(sd,MC_PUSHCART) <= 0 && type != 0 )
 		return false;// Push cart is required
 
-#ifndef NEW_CARTS
+#ifdef NEW_CARTS
 
 	switch( type ) {
 		case 0: