Skip to content

Commit

Permalink
gamestate: Replace time numeric limit with constants.
Browse files Browse the repository at this point in the history
  • Loading branch information
heinezen committed Dec 25, 2023
1 parent 1f54b5d commit 0e7178f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion libopenage/gamestate/activity/event/command_in_queue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ std::shared_ptr<openage::event::Event> primer_command_in_queue(const time::time_
entity->get_manager(),
state,
// event is not executed until a command is available
std::numeric_limits<time::time_t>::max(),
time::TIME_MAX,
params);
auto entity_queue = std::dynamic_pointer_cast<component::CommandQueue>(
entity->get_component(component::component_t::COMMANDQUEUE));
Expand Down
2 changes: 1 addition & 1 deletion libopenage/gamestate/entity_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ void EntityFactory::init_components(const std::shared_ptr<openage::event::EventL
auto attribute = setting_obj.get_object("AttributeSetting.attribute");
auto start_value = setting_obj.get_int("AttributeSetting.starting_value");

live->add_attribute(std::numeric_limits<time::time_t>::min(),
live->add_attribute(time::TIME_MIN,
attribute.get_name(),
std::make_shared<curve::Discrete<int64_t>>(loop,
0,
Expand Down
2 changes: 1 addition & 1 deletion libopenage/gamestate/terrain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void Terrain::attach_renderer(const std::shared_ptr<renderer::RenderFactory> &re
chunk->get_offset());
chunk->set_render_entity(render_entity);

chunk->render_update(time::time_t::zero());
chunk->render_update(time::TIME_ZERO);
}
}

Expand Down
2 changes: 1 addition & 1 deletion libopenage/gamestate/terrain_factory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ std::shared_ptr<TerrainChunk> TerrainFactory::add_chunk(const std::shared_ptr<Ga
auto render_entity = this->render_factory->add_terrain_render_entity(size, offset);
chunk->set_render_entity(render_entity);

chunk->render_update(time::time_t::zero(),
chunk->render_update(time::TIME_ZERO,
test_texture_path);
}

Expand Down

0 comments on commit 0e7178f

Please sign in to comment.