mirror of
https://bitbucket.org/theswgsource/src-1.2.git
synced 2026-10-07 22:13:07 -04:00
newer standards prefer nullptr over NULL - this is most of them but there are others too
This commit is contained in:
@@ -157,7 +157,7 @@ void GameConnection::onReceive(const Archive::ByteStream & message)
|
||||
ca.getStartYaw(),
|
||||
ca.getTemplateName(),
|
||||
ca.getTimeSeconds(),
|
||||
static_cast<int32>(::time(NULL)),
|
||||
static_cast<int32>(::time(nullptr)),
|
||||
ConfigConnectionServer::getDisableWorldSnapshot());
|
||||
client->getClientConnection()->send(startScene, true);
|
||||
}
|
||||
@@ -166,7 +166,7 @@ void GameConnection::onReceive(const Archive::ByteStream & message)
|
||||
// record the time when play started for the character
|
||||
if (client->getClientConnection()->getStartPlayTime() == 0)
|
||||
{
|
||||
client->getClientConnection()->setStartPlayTime(::time(NULL));
|
||||
client->getClientConnection()->setStartPlayTime(::time(nullptr));
|
||||
}
|
||||
|
||||
// update the play time info on the game server
|
||||
|
||||
Reference in New Issue
Block a user