X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=Source%2FWeapons.cpp;h=d250f1ee84676c50d008dbc35e4724ce22db42ac;hb=0b7253f3d99e4382008aff8b8e221e88ff40d3e9;hp=9be2636232ed6f74e8fe37f3a7854ebe7d6f9956;hpb=443dd85b562cc9b1584297e0eae4206d64189932;p=lugaru.git diff --git a/Source/Weapons.cpp b/Source/Weapons.cpp index 9be2636..d250f1e 100644 --- a/Source/Weapons.cpp +++ b/Source/Weapons.cpp @@ -28,7 +28,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "Awards.h" extern float multiplier; -extern int channels[100]; extern Terrain terrain; extern float gravity; extern int environment; @@ -47,7 +46,6 @@ extern bool osx; extern bool autoslomo; extern float camerashake; extern float woozy; -extern float terraindetail; extern float viewdistance; extern float blackout; extern int difficulty; @@ -119,8 +117,8 @@ void Weapons::DoStuff(){ if(owner[i]==-1&&(velocity[i].x||velocity[i].y||velocity[i].z)&&!physics[i]){ position[i]+=velocity[i]*multiplier; tippoint[i]+=velocity[i]*multiplier; - whichpatchx=position[i].x/(terrain.size/subdivision*terrain.scale*terraindetail); - whichpatchz=position[i].z/(terrain.size/subdivision*terrain.scale*terraindetail); + whichpatchx=position[i].x/(terrain.size/subdivision*terrain.scale); + whichpatchz=position[i].z/(terrain.size/subdivision*terrain.scale); if(whichpatchx>0&&whichpatchz>0&&whichpatchx0&&whichpatchz>0&&whichpatchx