mirror of
https://github.com/doukutsu-rs/doukutsu-rs
synced 2025-01-06 02:56:41 +00:00
Fixed falling block spawn trigger
This commit is contained in:
parent
7db42e86e6
commit
9b3e2837b7
|
@ -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 => {
|
||||
|
|
Loading…
Reference in a new issue