Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/creature_states_spdig.c
Original file line number Diff line number Diff line change
Expand Up @@ -718,7 +718,7 @@ long check_out_unreinforced_drop_place(struct Thing *thing)
if ( check_place_to_reinforce(thing, slb_x, slb_y) > 0 )
{
stl_num = get_subtile_number_at_slab_center(slb_x, slb_y);
if ( check_out_uncrowded_reinforce_position(thing, stl_num, &dest_stl_x, &dest_stl_y) )
if ( check_out_uncrowded_reinforce_position(thing, stl_num, &dest_stl_x, &dest_stl_y) > 0)
{
if ( setup_person_move_to_position(thing, dest_stl_x, dest_stl_y, NavRtF_Default) )
{
Expand Down Expand Up @@ -962,7 +962,7 @@ short imp_arrives_at_reinforce(struct Thing *spdigtng)

if ( imp_already_reinforcing_at_excluding(spdigtng,spdigtng->mappos.x.stl.num,spdigtng->mappos.y.stl.num))
{
if ( !check_out_uncrowded_reinforce_position(spdigtng, cctrl->digger.working_stl, &stl_x, &stl_y)
if ( check_out_uncrowded_reinforce_position(spdigtng, cctrl->digger.working_stl, &stl_x, &stl_y) <= 0
|| !setup_person_move_to_position(spdigtng, stl_x, stl_y, 0) )
{
internal_set_thing_state(spdigtng, CrSt_ImpLastDidJob);
Expand Down
2 changes: 1 addition & 1 deletion src/player_compchecks.c
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ long computer_check_for_pretty(struct Computer2 *comp, struct ComputerCheck * ch
if (stack_len <= check->primary_parameter * dungeon->total_area / 100) {
return CTaskRet_Unk4;
}
long n = find_in_imp_stack_starting_at(DigTsk_ImproveDungeon, PLAYER_RANDOM(compdngn->owner, stack_len), dungeon);
long n = find_in_dungeon_imp_stack_starting_at(DigTsk_ImproveDungeon, PLAYER_RANDOM(compdngn->owner, stack_len), dungeon);
if (n < 0) {
return CTaskRet_Unk4;
}
Expand Down
Loading
Loading