Веб-сайт самохостера Lotigara

summaryrefslogtreecommitdiff
path: root/source/game/StarDamageManager.cpp
diff options
context:
space:
mode:
authorKae <80987908+Novaenia@users.noreply.github.com>2024-02-20 09:49:42 +1100
committerGitHub <noreply@github.com>2024-02-20 09:49:42 +1100
commitaa987a217779e71f97ee4c9cce531aec1c861bf8 (patch)
treee51fcce110306d93bf93870f13a5ff7d6b575427 /source/game/StarDamageManager.cpp
parentd0099a6d790b66f21e4e266e569d64fb82fb0a81 (diff)
parent1c89042016c739815b2d70bcbef4673eef6b63e0 (diff)
Merge branch 'main' into small-fixes
Diffstat (limited to 'source/game/StarDamageManager.cpp')
-rw-r--r--source/game/StarDamageManager.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/source/game/StarDamageManager.cpp b/source/game/StarDamageManager.cpp
index 8c95a4f..dadaafb 100644
--- a/source/game/StarDamageManager.cpp
+++ b/source/game/StarDamageManager.cpp
@@ -117,7 +117,7 @@ void DamageManager::update(float dt) {
addHitRequest({causingEntity->entityId(), targetEntity->entityId(), damageRequest});
if (damageSource.damageType != NoDamage)
- addDamageRequest({causingEntity->entityId(), targetEntity->entityId(), move(damageRequest)});
+ addDamageRequest({causingEntity->entityId(), targetEntity->entityId(), std::move(damageRequest)});
}
}
}
@@ -144,7 +144,7 @@ void DamageManager::pushRemoteDamageRequest(RemoteDamageRequest const& remoteDam
if (auto targetEntity = m_world->entity(remoteDamageRequest.targetEntityId)) {
starAssert(targetEntity->isMaster());
for (auto& damageNotification : targetEntity->applyDamage(remoteDamageRequest.damageRequest))
- addDamageNotification({remoteDamageRequest.damageRequest.sourceEntityId, move(damageNotification)});
+ addDamageNotification({remoteDamageRequest.damageRequest.sourceEntityId, std::move(damageNotification)});
}
}
@@ -155,7 +155,7 @@ void DamageManager::pushRemoteDamageNotification(RemoteDamageNotification remote
sourceEntity->damagedOther(remoteDamageNotification.damageNotification);
}
- m_pendingNotifications.append(move(remoteDamageNotification.damageNotification));
+ m_pendingNotifications.append(std::move(remoteDamageNotification.damageNotification));
}
List<RemoteHitRequest> DamageManager::pullRemoteHitRequests() {
@@ -251,14 +251,14 @@ void DamageManager::addHitRequest(RemoteHitRequest const& remoteHitRequest) {
void DamageManager::addDamageRequest(RemoteDamageRequest remoteDamageRequest) {
if (remoteDamageRequest.destinationConnection() == m_connectionId)
- pushRemoteDamageRequest(move(remoteDamageRequest));
+ pushRemoteDamageRequest(std::move(remoteDamageRequest));
else
- m_pendingRemoteDamageRequests.append(move(remoteDamageRequest));
+ m_pendingRemoteDamageRequests.append(std::move(remoteDamageRequest));
}
void DamageManager::addDamageNotification(RemoteDamageNotification remoteDamageNotification) {
pushRemoteDamageNotification(remoteDamageNotification);
- m_pendingRemoteNotifications.append(move(remoteDamageNotification));
+ m_pendingRemoteNotifications.append(std::move(remoteDamageNotification));
}
}