浏览代码

- Insignificant cleanups.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@11866 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex 17 年之前
父节点
当前提交
e5554e3fae
共有 2 个文件被更改,包括 5 次插入2 次删除
  1. 4 1
      src/map/clif.c
  2. 1 1
      src/map/map.c

+ 4 - 1
src/map/clif.c

@@ -754,8 +754,9 @@ static int clif_set_unit_idle(struct block_list* bl, unsigned char* buffer, bool
 	struct view_data* vd = status_get_viewdata(bl);
 	unsigned char *buf = WBUFP(buffer,0);
 	bool type = !pcdb_checkid(vd->class_);
+#if PACKETVER >= 7
 	unsigned short offset = 0;
-
+#endif
 	BL_CAST(BL_PC, bl, sd);
 
 	if(type)
@@ -863,7 +864,9 @@ static int clif_set_unit_walking(struct block_list* bl, struct unit_data* ud, un
 	struct status_change* sc = status_get_sc(bl);
 	struct view_data* vd = status_get_viewdata(bl);
 	unsigned char* buf = WBUFP(buffer,0);
+#if PACKETVER >= 7
 	unsigned short offset = 0;
+#endif
 
 	BL_CAST(BL_PC, bl, sd);
 

+ 1 - 1
src/map/map.c

@@ -3072,11 +3072,11 @@ void do_final(void)
 	do_final_guild();
 	do_final_party();
 	do_final_pc();
-	do_final_status();
 	do_final_pet();
 	do_final_mob();
 	do_final_msg();
 	do_final_skill();
+	do_final_status();
 	do_final_unit();
 	if(use_irc)
 		do_final_irc();