Boomerang quest updated.
This commit is contained in:
@@ -432,11 +432,10 @@ void run_game()
|
||||
{
|
||||
int old_x = x;
|
||||
|
||||
// Check if trying to move left/right while in tree (not in mountain)
|
||||
MountainRange@ current_mountain = get_mountain_at(x);
|
||||
// Check if trying to move left/right while in a tree.
|
||||
Tree@ current_tree = get_tree_at(x);
|
||||
int ground_elevation = get_mountain_elevation_at(x);
|
||||
if((left_active || right_active) && y > ground_elevation && !jumping && !falling && !rope_climbing && current_mountain is null && current_tree !is null) {
|
||||
if((left_active || right_active) && y > ground_elevation && !jumping && !falling && !rope_climbing && current_tree !is null) {
|
||||
// Fall out of tree
|
||||
climbing = false;
|
||||
start_falling();
|
||||
|
||||
Reference in New Issue
Block a user