mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-09-02 12:32:40 +02:00
Fix some warnings
This commit is contained in:
@@ -480,7 +480,6 @@ void EngineProcess()
|
|||||||
engine.Tick();
|
engine.Tick();
|
||||||
|
|
||||||
{
|
{
|
||||||
auto drawLimit = ui::Engine::Ref().GetDrawingFrequencyLimit();
|
|
||||||
auto nowNs = uint64_t(SDL_GetTicks()) * UINT64_C(1'000'000);
|
auto nowNs = uint64_t(SDL_GetTicks()) * UINT64_C(1'000'000);
|
||||||
auto effectiveDrawLimit = engine.GetEffectiveDrawCap();
|
auto effectiveDrawLimit = engine.GetEffectiveDrawCap();
|
||||||
if (!effectiveDrawLimit || drawSchedule.HasElapsed(nowNs))
|
if (!effectiveDrawLimit || drawSchedule.HasElapsed(nowNs))
|
||||||
|
@@ -2444,7 +2444,7 @@ std::pair<bool, std::vector<char>> GameSave::serialiseOPS() const
|
|||||||
}
|
}
|
||||||
if (part.type == PT_LSNS)
|
if (part.type == PT_LSNS)
|
||||||
{
|
{
|
||||||
if (part.tmp >= 1 || part.tmp <= 3)
|
if (part.tmp >= 1 && part.tmp <= 3)
|
||||||
{
|
{
|
||||||
RESTRICTVERSION(95, 0);
|
RESTRICTVERSION(95, 0);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user