From 446a56d6557c3ae0100b8930100f828cfe0e3d4a Mon Sep 17 00:00:00 2001 From: Anders Jenbo Date: Sun, 19 Jun 2022 01:42:08 +0200 Subject: [PATCH] Reduce dPiece from int to uint16_t --- Source/gendung.cpp | 2 +- Source/gendung.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/gendung.cpp b/Source/gendung.cpp index f418e3950..bcba858f9 100644 --- a/Source/gendung.cpp +++ b/Source/gendung.cpp @@ -42,7 +42,7 @@ ScrollStruct ScrollInfo; int MicroTileLen; char TransVal; bool TransList[256]; -int dPiece[MAXDUNX][MAXDUNY]; +uint16_t dPiece[MAXDUNX][MAXDUNY]; MICROS DPieceMicros[MAXTILES + 1]; int8_t dTransVal[MAXDUNX][MAXDUNY]; char dLight[MAXDUNX][MAXDUNY]; diff --git a/Source/gendung.h b/Source/gendung.h index ada28de0b..4ef61ddf4 100644 --- a/Source/gendung.h +++ b/Source/gendung.h @@ -176,7 +176,7 @@ extern char TransVal; /** Specifies the active transparency indices. */ extern bool TransList[256]; /** Contains the piece IDs of each tile on the map. */ -extern DVL_API_FOR_TEST int dPiece[MAXDUNX][MAXDUNY]; +extern DVL_API_FOR_TEST uint16_t dPiece[MAXDUNX][MAXDUNY]; /** Map of micros that comprises a full tile for any given dungeon piece. */ extern MICROS DPieceMicros[MAXTILES + 1]; /** Specifies the transparency at each coordinate of the map. */