summaryrefslogtreecommitdiff
path: root/src/simulation/elements/REPL.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/simulation/elements/REPL.cpp')
-rw-r--r--src/simulation/elements/REPL.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/simulation/elements/REPL.cpp b/src/simulation/elements/REPL.cpp
index b2deaee..0b68487 100644
--- a/src/simulation/elements/REPL.cpp
+++ b/src/simulation/elements/REPL.cpp
@@ -52,8 +52,8 @@ int Element_REPL::update(UPDATE_FUNC_ARGS)
int r, rx, ry, ri;
for(ri = 0; ri <= 10; ri++)
{
- rx = (rand()%20)-10;
- ry = (rand()%20)-10;
+ rx = (rand()%21)-10;
+ ry = (rand()%21)-10;
if (x+rx>=0 && y+ry>0 && x+rx<XRES && y+ry<YRES && (rx || ry))
{
r = pmap[y+ry][x+rx];
@@ -70,4 +70,4 @@ int Element_REPL::update(UPDATE_FUNC_ARGS)
}
-Element_REPL::~Element_REPL() {} \ No newline at end of file
+Element_REPL::~Element_REPL() {}