Skip to content

Commit

Permalink
Merge pull request #832 from vedran77/master
Browse files Browse the repository at this point in the history
Change gravity type to float
  • Loading branch information
Hual authored Jan 8, 2024
2 parents 338d04d + 5c8b5e8 commit fc5b4c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Server/Source/player_impl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ struct Player final : public IPlayer, public PoolIDProvider, public NoCopy
bool toSpawn_;
TimePoint lastGameTimeUpdate_;
PlayerSpectateData spectateData_;
int gravity_;
float gravity_;
bool ghostMode_;
int defaultObjectsRemoved_;
bool allowWeapons_;
Expand Down Expand Up @@ -194,7 +194,7 @@ struct Player final : public IPlayer, public PoolIDProvider, public NoCopy
toSpawn_ = false;
lastGameTimeUpdate_ = TimePoint();
spectateData_ = { false, INVALID_PLAYER_ID, PlayerSpectateData::ESpectateType::None };
gravity_ = 0;
gravity_ = 0.0f;
ghostMode_ = false;
defaultObjectsRemoved_ = 0;
primarySyncUpdateType_ = PrimarySyncUpdateType::None;
Expand Down Expand Up @@ -249,7 +249,7 @@ struct Player final : public IPlayer, public PoolIDProvider, public NoCopy
, toSpawn_(false)
, lastGameTimeUpdate_()
, spectateData_({ false, INVALID_PLAYER_ID, PlayerSpectateData::ESpectateType::None })
, gravity_(0)
, gravity_(0.0f)
, ghostMode_(false)
, defaultObjectsRemoved_(0)
, allowWeapons_(true)
Expand Down

0 comments on commit fc5b4c8

Please sign in to comment.