Skip to content

Commit

Permalink
Fixed incorrect tile_num_in_direction usage in ecdogmet and ecpariah
Browse files Browse the repository at this point in the history
(Sync with UPU, the first arg should be tile number not object.)
  • Loading branch information
NovaRain committed Jul 26, 2024
1 parent b45c4a7 commit d0516ef
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions scripts_src/generic/zclscorp.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,6 @@ procedure destroy_p_proc begin
tail := create_object(PID_SCORPION_TAIL,0,0);

add_obj_to_inven(self_obj,tail);

//inc_evil_critter - comment out by killap (expansion)
end

procedure damage_p_proc begin
Expand Down
2 changes: 1 addition & 1 deletion scripts_src/rndenctr/ecdogmet.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ procedure critter_p_proc begin
if (game_time > doWalking) then begin
reg_anim_clear(self_obj);
reg_anim_begin();
self_walk_to_tile(tile_num_in_direction(dude_obj, Random(0, 5), Random(5, 10)));
self_walk_to_tile(tile_num_in_direction(dude_tile, Random(0, 5), Random(5, 10)));
reg_anim_end();
doWalking := game_time + game_ticks(Random(10, 40));
end
Expand Down
2 changes: 1 addition & 1 deletion scripts_src/rndenctr/ecpariah.ssl
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ procedure critter_p_proc begin
end else if (doWalking < game_time) then begin
reg_anim_clear(self_obj);
reg_anim_begin();
self_walk_to_tile(tile_num_in_direction(dude_obj, Random(0, 5), Random(5, 10)));
self_walk_to_tile(tile_num_in_direction(dude_tile, Random(0, 5), Random(5, 10)));
reg_anim_end();
doWalking := game_time + (ONE_GAME_SECOND * (Random(1, 30)));
end
Expand Down

0 comments on commit d0516ef

Please sign in to comment.