浏览代码

Follow up r16227 & bugreport:5932 fixed issues with my new-IDE tabbing, & default configuration setting.

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

+ 1 - 1
src/map/battle.c

@@ -5329,7 +5329,7 @@ static const struct _battle_data {
 	{ "skill_amotion_leniency",             &battle_config.skill_amotion_leniency,          90,     0,      100				},
 	{ "mvp_tomb_enabled",					&battle_config.mvp_tomb_enabled,				1,      0,      1				},
 	{ "feature.atcommand_suggestions",		&battle_config.atcommand_suggestions_enabled,	0,      0,      1				},
-    { "min_npc_vending_distance",           &battle_config.min_npc_vending_distance,	0,      0,      100				},
+	{ "min_npc_vending_distance",           &battle_config.min_npc_vending_distance,		3,		0,		100				},
 };
 
 

+ 7 - 7
src/map/clif.c

@@ -11735,13 +11735,13 @@ void clif_parse_OpenVending(int fd, struct map_session_data* sd)
 		return;
 	}
     
-    if( vending_checknearnpc(&sd->bl) ) {
-        char output[50];
-        sprintf(output,"You're too close to a NPC, you must be at least %d cells away from any NPC.",battle_config.min_npc_vending_distance);
-        clif_displaymessage(sd->fd, output);
-        clif_skill_fail(sd, MC_VENDING, USESKILL_FAIL_LEVEL, 0);
-        return;
-    }
+	if( vending_checknearnpc(&sd->bl) ) {
+		char output[50];
+		sprintf(output,"You're too close to a NPC, you must be at least %d cells away from any NPC.",battle_config.min_npc_vending_distance);
+		clif_displaymessage(sd->fd, output);
+		clif_skill_fail(sd, MC_VENDING, USESKILL_FAIL_LEVEL, 0);
+		return;
+	}
 
 	if( message[0] == '\0' ) // invalid input
 		return;