if(Game->Counter[CR_POINTS]>=nextLifeScore) { Game->Counter[CR_LIVES]++; nextLifeScore=getNextLifeScore(nextLifeScore); } int getNextLifeScore(int current) { if(current<5000) return current+1000; else return current+5000; }