From 17ddd451db16a6cad1d4c399bf08bddab990e09b Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Tue, 7 May 2019 20:04:07 +0200 Subject: [PATCH] Fix tests, fix formatting --- src/openrct2/world/Park.cpp | 2 +- test/tests/Pathfinding.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/openrct2/world/Park.cpp b/src/openrct2/world/Park.cpp index cff319175c..39c17944df 100644 --- a/src/openrct2/world/Park.cpp +++ b/src/openrct2/world/Park.cpp @@ -949,7 +949,7 @@ Peep* Park::GenerateGuest() if (spawn != nullptr) { auto direction = direction_reverse(spawn->direction); - peep = Peep::Generate({spawn->x, spawn->y, spawn->z}); + peep = Peep::Generate({ spawn->x, spawn->y, spawn->z }); if (peep != nullptr) { peep->sprite_direction = direction << 3; diff --git a/test/tests/Pathfinding.cpp b/test/tests/Pathfinding.cpp index bdbc2d591c..1c0b6c2f3b 100644 --- a/test/tests/Pathfinding.cpp +++ b/test/tests/Pathfinding.cpp @@ -69,7 +69,7 @@ protected: // Our start position is in tile coordinates, but we need to give the peep spawn // position in actual world coords (32 units per tile X/Y, 8 per Z level). // Add 16 so the peep spawns in the center of the tile. - Peep* peep = Peep::Generate(pos->x * 32 + 16, pos->y * 32 + 16, pos->z * 8); + Peep* peep = Peep::Generate({ pos->x * 32 + 16, pos->y * 32 + 16, pos->z * 8 }); // Peeps that are outside of the park use specialized pathfinding which we don't want to // use here