[Scummvm-git-logs] scummvm master -> 314d52dbc1fb31fd55fe8d87fcbcf76859e28f5f
Strangerke
Strangerke at scummvm.org
Fri Sep 16 23:53:24 CEST 2016
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
314d52dbc1 DM: Fix some more warnings
Commit: 314d52dbc1fb31fd55fe8d87fcbcf76859e28f5f
https://github.com/scummvm/scummvm/commit/314d52dbc1fb31fd55fe8d87fcbcf76859e28f5f
Author: Strangerke (strangerke at scummvm.org)
Date: 2016-09-16T23:43:27+02:00
Commit Message:
DM: Fix some more warnings
Changed paths:
engines/dm/gfx.cpp
engines/dm/gfx.h
diff --git a/engines/dm/gfx.cpp b/engines/dm/gfx.cpp
index 08d5de4..c716545 100644
--- a/engines/dm/gfx.cpp
+++ b/engines/dm/gfx.cpp
@@ -1337,7 +1337,7 @@ void DisplayMan::drawSquareD3R(Direction dir, int16 posX, int16 posY) {
Frame(180, 197, 28, 67, 24, 41, 24, 0) /* Right Horizontal Closed three fourth */
);
- CellOrder order;
+ CellOrder order = kDMCellOrderNone;
uint16 squareAspect[5];
bool skip = false;
@@ -2890,9 +2890,9 @@ void DisplayMan::drawObjectsCreaturesProjectilesExplosions(Thing thingParam, Dir
#define AL_8_shiftSetIndex L0150_ui_Multiple
#define AL_8_projectileScaleIndex L0150_ui_Multiple
CreatureAspect* creatureAspectStruct;
- int16 creatureSize;
+ int16 creatureSize = 0;
int16 creatureDirectionDelta;
- int16 creatureGraphicInfoGreen;
+ int16 creatureGraphicInfoGreen = 0;
int16 creatureGraphicInfoRed;
int16 creatureAspectInt;
int16 creatureIndexGreen;
@@ -2906,7 +2906,7 @@ void DisplayMan::drawObjectsCreaturesProjectilesExplosions(Thing thingParam, Dir
bool useFlippedHorizontallyCreatureFrontImage;
bool drawCreaturesCompleted; /* Set to true when the last creature that the function should draw is being drawn. This is used to avoid processing the code to draw creatures for the remaining square cells */
int16 doorFrontViewDrawingPass; /* Value 0, 1 or 2 */
- int16 projectilePosX;
+ int16 projectilePosX = 0;
int16 projectileDirection;
int16 projectileAspectType;
int16 projectileBitmapIndexDelta;
@@ -3115,8 +3115,8 @@ void DisplayMan::drawObjectsCreaturesProjectilesExplosions(Thing thingParam, Dir
AL_10_viewSquareIndexBackup = viewSquareIndex;
viewLane = (ViewLane)((viewSquareIndex + 3) % 3);
bool twoHalfSquareCreaturesFrontView;
- byte *bitmapRedBanana;
- byte *bitmapGreenAnt;
+ byte *bitmapRedBanana = nullptr;
+ byte *bitmapGreenAnt = nullptr;
do {
/* Draw objects */
if (L0135_B_DrawAlcoveObjects) {
diff --git a/engines/dm/gfx.h b/engines/dm/gfx.h
index 6fc6253..9df6ad1 100644
--- a/engines/dm/gfx.h
+++ b/engines/dm/gfx.h
@@ -111,6 +111,7 @@ enum ViewWall {
};
enum CellOrder {
+ kDMCellOrderNone = 0xFFFF,
kDMCellOrderAlcove = 0x0000, // @ C0000_CELL_ORDER_ALCOVE
kDMCellOrderBackLeft = 0x0001, // @ C0001_CELL_ORDER_BACKLEFT
kDMCellOrderBackRight = 0x0002, // @ C0002_CELL_ORDER_BACKRIGHT
More information about the Scummvm-git-logs
mailing list