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:
committed by
Michael Steenbeek
parent
628039dd8a
commit
3770b46e46
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user