Leverage 'Point' in Lighting and Player functions (#2048)

This commit is contained in:
Juliano Leal Goncalves 2021-05-24 12:28:52 -03:00 committed by GitHub
commit b3ec79af4f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 191 additions and 223 deletions

View file

@ -497,7 +497,7 @@ void multi_process_network_packets()
if (dx > 1 || dy > 1) {
plr[dwID].position.future = plr[dwID].position.tile;
}
MakePlrPath(dwID, pkt->targx, pkt->targy, true);
MakePlrPath(dwID, { pkt->targx, pkt->targy }, true);
} else {
plr[dwID].position.tile = { pkt->px, pkt->py };
plr[dwID].position.future = { pkt->px, pkt->py };