- Fixed various instances of unused variables, accessing arrays out of bounds, initialization of non-primitive members in constructor's body, dead code, passing parameters by value instead of reference, usage of uninitialized variables, as reported by cppcheck.
This commit is contained in:
parent
8e1b1aa201
commit
322742d4b1
28 changed files with 72 additions and 92 deletions
|
|
@ -367,7 +367,6 @@ static void InitPlayerClasses ()
|
|||
|
||||
void G_InitNew (const char *mapname, bool bTitleLevel)
|
||||
{
|
||||
EGameSpeed oldSpeed;
|
||||
bool wantFast;
|
||||
int i;
|
||||
|
||||
|
|
@ -454,7 +453,6 @@ void G_InitNew (const char *mapname, bool bTitleLevel)
|
|||
I_Error ("Could not find map %s\n", mapname);
|
||||
}
|
||||
|
||||
oldSpeed = GameSpeed;
|
||||
wantFast = !!G_SkillProperty(SKILLP_FastMonsters);
|
||||
GameSpeed = wantFast ? SPEED_Fast : SPEED_Normal;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue