aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/draci/draci.cpp12
-rw-r--r--engines/draci/gpldisasm.cpp2
2 files changed, 7 insertions, 7 deletions
diff --git a/engines/draci/draci.cpp b/engines/draci/draci.cpp
index 2d401804f1..e57018087b 100644
--- a/engines/draci/draci.cpp
+++ b/engines/draci/draci.cpp
@@ -125,10 +125,10 @@ int DraciEngine::go() {
palette[7] = 0;
for (unsigned int i = 2; i < 256; ++i) {
// FIXME: Sprite is too dark, add a fixed value as a workaround
- palette[i*4] = readerZ.readByte() + 20;
- palette[i*4+1] = readerZ.readByte() + 20;
- palette[i*4+2] = readerZ.readByte() + 20;
- palette[i*4+3] = 0;
+ palette[i * 4] = readerZ.readByte() + 20;
+ palette[i * 4 + 1] = readerZ.readByte() + 20;
+ palette[i * 4 + 2] = readerZ.readByte() + 20;
+ palette[i * 4 + 3] = 0;
}
_system->setPalette(palette, 0, 256);
@@ -159,7 +159,7 @@ int DraciEngine::go() {
// Draw frame
for (uint16 i = 0; i < w; ++i) {
for (uint16 j = 0; j < h; ++j) {
- scr[j*w+i] = reader.readByte();
+ scr[j * w + i] = reader.readByte();
}
}
_system->copyRectToScreen(scr, w, 0, 0, w, h);
@@ -169,7 +169,7 @@ int DraciEngine::go() {
debugC(5, kDraciGeneralDebugLevel, "Finished frame %d", t);
// Free frame memory
- delete [] scr;
+ delete[] scr;
}
getchar();
diff --git a/engines/draci/gpldisasm.cpp b/engines/draci/gpldisasm.cpp
index d91952b481..9024a2dd72 100644
--- a/engines/draci/gpldisasm.cpp
+++ b/engines/draci/gpldisasm.cpp
@@ -175,7 +175,7 @@ void handleMathExpression(Common::MemoryReadStream &reader) {
mathExpressionObject obj;
// Read in initial math object
- obj = (mathExpressionObject) reader.readUint16LE();
+ obj = (mathExpressionObject)reader.readUint16LE();
uint16 value;
while (1) {