Skip to content

Commit

Permalink
?
Browse files Browse the repository at this point in the history
  • Loading branch information
beats-dh committed Dec 3, 2023
1 parent 2a6a1ac commit 481198d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/server/network/protocol/protocolgame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6912,7 +6912,7 @@ void ProtocolGame::sendPreyData(const std::unique_ptr<PreySlot> &slot) {
auto timeDiffMinutes = timeDiffMs / 60000;
msg.add<uint16_t>(timeDiffMinutes ? timeDiffMinutes : 0);
} else {
msg.add<uint32_t>(std::max<uint32_t>(safe_convert<uint32_t>(((slot->freeRerollTimeStamp - OTSYS_TIME()) / 1000), __FUNCTION__), 0));
msg.add<int32_t>(std::max<int32_t>(safe_convert<int32_t>(((slot->freeRerollTimeStamp - OTSYS_TIME()) / 1000), __FUNCTION__), 0));
msg.addByte(safe_convert<uint8_t>(slot->option, __FUNCTION__));
}

Expand Down Expand Up @@ -7549,7 +7549,7 @@ void ProtocolGame::sendTaskHuntingData(const std::unique_ptr<TaskHuntingSlot> &s
return;
}

msg.add<uint32_t>(std::max<uint32_t>(safe_convert<uint32_t>(((slot->freeRerollTimeStamp - OTSYS_TIME()) / 1000), __FUNCTION__), 0));
msg.add<int32_t>(std::max<int32_t>(safe_convert<int32_t>(((slot->freeRerollTimeStamp - OTSYS_TIME()) / 1000), __FUNCTION__), 0));
writeToOutputBuffer(msg);
}

Expand Down

0 comments on commit 481198d

Please sign in to comment.