1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 13:03:11 +01:00

Replace 1 and 0 constants with bool where applicable

This commit is contained in:
Hielke Morsink
2017-12-20 14:07:29 +01:00
committed by Michael Steenbeek
parent 628039dd8a
commit 3770b46e46
8 changed files with 67 additions and 67 deletions

View File

@@ -770,31 +770,31 @@ extern "C"
{
if ((a->flags & 0x0F) != (b->flags & 0x0F))
{
return 0;
return false;
}
sint32 match = memcmp(a->name, b->name, 8);
if (match)
{
return 0;
return false;
}
}
else
{
if (a->flags != b->flags)
{
return 0;
return false;
}
sint32 match = memcmp(a->name, b->name, 8);
if (match)
{
return 0;
return false;
}
if (a->checksum != b->checksum)
{
return 0;
return false;
}
}
return 1;
return true;
}
sint32 object_calculate_checksum(const rct_object_entry * entry, const void * data, size_t dataLength)