]> git.mxchange.org Git - quix0rs-blobwars.git/blobdiff - src/CWeapon.cpp
Don't link pak tool with SDL.
[quix0rs-blobwars.git] / src / CWeapon.cpp
index 7268b8b9d56998225e1676547b21b985e35aae28..e085915b64f37c086c4b6ad7bc62082e9a1aaa6f 100644 (file)
@@ -1,5 +1,5 @@
 /*
-Copyright (C) 2004 Parallel Realities
+Copyright (C) 2004-2011 Parallel Realities
 
 This program is free software; you can redistribute it and/or
 modify it under the terms of the GNU General Public License
@@ -34,10 +34,10 @@ Weapon::Weapon()
 
 void Weapon::setName(const char *name)
 {
-       strncpy(this->name, name, sizeof this->name);
+       strlcpy(this->name, name, sizeof this->name);
 }
 
-int Weapon::getSpeed(int face)
+int Weapon::getSpeed(int face) const
 {
        return (dx - ((dx * 2) * face));
 }