Removed lastframe_time because frametime does what I want (I hope).

This commit is contained in:
Finny Merrill 2003-12-01 22:48:14 +00:00
parent 512ce1bc1b
commit cbbb790bb6
3 changed files with 3 additions and 6 deletions

View File

@ -3135,7 +3135,7 @@ void() PlayerPostThink =
}
else
#ifdef WALL_HURT
if (vlen(self.movedir) - vlen(self.velocity) > 5500 * (time - self.lastframe_time))
if (vlen(self.movedir) - vlen(self.velocity) > 5500 * frametime)
{
self.deathtype = "wall";
T_Damage (self, NIL, NIL, ((vlen(self.movedir) - vlen(self.velocity)) - 550) / 10);
@ -3182,8 +3182,6 @@ void() PlayerPostThink =
self.cheat_check = time + 5;
}
self.lastframe_time = time;
};

View File

@ -282,7 +282,6 @@ float deathmatch;
.float search_time; //WK Used for hover boots. :/
.float attack_state; //WK Not usable?
.float lastframe_time;
//
// player only fields

View File

@ -4048,7 +4048,7 @@ void() W_WeaponFrame =
if (!(self.tfstate & TFSTATE_AIMING)) {
if (self.height > 29 && self.height < 90) {
self.height = self.height + 80 * (time - self.lastframe_time);
self.height = self.height + 80 * frametime;
if (self.height > 90)
self.height = 90;
@ -4103,7 +4103,7 @@ void() W_WeaponFrame =
}
if (self.current_weapon == WEAP_AUTO_RIFLE) // BUG BUG BUG! GIVES ADVANTAGE TO HIGH FPSERS
self.heat -= 1000 * (time - self.lastframe_time);
self.heat -= 1000 * frametime;
// check for attack
if (self.button0 && !(self.fire_held_down)) {
if ((self.current_menu == MENU_CLASSHELP) || (self.current_menu == MENU_CLASSHELP2)) {