mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-30 10:15:36 +01:00
Use named casts on openrct2-ui/title
This commit is contained in:
@@ -222,7 +222,7 @@ private:
|
||||
void IncrementPosition()
|
||||
{
|
||||
_position++;
|
||||
if (_position >= (int32_t)_sequence->NumCommands)
|
||||
if (_position >= static_cast<int32_t>(_sequence->NumCommands))
|
||||
{
|
||||
_position = 0;
|
||||
}
|
||||
@@ -250,7 +250,7 @@ private:
|
||||
case TITLE_SCRIPT_WAIT:
|
||||
// The waitCounter is measured in 25-ms game ticks. Previously it was seconds * 40 ticks/second, now it is ms /
|
||||
// 25 ms/tick
|
||||
_waitCounter = std::max<int32_t>(1, command->Milliseconds / (uint32_t)GAME_UPDATE_TIME_MS);
|
||||
_waitCounter = std::max<int32_t>(1, command->Milliseconds / static_cast<uint32_t>(GAME_UPDATE_TIME_MS));
|
||||
break;
|
||||
case TITLE_SCRIPT_LOCATION:
|
||||
{
|
||||
@@ -280,7 +280,7 @@ private:
|
||||
TitleSequenceParkHandle* parkHandle = TitleSequenceGetParkHandle(_sequence, saveIndex);
|
||||
if (parkHandle != nullptr)
|
||||
{
|
||||
loadSuccess = LoadParkFromStream((IStream*)parkHandle->Stream, parkHandle->HintPath);
|
||||
loadSuccess = LoadParkFromStream(static_cast<IStream*>(parkHandle->Stream), parkHandle->HintPath);
|
||||
TitleSequenceCloseParkHandle(parkHandle);
|
||||
}
|
||||
if (!loadSuccess)
|
||||
|
||||
Reference in New Issue
Block a user