Skip to content

Commit

Permalink
Instead of showing score of 0 when people have cheated (shame on you!…
Browse files Browse the repository at this point in the history
…) display '(cheated)' to make it more clear.

git-svn-id: https://warzone2100.svn.sourceforge.net/svnroot/warzone2100/branches/2.3@11558 4a71c877-e1ca-e34f-864e-861f7616d084
(cherry picked from commit 7da9390)
  • Loading branch information
buginator committed Oct 19, 2010
1 parent f4c3d7e commit 2bb1a51
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions src/multimenu.c
Expand Up @@ -52,6 +52,7 @@
#include "multiint.h"
#include "multigifts.h"
#include "multijoin.h"
#include "mission.h"
#include "scores.h"
#include "keymap.h"
#include "loop.h"
Expand Down Expand Up @@ -916,7 +917,14 @@ static void displayMultiPlayer(WIDGET *psWidget, UDWORD xOffset, UDWORD yOffset,
if (NetPlay.bComms)
{
//c8:score,
sprintf(str,"%d",getMultiStats(player).recentScore);
if (Cheated)
{
sprintf(str,"(cheated)");
}
else
{
sprintf(str,"%d",getMultiStats(player).recentScore);
}
iV_DrawText(str, x+MULTIMENU_C8, y+MULTIMENU_FONT_OSET);

//c9:kills,
Expand Down Expand Up @@ -980,7 +988,14 @@ static void displayMultiPlayer(WIDGET *psWidget, UDWORD xOffset, UDWORD yOffset,
if (NetPlay.bComms)
{
//c8:score,
sprintf(str,"%d",getMultiStats(player).recentScore);
if (Cheated)
{
sprintf(str,"(cheated)");
}
else
{
sprintf(str,"%d",getMultiStats(player).recentScore);
}
iV_DrawText(str, x+MULTIMENU_C8, y+MULTIMENU_FONT_OSET);

//c9:kills,
Expand Down

0 comments on commit 2bb1a51

Please sign in to comment.