From 48417e11854f832c40a42ec497cad3b275b57b2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20Gia=20Phong?= Date: Thu, 9 Dec 2021 23:07:32 +0700 Subject: Make XYZ C-compatible --- src/GameInitDispose.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/GameInitDispose.cpp') diff --git a/src/GameInitDispose.cpp b/src/GameInitDispose.cpp index b95768e..6d99c4c 100644 --- a/src/GameInitDispose.cpp +++ b/src/GameInitDispose.cpp @@ -238,9 +238,8 @@ void initGame(Game* game) if (!game->initialized) { auto& point0 = game->boundingpoints[0]; - point0 = 0; + point0.x = point0.y = 0; point0.z = boundingscale; - point0.y = 0; for (int i = 1; i < 8; ++i) game->boundingpoints[i] = DoRotation(point0, @@ -353,9 +352,6 @@ void initGame(Game* game) game->numpeople++; game->spawndelay = 0.1f; - game->vipgoal = vip.playercoords - + DoRotation({10000000.0f, 0.0f, 0.0f}, 0, randUint(360), 0); - // Init city block rotations for (int i = 0; i < num_blocks; ++i) for (int j = 0; j < num_blocks; ++j) { @@ -973,7 +969,7 @@ void initGame(Game* game) person.health = 100; person.skeleton.free = 0; person.ammo = 0; - person.velocity = 0; + person.velocity = {}; // Load skeleton structure person.skeleton.reload(); -- cgit v1.2.3