Skip to content

Commit

Permalink
Make rocket research reduce travel time, not increase it
Browse files Browse the repository at this point in the history
  • Loading branch information
HalfVoxel committed Jan 20, 2018
1 parent 2f48305 commit 7082816
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion battlecode-engine/src/world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1974,7 +1974,7 @@ impl GameWorld {
self.my_unit_mut(rocket_id)?.launch_rocket();

let landing_round = self.round + self.orbit.duration(self.round)
+ self.my_unit(rocket_id)?.rocket_travel_time_decrease().unwrap();
- self.my_unit(rocket_id)?.rocket_travel_time_decrease().unwrap();
self.my_team_mut().rocket_landings.add_landing(
landing_round, RocketLanding::new(rocket_id, destination)
);
Expand Down

0 comments on commit 7082816

Please sign in to comment.