Skip to content

Commit

Permalink
Set maximum spawn count to 1000
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrek-szczygiel committed Jun 7, 2021
1 parent fb3e0a8 commit c1ae662
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cmake_minimum_required(VERSION 3.11)
project(sim VERSION "1.1.1")
project(sim VERSION "1.1.2")

configure_file("src/version.h.in" "version.h" @ONLY)
include_directories(${PROJECT_BINARY_DIR})
Expand Down
6 changes: 3 additions & 3 deletions src/gui.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ void Gui::draw_controls(const Simulation& sim, float x, float y, float w) {
y += AFTER_LINE;

m_edit.grass_spawn ^=
GuiSpinner({x, y, BTN_W, ROW_H}, "Spawn count", &m_config.grass_spawn_count, 1, 100, m_edit.grass_spawn);
GuiSpinner({x, y, BTN_W, ROW_H}, "Spawn count", &m_config.grass_spawn_count, 1, 1000, m_edit.grass_spawn);
m_edit.grass_nutrition ^= GuiSpinner({x + w / 2, y, BTN_W, ROW_H}, "Nutritional value",
&m_config.grass_nutritional_value, 1, 1000, m_edit.grass_nutrition);
y += ROW_H;
Expand All @@ -287,7 +287,7 @@ void Gui::draw_controls(const Simulation& sim, float x, float y, float w) {
y += AFTER_LINE;

m_edit.chicken_spawn ^=
GuiSpinner({x, y, BTN_W, ROW_H}, "Spawn count", &m_config.chicken_spawn_count, 1, 100, m_edit.chicken_spawn);
GuiSpinner({x, y, BTN_W, ROW_H}, "Spawn count", &m_config.chicken_spawn_count, 1, 1000, m_edit.chicken_spawn);
m_edit.chicken_sensor ^= GuiSpinner({x + w / 2, y, BTN_W, ROW_H}, "Sensor range", &m_config.chicken_sensor_range, 1,
100, m_edit.chicken_sensor);
y += ROW_H + P;
Expand Down Expand Up @@ -315,7 +315,7 @@ void Gui::draw_controls(const Simulation& sim, float x, float y, float w) {
y += AFTER_LINE;

m_edit.wolf_spawn ^=
GuiSpinner({x, y, BTN_W, ROW_H}, "Spawn count", &m_config.wolf_spawn_count, 1, 100, m_edit.wolf_spawn);
GuiSpinner({x, y, BTN_W, ROW_H}, "Spawn count", &m_config.wolf_spawn_count, 1, 1000, m_edit.wolf_spawn);
m_edit.wolf_sensor ^= GuiSpinner({x + w / 2, y, BTN_W, ROW_H}, "Sensor range", &m_config.wolf_sensor_range, 1, 100,
m_edit.wolf_sensor);
y += ROW_H + P;
Expand Down

0 comments on commit c1ae662

Please sign in to comment.