From 66a69fd9f918215f2b00010140c9c360d3e7c035 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Thu, 26 Apr 2018 17:55:49 +0200 Subject: Redo the water. --- src/game/game.hpp | 3 +-- src/game/pseudostate.cpp | 5 +++++ 2 files changed, 6 insertions(+), 2 deletions(-) (limited to 'src/game') 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); -- cgit