summaryrefslogtreecommitdiff
path: root/src/creature.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/creature.cpp')
-rw-r--r--src/creature.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/creature.cpp b/src/creature.cpp
index 437837d..207d3bd 100644
--- a/src/creature.cpp
+++ b/src/creature.cpp
@@ -13,9 +13,9 @@ Creature::Creature(Window m, std::string s)
void Creature::Behavior()
{
//Detection
-
+
//Priorities
-
+
//Action
this->Action();
}
@@ -26,7 +26,7 @@ void Creature::Action()
// eat//reproduce//etc;
if(x==xT)
- {
+ {
if(y<yT)
y++;
else
@@ -42,7 +42,6 @@ void Creature::Action()
else
{
srand(time(NULL));
- z = rand%1;
- if(
+ int z = rand()%1;
}
}