Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OCSR
UMANS
Commits
d86d1675
Commit
d86d1675
authored
Apr 09, 2020
by
VAN TOLL Wouter
Browse files
Teleportation bugfix in WorldToric::DoStep_MoveAllAgents().
parent
aafd9369
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/core/worldToric.cpp
View file @
d86d1675
...
...
@@ -83,9 +83,9 @@ void WorldToric::DoStep_MoveAllAgents()
x
-=
width_
;
else
if
(
x
<
-
halfWidth
)
x
+=
width_
;
if
(
y
>
half
Width
)
if
(
y
>
half
Height
)
y
-=
height_
;
else
if
(
y
<
-
half
Width
)
else
if
(
y
<
-
half
Height
)
y
+=
height_
;
agent
->
setPosition
(
Vector2D
(
x
,
y
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment