Fixed a couple bugs involving OpenArena::Keys where either windows virtual keys or char's were being used instead.

~g2k
This commit is contained in:
2005-07-14 16:08:50 -04:00
parent 40c2acbbf9
commit 5a6c0fca9d
7 changed files with 288 additions and 203 deletions

View File

@@ -181,7 +181,7 @@ Vec2i Vec2i::cross(const Vec2i& rtOp) const
int Vec2i::length()const
{
return (int)sqrt(x*x+y*y);
return (int)sqrt((float)(x*x+y*y));
}
int Vec2i::lengthsquared()const