Skip to content

Commit fc5b4c8

Browse files
authored
Merge pull request #832 from vedran77/master
Change gravity type to float
2 parents 338d04d + 5c8b5e8 commit fc5b4c8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Server/Source/player_impl.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ struct Player final : public IPlayer, public PoolIDProvider, public NoCopy
111111
bool toSpawn_;
112112
TimePoint lastGameTimeUpdate_;
113113
PlayerSpectateData spectateData_;
114-
int gravity_;
114+
float gravity_;
115115
bool ghostMode_;
116116
int defaultObjectsRemoved_;
117117
bool allowWeapons_;
@@ -194,7 +194,7 @@ struct Player final : public IPlayer, public PoolIDProvider, public NoCopy
194194
toSpawn_ = false;
195195
lastGameTimeUpdate_ = TimePoint();
196196
spectateData_ = { false, INVALID_PLAYER_ID, PlayerSpectateData::ESpectateType::None };
197-
gravity_ = 0;
197+
gravity_ = 0.0f;
198198
ghostMode_ = false;
199199
defaultObjectsRemoved_ = 0;
200200
primarySyncUpdateType_ = PrimarySyncUpdateType::None;
@@ -249,7 +249,7 @@ struct Player final : public IPlayer, public PoolIDProvider, public NoCopy
249249
, toSpawn_(false)
250250
, lastGameTimeUpdate_()
251251
, spectateData_({ false, INVALID_PLAYER_ID, PlayerSpectateData::ESpectateType::None })
252-
, gravity_(0)
252+
, gravity_(0.0f)
253253
, ghostMode_(false)
254254
, defaultObjectsRemoved_(0)
255255
, allowWeapons_(true)

0 commit comments

Comments
 (0)