mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2026-01-29 17:38:16 +03:00
Remove i/j/k attributes from classes that don't need them
The only class that actually needs its i/j/k kept is scriptclass, because some custom levels rely on it for creating custom activity zones. So I haven't touched that. Other than that, there's no chance that anything important relies on i/j/k in any other class. For that to be the case, it would have to use i/j/k without initializing it beforehand, and that can simply be detected by removing the attribute from the header file and seeing where the compiler complains. And the compiler complains only about cases where it's initialized first. (Note that due to this check, I *haven't* removed Graphics's `m` as it precisely does exactly this, using it without initializing it first.) Interestingly enough, otherlevelclass and towerclass have unused i/k variables for whatever reason.
This commit is contained in:
@@ -696,7 +696,7 @@ void Game::savecustomlevelstats()
|
||||
|
||||
void Game::updatestate()
|
||||
{
|
||||
int i;
|
||||
int i, j;
|
||||
statedelay--;
|
||||
if(statedelay<=0){
|
||||
statedelay=0;
|
||||
|
||||
Reference in New Issue
Block a user