diff options
Diffstat (limited to 'src/GameInitDispose.cpp')
-rw-r--r-- | src/GameInitDispose.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
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(); |