cleanup
- fix possible crash in conc (but it's still an ugly hack) - fix noob usage of strcmp - flag some memory leaks (it would be nice, if the author(s) would clean up the mess himself) - fix crash in substr - whitespace cleanup there are plenty more memory leaks in command.cpp - for example, every goto in cubescript does not clean up anything
This commit is contained in:
@@ -323,7 +323,7 @@ void renderscores(void *menu, bool init)
|
||||
winner = m_flags ?
|
||||
(teamscores[sort].flagscore > teamscores[team_opposite(sort)].flagscore ? sort : -1) :
|
||||
(teamscores[sort].frags > teamscores[team_opposite(sort)].frags ? sort : -1);
|
||||
|
||||
|
||||
}
|
||||
else
|
||||
{ // ffa mode
|
||||
@@ -361,7 +361,7 @@ void renderscores(void *menu, bool init)
|
||||
if(!minutesremaining)
|
||||
{
|
||||
concatstring(modeline, ", intermission");
|
||||
|
||||
|
||||
if (m_teammode) // Add in the winning team
|
||||
{
|
||||
switch(winner)
|
||||
|
||||
Reference in New Issue
Block a user