|
27 | 27 |
|
28 | 28 | namespace caveexpress { |
29 | 29 |
|
30 | | -static const Color waterLineColor = { 0.99f, 0.99f, 1.0f, 1.0f }; |
31 | | -static const Color color = { (float)WATERCOLOR[0] / 255.0f, (float)WATERCOLOR[1] / 255.0f, (float)WATERCOLOR[2] / 255.0f, WATER_ALPHA |
32 | | - / 255.0f }; |
33 | | - |
34 | 30 | CaveExpressClientMap::CaveExpressClientMap (int x, int y, int width, int height, IFrontend *frontend, |
35 | 31 | ServiceProvider& serviceProvider, int referenceTileWidth) : |
36 | 32 | ClientMap(x, y, width, height, frontend, serviceProvider, referenceTileWidth), _waterHeight(0.0), _target(nullptr) |
@@ -58,7 +54,7 @@ void CaveExpressClientMap::renderWater (int x, int y) const |
58 | 54 | const SDL_Rect& rect = getWaterRect(x, y); |
59 | 55 | Log::trace(LOG_GAMEIMPL, "rect:(%i,%i,%i,%i), x:%i, y:%i, water:(w:%i, h:%i, surf:%i, grnd:%i, wh:%f, scale:%i)", |
60 | 56 | _x, _y, _width, _height, x, y, rect.w, rect.h, rect.y, rect.y + rect.h, _waterHeight, _scale); |
61 | | - _frontend->renderWaterPlane(rect.x, rect.y, rect.w, rect.h, color, waterLineColor); |
| 57 | + _frontend->renderWaterPlane(rect.x, rect.y, rect.w, rect.h, waterColor, waterLineColor); |
62 | 58 | if (Config.isDebug()) { |
63 | 59 | const int waterGround = rect.y + rect.h; |
64 | 60 | _frontend->renderLine(rect.x, rect.y, rect.x + rect.w, rect.y, colorRed); |
|
0 commit comments