Fix missing blocks
parent
9fc090e795
commit
d09ffb861e
|
@ -1183,12 +1183,13 @@ void fix_object(object *op) {
|
||||||
wc-=(tmp->stats.wc+tmp->magic);
|
wc-=(tmp->stats.wc+tmp->magic);
|
||||||
|
|
||||||
if (tmp->slaying!=NULL) {
|
if (tmp->slaying!=NULL) {
|
||||||
if (op->slaying != NULL)
|
if (op->slaying != NULL) {
|
||||||
sstring joined_str = join_strings(op->slaying, tmp->slaying, ",");
|
sstring joined_str = join_strings(op->slaying, tmp->slaying, ",");
|
||||||
free_string(op->slaying);
|
free_string(op->slaying);
|
||||||
op->slaying = joined_str;
|
op->slaying = joined_str;
|
||||||
else
|
} else {
|
||||||
add_refcount(op->slaying = tmp->slaying);
|
add_refcount(op->slaying = tmp->slaying);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (tmp->stats.ac)
|
if (tmp->stats.ac)
|
||||||
|
@ -1237,12 +1238,13 @@ void fix_object(object *op) {
|
||||||
if (weapon_speed<0)
|
if (weapon_speed<0)
|
||||||
weapon_speed=0;
|
weapon_speed=0;
|
||||||
if (tmp->slaying!=NULL) {
|
if (tmp->slaying!=NULL) {
|
||||||
if (op->slaying != NULL)
|
if (op->slaying != NULL) {
|
||||||
sstring joined_str = join_strings(op->slaying, tmp->slaying, ",");
|
sstring joined_str = join_strings(op->slaying, tmp->slaying, ",");
|
||||||
free_string(op->slaying);
|
free_string(op->slaying);
|
||||||
op->slaying = joined_str;
|
op->slaying = joined_str;
|
||||||
else
|
} else {
|
||||||
add_refcount(op->slaying = tmp->slaying);
|
add_refcount(op->slaying = tmp->slaying);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/* If there is desire that two handed weapons should do
|
/* If there is desire that two handed weapons should do
|
||||||
* extra strength damage, this is where the code should
|
* extra strength damage, this is where the code should
|
||||||
|
@ -1282,12 +1284,13 @@ void fix_object(object *op) {
|
||||||
if (ARMOUR_SPEED(tmp) && ARMOUR_SPEED(tmp)/10.0<max)
|
if (ARMOUR_SPEED(tmp) && ARMOUR_SPEED(tmp)/10.0<max)
|
||||||
max=ARMOUR_SPEED(tmp)/10.0;
|
max=ARMOUR_SPEED(tmp)/10.0;
|
||||||
if (tmp->slaying!=NULL) {
|
if (tmp->slaying!=NULL) {
|
||||||
if (op->slaying != NULL)
|
if (op->slaying != NULL) {
|
||||||
sstring joined_str = join_strings(op->slaying, tmp->slaying, ",");
|
sstring joined_str = join_strings(op->slaying, tmp->slaying, ",");
|
||||||
free_string(op->slaying);
|
free_string(op->slaying);
|
||||||
op->slaying = joined_str;
|
op->slaying = joined_str;
|
||||||
else
|
} else {
|
||||||
add_refcount(op->slaying = tmp->slaying);
|
add_refcount(op->slaying = tmp->slaying);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
} /* switch tmp->type */
|
} /* switch tmp->type */
|
||||||
|
|
Loading…
Reference in New Issue