fix some clang warnings

This commit is contained in:
Alug committed 2024-07-03 13:02:11 +02:00
1 parent 28a31301d4
commit 7f4a2f9943
3 files changed
+4 -2

No files matched your search

+2
View File
@@ -48,7 +48,9 @@ int unsortedVertexArrayAllocSize = 65536;
void HWR_StartBatching(void)
{
if (currently_batching)
{
I_Error("Repeat call to HWR_StartBatching without HWR_RenderBatches");
}
// init arrays if that has not been done yet
if (!finalVertexArray)
+1 -1
View File
@@ -147,7 +147,7 @@ static const udata_field_t mobj_fields[] = {
FIELD(mobj_t, colorized, udatalib_getter_boolean, udatalib_setter_boolean),
FIELD(mobj_t, mirrored, udatalib_getter_boolean, udatalib_setter_boolean),
FIELD(mobj_t, rollmodel, udatalib_getter_boolean, udatalib_setter_boolean),
{ NULL },
{ NULL, 0, NULL, NULL },
};
#undef FIELD
+1 -1
View File
@@ -160,7 +160,7 @@ static const udata_field_t player_fields[] = {
// Same as player.name
{ "sliproll", 0, player_sliproll_getter, player_sliproll_noset },
{ "ping", 0, player_ping_getter, player_ping_noset }, // Hmm originally setter doesn't exist so data is written as unreachable custom field...
{ NULL },
{ NULL, 0, NULL, NULL },
};
#undef FIELD