1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2024-12-04 19:03:28 +00:00

fix snack block offset

This commit is contained in:
Alula 2020-12-07 00:41:57 +01:00
parent bafad44868
commit 4d1e23a032
No known key found for this signature in database
GPG key ID: 3E00485503A1D8BA

View file

@ -605,8 +605,8 @@ impl PhysicalEntity for Bullet {
let mut npc = NPCMap::create_npc(4, &state.npc_table);
npc.cond.set_alive(true);
npc.direction = Direction::Left;
npc.x = x * 16 * 0x200;
npc.y = y * 16 * 0x200;
npc.x = (x * 16 + 8) * 0x200;sta
npc.y = (y * 16 + 8) * 0x200;
for _ in 0..4 {
npc.vel_x = state.game_rng.range(-0x200..0x200) as isize;