From 2fdc2ec00fbb8340c101ec8d7ad3813d9b64a2e0 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 9 Nov 2021 13:40:20 +0100 Subject: [PATCH] - small stuff --- source/games/exhumed/src/aistuff.h | 4 ++-- source/games/exhumed/src/object.cpp | 2 +- source/games/exhumed/src/snake.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/games/exhumed/src/aistuff.h b/source/games/exhumed/src/aistuff.h index f8f521c6a..d8795e910 100644 --- a/source/games/exhumed/src/aistuff.h +++ b/source/games/exhumed/src/aistuff.h @@ -54,8 +54,8 @@ void FuncBubble(int, int, int, int); // 32 bytes struct bulletInfo { - short nDamage; // 0 - short field_2; // 2 + int16_t nDamage; // 0 + int16_t field_2; // 2 int field_4; // 4 short field_8; // 8 short nSeq; // 10 diff --git a/source/games/exhumed/src/object.cpp b/source/games/exhumed/src/object.cpp index e93c2c964..0f44f0109 100644 --- a/source/games/exhumed/src/object.cpp +++ b/source/games/exhumed/src/object.cpp @@ -155,7 +155,7 @@ struct Trap short field_0; short nType; short field_6; - short field_8; + int field_8; // wallnum short field_A; short field_C; short field_E; diff --git a/source/games/exhumed/src/snake.cpp b/source/games/exhumed/src/snake.cpp index 5f7302519..5db8244d2 100644 --- a/source/games/exhumed/src/snake.cpp +++ b/source/games/exhumed/src/snake.cpp @@ -409,8 +409,8 @@ void AISnake::Tick(RunListEvent* ev) void AISnake::Draw(RunListEvent* ev) { - short nSnake = RunData[ev->nRun].nObjIndex; - short nSprite = ev->nParam; + int nSnake = RunData[ev->nRun].nObjIndex; + int nSprite = ev->nParam; if ((nSnake & 0xFF) == 0) { seq_PlotSequence(nSprite, SeqOffsets[kSeqSnakehed], 0, 0);