ref: f596f897363f181d9f5c3306ece18742069d05a1
parent: 567330cc5bd9ebd7323938f5d7c875cb154abe23
author: Clownacy <Clownacy@users.noreply.github.com>
date: Tue Oct 29 08:20:48 EDT 2019
Shut up more Clang warnings
--- a/src/BossOhm.cpp
+++ b/src/BossOhm.cpp
@@ -17,8 +17,13 @@
{int i;
- RECT rcLeft[1] = {80, 56, 104, 72};- RECT rcRight[1] = {104, 56, 128, 72};+ RECT rcLeft[1] = {+ {80, 56, 104, 72}+ };
+
+ RECT rcRight[1] = {+ {104, 56, 128, 72}+ };
for (i = 1; i < 3; ++i)
{--- a/src/NpcAct020.cpp
+++ b/src/NpcAct020.cpp
@@ -530,7 +530,9 @@
// Death trap
void ActNpc027(NPCHAR *npc)
{- RECT rcLeft[1] = {96, 64, 128, 88};+ RECT rcLeft[1] = {+ {96, 64, 128, 88}+ };
npc->rect = rcLeft[npc->ani_no];
}
--- a/src/NpcAct120.cpp
+++ b/src/NpcAct120.cpp
@@ -783,8 +783,13 @@
// Puppy (sleeping)
void ActNpc131(NPCHAR *npc)
{- RECT rcLeft[1] = {144, 144, 160, 160};- RECT rcRight[1] = {144, 160, 160, 176};+ RECT rcLeft[1] = {+ {144, 144, 160, 160}+ };
+
+ RECT rcRight[1] = {+ {144, 160, 160, 176}+ };
if (++npc->act_wait > 100)
{--- a/src/NpcAct140.cpp
+++ b/src/NpcAct140.cpp
@@ -543,9 +543,14 @@
// Jenka (collapsed)
void ActNpc143(NPCHAR *npc)
{- RECT rcLeft[1] = {208, 32, 224, 48};- RECT rcRight[1] = {208, 48, 224, 64};+ RECT rcLeft[1] = {+ {208, 32, 224, 48}+ };
+ RECT rcRight[1] = {+ {208, 48, 224, 64}+ };
+
if (npc->direct == 0)
npc->rect = rcLeft[npc->ani_no];
else
@@ -662,8 +667,13 @@
// King's sword
void ActNpc145(NPCHAR *npc)
{- RECT rcLeft[1] = {96, 32, 112, 48};- RECT rcRight[1] = {112, 32, 128, 48};+ RECT rcLeft[1] = {+ {96, 32, 112, 48}+ };
+
+ RECT rcRight[1] = {+ {112, 32, 128, 48}+ };
switch (npc->act_no)
{--- a/src/NpcAct200.cpp
+++ b/src/NpcAct200.cpp
@@ -142,8 +142,13 @@
// Dragon Zombie (dead)
void ActNpc201(NPCHAR *npc)
{- RECT rcLeft[1] = {200, 0, 240, 40};- RECT rcRight[1] = {200, 40, 240, 80};+ RECT rcLeft[1] = {+ {200, 0, 240, 40}+ };
+
+ RECT rcRight[1] = {+ {200, 40, 240, 80}+ };
if (npc->direct == 0)
npc->rect = rcLeft[npc->ani_no];
--
⑨