1
0
Fork 0
mirror of https://github.com/doukutsu-rs/doukutsu-rs synced 2025-11-30 16:18:00 +00:00

fix stuttering of number popup on players with different hitboxes

This commit is contained in:
Alula 2021-06-21 13:35:05 +02:00
parent c1bd334844
commit 215ec9ed6c
No known key found for this signature in database
GPG key ID: 3E00485503A1D8BA

View file

@ -1700,12 +1700,12 @@ impl Scene for GameScene {
self.frame.prev_y = self.frame.y;
self.player1.prev_x = self.player1.x;
self.player1.prev_y = self.player1.y;
self.player1.popup.prev_x = self.player1.prev_x;
self.player1.popup.prev_y = self.player1.prev_y;
self.player1.popup.prev_x = self.player1.popup.x;
self.player1.popup.prev_y = self.player1.popup.y;
self.player2.prev_x = self.player2.x;
self.player2.prev_y = self.player2.y;
self.player2.popup.prev_x = self.player2.prev_x;
self.player2.popup.prev_y = self.player2.prev_y;
self.player2.popup.prev_x = self.player2.popup.x;
self.player2.popup.prev_y = self.player2.popup.y;
for npc in self.npc_list.iter_alive() {
npc.prev_x = npc.x;