tHigh scores can now be displayed in single-player games - not just multiplayer ones. - vaccinewars - be a doctor and try to vaccinate the world
(HTM) git clone git://src.adamsgaard.dk/vaccinewars
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 68d9dbffc47e2b771867806be3fcecd807fafbb4
(DIR) parent b3b31aa753dea7d5beb7d3369af2a4fd57ec730b
(HTM) Author: Ben Webb <ben@salilab.org>
Date: Thu, 1 Aug 2002 14:22:03 +0000
High scores can now be displayed in single-player games - not just
multiplayer ones.
Diffstat:
M src/curses_client/curses_client.c | 24 +++++++++++++++---------
1 file changed, 15 insertions(+), 9 deletions(-)
---
(DIR) diff --git a/src/curses_client/curses_client.c b/src/curses_client/curses_client.c
t@@ -2154,7 +2154,8 @@ static void Curses_DoGame(Player *Play)
if (HaveWorthless && !WantAntique)
g_string_append(text, _(", D>rop"));
if (Network)
- g_string_append(text, _(", T>alk, P>age, L>ist"));
+ g_string_append(text, _(", T>alk, P>age"));
+ g_string_append(text, _(", L>ist"));
if (!WantAntique && (Play->Bitches.Carried > 0 ||
Play->Flags & SPYINGON)) {
g_string_append(text, _(", G>ive"));
t@@ -2309,14 +2310,19 @@ static void Curses_DoGame(Player *Play)
clear_bottom();
SendClientMessage(Play, C_NONE, C_WANTQUIT, NULL, NULL);
}
- } else if (c == 'L' && Network) {
- attrset(PromptAttr);
- mvaddstr(23, 20, _("List what? P>layers or S>cores? "));
- /* P>layers, S>cores */
- i = GetKey(_("PS"), "PS", TRUE, FALSE, FALSE);
- if (i == 'P') {
- ListPlayers(Play, FALSE, NULL);
- } else if (i == 'S') {
+ } else if (c == 'L') {
+ if (Network) {
+ attrset(PromptAttr);
+ mvaddstr(23, 20, _("List what? P>layers or S>cores? "));
+ /* P>layers, S>cores */
+ i = GetKey(_("PS"), "PS", TRUE, FALSE, FALSE);
+ if (i == 'P') {
+ ListPlayers(Play, FALSE, NULL);
+ } else if (i == 'S') {
+ DisplayMode = DM_NONE;
+ SendClientMessage(Play, C_NONE, C_REQUESTSCORE, NULL, NULL);
+ }
+ } else {
DisplayMode = DM_NONE;
SendClientMessage(Play, C_NONE, C_REQUESTSCORE, NULL, NULL);
}