summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2018-04-26 17:55:49 +0200
committerPaweł Redman <pawel.redman@gmail.com>2018-04-26 17:55:49 +0200
commit66a69fd9f918215f2b00010140c9c360d3e7c035 (patch)
tree04d7fb63407c0dfd302aa887461c44d97b01223b /src/game
parentbcfefeaf919281911a53c94b91bc7ec016bd6775 (diff)
Redo the water.
Diffstat (limited to 'src/game')
-rw-r--r--src/game/game.hpp3
-rw-r--r--src/game/pseudostate.cpp5
2 files changed, 6 insertions, 2 deletions
diff --git a/src/game/game.hpp b/src/game/game.hpp
index 3e5042c..31eb164 100644
--- a/src/game/game.hpp
+++ b/src/game/game.hpp
@@ -163,12 +163,11 @@ namespace game {
};
enum {
- TILE_NONE,
+ TILE_WATER = 0, // special value
TILE_DIRT,
TILE_DIRT_RED,
TILE_STONE,
TILE_STONE_RED,
- TILE_WATER,
TILE_GRAVEL
};
diff --git a/src/game/pseudostate.cpp b/src/game/pseudostate.cpp
index 5b64b9e..969b979 100644
--- a/src/game/pseudostate.cpp
+++ b/src/game/pseudostate.cpp
@@ -53,6 +53,11 @@ world::world_t *pseudostate_t::get_world(void)
return &pimpl->world;
}
+double pseudostate_t::get_render_time(void)
+{
+ return pimpl->now;
+}
+
void pseudostate_t::render_interface_to(render::state_t *render)
{
pimpl->interface.render_to(render);