diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2009-12-06 18:02:03 +0100 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2009-12-06 18:02:03 +0100 |
commit | 49cd2c5d236294fa99a612dbf4833c72a7f89de8 (patch) | |
tree | 9b683eeab5ebd4bacdcf08b07e742071e24ca386 /src/scripting/lua.cpp | |
parent | 70e357b136a69b5ddbca1c44b2ab35b13b694484 (diff) | |
download | manaserv-49cd2c5d236294fa99a612dbf4833c72a7f89de8.tar.gz manaserv-49cd2c5d236294fa99a612dbf4833c72a7f89de8.tar.bz2 manaserv-49cd2c5d236294fa99a612dbf4833c72a7f89de8.tar.xz manaserv-49cd2c5d236294fa99a612dbf4833c72a7f89de8.zip |
Moved rectangle intersection to the Rectangle class
Also a bit of pointless cleanup in the math utils.
Diffstat (limited to 'src/scripting/lua.cpp')
-rw-r--r-- | src/scripting/lua.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/scripting/lua.cpp b/src/scripting/lua.cpp index fe777a0c..4cb4d213 100644 --- a/src/scripting/lua.cpp +++ b/src/scripting/lua.cpp @@ -1043,7 +1043,7 @@ static int get_beings_in_circle(lua_State *s) if (t == OBJECT_NPC || t == OBJECT_CHARACTER || t == OBJECT_MONSTER) { Being *b = static_cast<Being *> (*i); - if (Collision::CircleWithCircle(b->getPosition(), b->getSize(), + if (Collision::circleWithCircle(b->getPosition(), b->getSize(), Point(x, y), r)) { lua_pushinteger(s, tableIndex); |