aboutsummaryrefslogtreecommitdiff
path: root/src/GameInitDispose.cpp
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2021-12-09 23:07:32 +0700
committerNguyễn Gia Phong <mcsinyx@disroot.org>2021-12-09 23:37:37 +0700
commit48417e11854f832c40a42ec497cad3b275b57b2e (patch)
tree73162cd7294a49ba39f0f06afd16da74dee0f6da /src/GameInitDispose.cpp
parente4888c19818ef61264ea4e1b0da9ebdc302f1483 (diff)
downloadblackshades-48417e11854f832c40a42ec497cad3b275b57b2e.tar.gz
Make XYZ C-compatible
Diffstat (limited to 'src/GameInitDispose.cpp')
-rw-r--r--src/GameInitDispose.cpp8
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();