aboutsummaryrefslogtreecommitdiff
path: root/engines/bladerunner
diff options
context:
space:
mode:
authorEugene Sandulenko2016-10-15 13:47:06 +0200
committerEugene Sandulenko2016-10-15 13:47:06 +0200
commit6ab1edf5974faf79b8172b4e3166c24b044abf4b (patch)
tree658c24287b3e7c8246f90067d66018e292d96c61 /engines/bladerunner
parent04f0fa36a68eccf01d2d08827b1d8ecaef7eff50 (diff)
downloadscummvm-rg350-6ab1edf5974faf79b8172b4e3166c24b044abf4b.tar.gz
scummvm-rg350-6ab1edf5974faf79b8172b4e3166c24b044abf4b.tar.bz2
scummvm-rg350-6ab1edf5974faf79b8172b4e3166c24b044abf4b.zip
BLADERUNNER: Fix compilation on older gcc
Diffstat (limited to 'engines/bladerunner')
-rw-r--r--engines/bladerunner/lights.h8
-rw-r--r--engines/bladerunner/slice_renderer.cpp10
-rw-r--r--engines/bladerunner/slice_renderer.h26
3 files changed, 22 insertions, 22 deletions
diff --git a/engines/bladerunner/lights.h b/engines/bladerunner/lights.h
index ed8edb5f1f..a6f2a728ce 100644
--- a/engines/bladerunner/lights.h
+++ b/engines/bladerunner/lights.h
@@ -35,13 +35,13 @@ class Lights {
#if _DEBUG
friend class BladeRunnerEngine;
#endif
- friend class SliceRenderer;
+ friend class SliceRendererLights;
BladeRunnerEngine *_vm;
- Color _ambientLightColor;
- Common::Array<Light*> _lights;
- int _frame;
+ Color _ambientLightColor;
+ Common::Array<Light *> _lights;
+ int _frame;
//char gap[28];
public:
diff --git a/engines/bladerunner/slice_renderer.cpp b/engines/bladerunner/slice_renderer.cpp
index f8d9a48dfc..8e299f7c0b 100644
--- a/engines/bladerunner/slice_renderer.cpp
+++ b/engines/bladerunner/slice_renderer.cpp
@@ -429,12 +429,12 @@ void SliceRenderer::drawInWorld(int animationId, int animationFrame, Vector3 pos
void SliceRenderer::drawOnScreen(int animationId, int animationFrame, int screenX, int screenY, float facing, float scale, Graphics::Surface &surface, uint16 *zbuffer) {
if (scale == 0.0f) {
return;
- }
+ }
_position.x = 0;
_position.y = 0;
_position.z = 0;
_facing = facing;
-
+
loadFrame(animationId, animationFrame);
float frameHeight = _frameSliceHeight * _frameSliceCount;
@@ -561,7 +561,7 @@ void SliceRenderer::disableShadows(int animationsIdsList[], int listSize) {
}
}
-SliceRenderer::SliceRendererLights::SliceRendererLights(Lights *lights) {
+SliceRendererLights::SliceRendererLights(Lights *lights) {
_finalColor.r = 0.0f;
_finalColor.g = 0.0f;
_finalColor.b = 0.0f;
@@ -575,7 +575,7 @@ SliceRenderer::SliceRendererLights::SliceRendererLights(Lights *lights) {
}
}
-void SliceRenderer::SliceRendererLights::calculateColorBase(Vector3 position1, Vector3 position2, float height) {
+void SliceRendererLights::calculateColorBase(Vector3 position1, Vector3 position2, float height) {
_finalColor.r = 0.0f;
_finalColor.g = 0.0f;
_finalColor.b = 0.0f;
@@ -610,7 +610,7 @@ void SliceRenderer::SliceRendererLights::calculateColorBase(Vector3 position1, V
}
}
-void SliceRenderer::SliceRendererLights::calculateColorSlice(Vector3 position) {
+void SliceRendererLights::calculateColorSlice(Vector3 position) {
_finalColor.r = 0.0f;
_finalColor.g = 0.0f;
_finalColor.b = 0.0f;
diff --git a/engines/bladerunner/slice_renderer.h b/engines/bladerunner/slice_renderer.h
index d1659ec191..c763b1e784 100644
--- a/engines/bladerunner/slice_renderer.h
+++ b/engines/bladerunner/slice_renderer.h
@@ -111,23 +111,23 @@ private:
void calculateBoundingRect();
void loadFrame(int animation, int frame);
+};
- class SliceRendererLights {
- Lights *_lights;
- Color _colors[20];
- float _hmm[20];
- float _hmm2[20];
- int _hmm3;
+class SliceRendererLights {
+ Lights *_lights;
+ Color _colors[20];
+ float _hmm[20];
+ float _hmm2[20];
+ int _hmm3;
- public:
- Color _finalColor;
+public:
+ Color _finalColor;
- public:
- SliceRendererLights(Lights *lights);
+public:
+ SliceRendererLights(Lights *lights);
- void calculateColorBase(Vector3 position1, Vector3 position2, float height);
- void calculateColorSlice(Vector3 position);
- };
+ void calculateColorBase(Vector3 position1, Vector3 position2, float height);
+ void calculateColorSlice(Vector3 position);
};
} // End of namespace BladeRunner