Explorar el Código

- Some small bug fixes discovered while merging.

git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@7961 54d463be-8e91-2dee-dedb-b68131a5f0ec
skotlex hace 19 años
padre
commit
2239037185
Se han modificado 5 ficheros con 10 adiciones y 9 borrados
  1. 1 1
      conf-tmpl/subnet_athena.conf
  2. 1 1
      src/map/battle.c
  3. 2 2
      src/map/mob.c
  4. 5 4
      src/map/status.c
  5. 1 1
      src/map/unit.c

+ 1 - 1
conf-tmpl/subnet_athena.conf

@@ -3,4 +3,4 @@
 // subnet: net-submask:char_ip:map_ip
 // you can add more than one subnet 
 
-//subnet: 255.0.0.0:127.0.0.1:127.0.0.1
+subnet: 255.0.0.0:127.0.0.1:127.0.0.1

+ 1 - 1
src/map/battle.c

@@ -3424,7 +3424,7 @@ static const struct battle_data_short {
 	{ "warp_point_debug",                  &battle_config.warp_point_debug			},
 	{ "enemy_critical_rate",               &battle_config.enemy_critical_rate		},
 	{ "homun_critical_rate",               &battle_config.homun_critical_rate		},
-	{ "enemy_baseatk",                     &battle_config.enable_baseatk				},
+	{ "enable_baseatk",                    &battle_config.enable_baseatk				},
 	{ "enable_perfect_flee",               &battle_config.enable_perfect_flee		},
 	{ "casting_rate",                      &battle_config.cast_rate				},
 	{ "delay_rate",                        &battle_config.delay_rate				},

+ 2 - 2
src/map/mob.c

@@ -3894,12 +3894,12 @@ static int mob_read_sqldb(void)
 				status->ele_lv = i/20;
 				if (status->def_ele >= ELE_MAX)
 				{
-					ShowWarning("Mob with ID: %d has invalid element type %d (max element is %d)\n", status->def_ele, ELE_MAX-1);
+					ShowWarning("Mob with ID: %d has invalid element type %d (max element is %d)\n", class_, status->def_ele, ELE_MAX-1);
 					status->def_ele = ELE_NEUTRAL;
 				}
 				if (status->ele_lv < 1 || status->ele_lv > 4)
 				{
-					ShowWarning("Mob with ID: %d has invalid elemnt level %d (max is 4)\n", status->ele_lv);
+					ShowWarning("Mob with ID: %d has invalid elemnt level %d (max is 4)\n", class_, status->ele_lv);
 					status->ele_lv = 1;
 				}
 				status->mode = TO_INT(25);

+ 5 - 4
src/map/status.c

@@ -1439,7 +1439,7 @@ int status_calc_pc(struct map_session_data* sd,int first)
 	struct status_data b_status, *status;
 	struct weapon_atk b_lhw;
 	struct skill b_skill[MAX_SKILL];
-		
+
 	int b_weight,b_max_weight;
 	int i,index;
 	int skill,refinedef=0;
@@ -1538,7 +1538,8 @@ int status_calc_pc(struct map_session_data* sd,int first)
 		if (sd->class_&JOBL_BABY) {
 			if (battle_config.character_size&2)
 				status->size++;
-		} if(battle_config.character_size&1)
+		} else
+		if(battle_config.character_size&1)
 			status->size++;
 	}
 	status->aspd_rate = 1000;
@@ -1677,7 +1678,7 @@ int status_calc_pc(struct map_session_data* sd,int first)
 			{	// Forged weapon
 				wd->star += (sd->status.inventory[index].card[1]>>8);
 				if(wd->star >= 15) wd->star = 40; // 3 Star Crumbs now give +40 dmg
-				if(pc_famerank( MakeDWord(sd->status.inventory[index].card[2],sd->status.inventory[index].card[3]) ,MAPID_BLACKSMITH))
+				if(pc_famerank(MakeDWord(sd->status.inventory[index].card[2],sd->status.inventory[index].card[3]) ,MAPID_BLACKSMITH))
 					wd->star += 10;
 				
 				if (!wa->ele) //Do not overwrite element from previous bonuses.
@@ -1694,7 +1695,7 @@ int status_calc_pc(struct map_session_data* sd,int first)
 		}
 	}
 
-	if(sd->equip_index[EQI_AMMO] >= 0){ // –î
+	if(sd->equip_index[EQI_AMMO] >= 0){
 		index = sd->equip_index[EQI_AMMO];
 		if(sd->inventory_data[index]){		// Arrows
 			sd->state.lr_flag = 2;

+ 1 - 1
src/map/unit.c

@@ -806,7 +806,7 @@ int unit_skilluse_id2(struct block_list *src, int target_id, int skill_num, int
 				sd->skilllv_old = ud->skilllv;
 				break;
 			}
-		case BD_ENCORE:	
+		case BD_ENCORE:
 			//Prevent using the dance skill if you no longer have the skill in your tree. 
 			if(!sd->skillid_dance || pc_checkskill(sd,sd->skillid_dance)<=0){
 				clif_skill_fail(sd,skill_num,0,0);