Skip to content

Commit bebf0db

Browse files
authored
Merge pull request #73 from tylercaceres/patch-1
Update road_race.md
2 parents 0896caf + df1dbf1 commit bebf0db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scenarios/road_race.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ Now we need to actually handle the health. At **_the bottom_** of the `game_log
229229
1. Get a mutable reference to the health message
230230
* `let health_message = engine.texts.get_mut("health_message").unwrap();`
231231
1. Loop through all the collision events in a `for` loop using `engine.collision_events.drain(..)`
232-
1. Ignore events (by doing a `continue` in the `for` loop) that contain `"player1"` in the collision pair OR where the event state is the ending of a collision.
232+
1. Ignore events (by doing a `continue` in the `for` loop) that do not contain `"player1"` in the collision pair OR where the event state is the ending of a collision.
233233
* `if !event.pair.either_contains("player1") || event.state.is_end() { continue; }`
234234
1. If `game_state.health_amount` is greater than `0` (we don't want to try to subtract from an unsigned number without checking first)
235235
1. Subtract `1` from `game_state.health_amount`

0 commit comments

Comments
 (0)