summaryrefslogtreecommitdiff
path: root/src/controller.cpp
diff options
context:
space:
mode:
authorRogier Polak <rogier.l.a.polak@gmail.com>2007-03-05 03:32:59 +0000
committerRogier Polak <rogier.l.a.polak@gmail.com>2007-03-05 03:32:59 +0000
commitd811a539474a6eeb4439a4204f3d96551a5b7c1e (patch)
tree66b2482085965598845a0e58fa04d1bcdb6dd5a1 /src/controller.cpp
parentf0d969eba1840362daad9debc93907c270b22ea5 (diff)
downloadmanaserv-d811a539474a6eeb4439a4204f3d96551a5b7c1e.tar.gz
manaserv-d811a539474a6eeb4439a4204f3d96551a5b7c1e.tar.bz2
manaserv-d811a539474a6eeb4439a4204f3d96551a5b7c1e.tar.xz
manaserv-d811a539474a6eeb4439a4204f3d96551a5b7c1e.zip
Added an abstrart base class for characterdata, in order to use the same serialize and deserialize functions on both the accountserver and the gameserver.
Diffstat (limited to 'src/controller.cpp')
-rw-r--r--src/controller.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/controller.cpp b/src/controller.cpp
index 42a64b66..d71461f2 100644
--- a/src/controller.cpp
+++ b/src/controller.cpp
@@ -33,8 +33,8 @@ void Controlled::update()
{
if (mAction != DEAD)
{
- Point randomPos = { rand() % 320 + 720,
- rand() % 320 + 840 };
+ Point randomPos( rand() % 320 + 720,
+ rand() % 320 + 840 );
setDestination(randomPos);
mCountDown = 10 + rand() % 10;