1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2024-11-16 10:52:44 +00:00

Fixed falling block spawn trigger

This commit is contained in:
dawnDus 2022-02-25 22:32:05 -05:00
parent 7db42e86e6
commit 9b3e2837b7
No known key found for this signature in database
GPG key ID: 972AABDE81848F21

View file

@ -2115,11 +2115,13 @@ impl NPC {
) -> GameResult { ) -> GameResult {
match self.action_num { match self.action_num {
0 => { 0 => {
if self.x < (stage.map.width as i32 - 6) * state.tile_size.as_int() * 0x200 { for player in players {
if player.x < (stage.map.width as i32 - 6) * state.tile_size.as_int() * 0x200 {
self.action_num = 1; self.action_num = 1;
self.action_counter = 0; self.action_counter = 0;
} }
} }
}
1 => { 1 => {
self.action_counter += 1; self.action_counter += 1;
let player = &players[0]; let player = &players[0];