From 705156dced26432e41deada8d9811c05d52b44ce Mon Sep 17 00:00:00 2001 From: =?utf8?q?C=C3=B4me=20BERNIGAUD?= Date: Sun, 6 Jun 2010 17:51:11 +0200 Subject: [PATCH] Missing files in the CMakeList.txt And some clean up. --- CMakeLists.txt | 2 -- Source/OpenGL_Windows.cpp | 5 +---- Source/Person.cpp | 36 +++++++++--------------------------- 3 files changed, 10 insertions(+), 33 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f0df144..d86c839 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -89,12 +89,10 @@ set(LUGARU_H ${SRCDIR}/Account.h ${SRCDIR}/Game.h ${SRCDIR}/Lights.h - ${SRCDIR}/LinkedList.h ${SRCDIR}/Models.h ${SRCDIR}/Objects.h ${SRCDIR}/Person.h ${SRCDIR}/PhysicsMath.h - ${SRCDIR}/Pointer.h ${SRCDIR}/Quaternions.h ${SRCDIR}/Random.h ${SRCDIR}/Skeleton.h diff --git a/Source/OpenGL_Windows.cpp b/Source/OpenGL_Windows.cpp index 2510aa6..3699818 100644 --- a/Source/OpenGL_Windows.cpp +++ b/Source/OpenGL_Windows.cpp @@ -415,7 +415,7 @@ Boolean SetUp (Game & game) static void DoMouse(Game & game) { - if(mainmenu||(abs(game.deltah)<10*realmultiplier*1000&&abs(game.deltav)<10*realmultiplier*1000)) + if(mainmenu|| ( (abs(game.deltah)<10*realmultiplier*1000) && (abs(game.deltav)<10*realmultiplier*1000) )) { game.deltah *= usermousesensitivity; game.deltav *= usermousesensitivity; @@ -482,7 +482,6 @@ void DoUpdate (Game & game) count = multiplier*sps; if(count<2)count=2; - //if(count>10)count=10; realmultiplier=multiplier; multiplier*=gamespeed; @@ -490,9 +489,7 @@ void DoUpdate (Game & game) if(difficulty==0)multiplier*=.8; if(game.loading==4)multiplier*=.00001; - //multiplier*.9; if(slomo&&!mainmenu)multiplier*=slomospeed; - //if(freeze)multiplier*=0.00001; oldmult=multiplier; multiplier/=(float)count; diff --git a/Source/Person.cpp b/Source/Person.cpp index cf4a6fb..716130c 100644 --- a/Source/Person.cpp +++ b/Source/Person.cpp @@ -88,8 +88,6 @@ extern float damagetaken; extern int hostile; extern float hostiletime; -extern int mainmenu; - extern int numfalls; extern int numflipfail; extern int numseen; @@ -1465,7 +1463,7 @@ void Person::DoHead(){ static XYZ facing; static float lookspeed=500; - if(!freeze&&!winfreeze&&(!mainmenu||!gamestarted)){ + if(!freeze&&!winfreeze){ //head facing targetheadrotation=(float)((int)((0-rotation-targetheadrotation+180)*100)%36000)/100; @@ -5050,12 +5048,6 @@ void Person::DoStuff(){ targetanimation=getRun(); targetframe=0; } - /*static float toggledelay; - toggledelay-=multiplier; - if(toggledelay<0){ - toggledelay=1; - if(Random()%3==0)superruntoggle=1-superruntoggle; - }*/ } if(weaponactive==-1&&num_weapons>0){ if(weapons.type[weaponids[0]]==staff){ @@ -5154,10 +5146,6 @@ void Person::DoStuff(){ if(!skeleton.free)Sprite::MakeSprite(bloodsprite, DoRotation((skeleton.joints[skeleton.jointlabels[abdomen]].position+skeleton.joints[skeleton.jointlabels[abdomen]].position)/2,0,rotation,0)*scale+coords,bloodvel, 1,1,1, .05, 1); } } - /*if(id==0){ - bloodloss+=deathbleeding*40; - deathbleeding=0; - }*/ bloodloss+=deathbleeding*multiplier*80; deathbleeding-=multiplier*1.6; //if(id==0)deathbleeding-=multiplier*.2; @@ -5231,10 +5219,6 @@ void Person::DoStuff(){ if(endy>skeleton.skinsize-1){endy=skeleton.skinsize-1;bleeding=0;} if(endx