mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 09:24:00 +02:00
fuck you, const!
This commit is contained in:
parent
8d0aaed41a
commit
0dff037f56
2 changed files with 4 additions and 4 deletions
|
@ -246,14 +246,14 @@ bool ObjectAction::lifetimeIsOver() {
|
|||
return false;
|
||||
}
|
||||
|
||||
quint64 ObjectAction::localTimeToServerTime(quint64 timeValue) {
|
||||
quint64 ObjectAction::localTimeToServerTime(quint64 timeValue) const {
|
||||
if (timeValue == 0) {
|
||||
return 0;
|
||||
}
|
||||
return timeValue + getEntityServerClockSkew();
|
||||
}
|
||||
|
||||
quint64 ObjectAction::serverTimeToLocalTime(quint64 timeValue) {
|
||||
quint64 ObjectAction::serverTimeToLocalTime(quint64 timeValue) const {
|
||||
if (timeValue == 0) {
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -68,8 +68,8 @@ protected:
|
|||
quint64 _expires; // in seconds since epoch
|
||||
QString _tag;
|
||||
|
||||
quint64 localTimeToServerTime(quint64 timeValue);
|
||||
quint64 serverTimeToLocalTime(quint64 timeValue);
|
||||
quint64 localTimeToServerTime(quint64 timeValue) const;
|
||||
quint64 serverTimeToLocalTime(quint64 timeValue) const;
|
||||
|
||||
private:
|
||||
int getEntityServerClockSkew() const;
|
||||
|
|
Loading…
Reference in a new issue