View Single Post
MasterMind420
BANNED
Join Date: Nov 2010
Old 08-30-2017 , 13:57   Re: [L4D/L4D2] Pistol Reloading
Reply With Quote #24

Quote:
Originally Posted by xQd View Post
The problem is from OnGameFrame() function, where iFrameskip will always will be 1 because on each frame iFrameskip has the 0 value assigned to it. iFrameskip should be a global.
don't make a global, just change

int iFrameskip = 0;

to

static int iFrameskip = 0;

good catch though, not sure why i didn't make it static to begin with...
MasterMind420 is offline