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
1 changed files with 5 additions and 3 deletions

View File

@ -2115,9 +2115,11 @@ impl NPC {
) -> GameResult {
match self.action_num {
0 => {
if self.x < (stage.map.width as i32 - 6) * state.tile_size.as_int() * 0x200 {
self.action_num = 1;
self.action_counter = 0;
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_counter = 0;
}
}
}
1 => {