diff options
author | Rogier Polak <rogier.l.a.polak@gmail.com> | 2007-03-05 03:32:59 +0000 |
---|---|---|
committer | Rogier Polak <rogier.l.a.polak@gmail.com> | 2007-03-05 03:32:59 +0000 |
commit | d811a539474a6eeb4439a4204f3d96551a5b7c1e (patch) | |
tree | 66b2482085965598845a0e58fa04d1bcdb6dd5a1 /src/controller.cpp | |
parent | f0d969eba1840362daad9debc93907c270b22ea5 (diff) | |
download | manaserv-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.cpp | 4 |
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; |