From 146ee1a0552ed026168311daaa57db78084e37b5 Mon Sep 17 00:00:00 2001 From: black Date: Sun, 26 Jun 2005 19:56:39 +0000 Subject: [PATCH 1/1] -"add color code to start of chat message to prevent nick colors from messing up the text color" -updated a few todo items. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@5464 d7cf8633-e32d-0410-b094-e92efae38249 --- cl_screen.h | 2 +- host_cmd.c | 4 ++-- sbar.c | 2 +- todo | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/cl_screen.h b/cl_screen.h index 50530abd..79fb54f1 100644 --- a/cl_screen.h +++ b/cl_screen.h @@ -44,7 +44,7 @@ DRAWFLAG_NUMFLAGS // shared color tag printing constants #define STRING_COLOR_TAG '^' #define STRING_COLOR_DEFAULT 7 -#define STRING_COLOR_DEFAULT_STR "7" +#define STRING_COLOR_DEFAULT_STR "^7" // clear the draw queue void DrawQ_Clear(void); diff --git a/host_cmd.c b/host_cmd.c index 3399b49d..7a533d9b 100644 --- a/host_cmd.c +++ b/host_cmd.c @@ -931,9 +931,9 @@ void Host_Say(qboolean teamonly) p1++; } if (!fromServer) - dpsnprintf (text, sizeof(text), "%c%s: %s", 1, host_client->name, p1); + dpsnprintf (text, sizeof(text), "%c%s" STRING_COLOR_DEFAULT_STR ": %s", 1, host_client->name, p1); else - dpsnprintf (text, sizeof(text), "%c<%s> %s", 1, hostname.string, p1); + dpsnprintf (text, sizeof(text), "%c<%s" STRING_COLOR_DEFAULT_STR "> %s", 1, hostname.string, p1); p2 = text + strlen(text); while ((const char *)p2 > (const char *)text && (p2[-1] == '\r' || p2[-1] == '\n' || (p2[-1] == '\"' && quoted))) { diff --git a/sbar.c b/sbar.c index c43e5ef3..7db9e405 100644 --- a/sbar.c +++ b/sbar.c @@ -1179,7 +1179,7 @@ float Sbar_PrintScoreboardItem(scoreboard_t *s, float x, float y) // print the text //DrawQ_String(x, y, va("%c%4i %s", (s - cl.scores) == cl.playerentity - 1 ? 13 : ' ', (int) s->frags, s->name), 0, 8, 8, 1, 1, 1, 1 * sbar_alpha_fg.value, 0); // FIXME: use a constant for this color tag instead - DrawQ_ColoredString(x, y, va("%c%4i %s^" STRING_COLOR_DEFAULT_STR, (s - cl.scores) == cl.playerentity - 1 ? 13 : ' ', (int) s->frags, s->name), 0, 8, 8, 1, 1, 1, 1 * sbar_alpha_fg.value, 0, NULL ); + DrawQ_ColoredString(x, y, va("%c%4i %s" STRING_COLOR_DEFAULT_STR, (s - cl.scores) == cl.playerentity - 1 ? 13 : ' ', (int) s->frags, s->name), 0, 8, 8, 1, 1, 1, 1 * sbar_alpha_fg.value, 0, NULL ); return 8; } diff --git a/todo b/todo index c1adeea6..0bd31005 100644 --- a/todo +++ b/todo @@ -12,12 +12,15 @@ -d (flum) bug darkplaces client: corona on your own muzzleflash is annoying when looking down because it can be seen, disable corona on all muzzleflashes (flum) -d (mashakos) bug darkplaces input: fix the mouse move when console is raised in glx, probably by ignoring the first move after console raise (mashakos) -d (romi) feature darkplaces editlights: add coronasize setting to rtlights (romi) +-d bug darkplaces client: do replay cl_movement queue each time a move is added, as this is called from the server packet parser, which can overwhelm the client with several packets in one frame, leading to a complete lockup until the level changes (Black) +-d bug darkplaces menuvm: menu input focus is lost if a map command occurs while in menu, even if it fails the menu still lost focus and is unusable until closed and reopened with escape key (Black, Vermeulen) +-d bug darkplaces renderer: text coloring is only affecting the first line of messagemode text (LordHavoc) +-d bug darkplaces server: add color code to start of chat message to prevent nick colors from messing up the text color 0 bug darkplaces WGL client: figure out why GDI input has stuttering problems with gl_finish 0 mode (Kinn, Urre, romi, Spike, Black) 0 bug darkplaces WGL client: fix GDI input init/shutdown, it is using weird mouse acceleration and not restoring it on exit (innovati) 0 bug darkplaces WGL/GLX/SDL client bug: if sound is unavailable (causing a freeze waiting for it to become available), the config is reset (SavageX) 0 bug darkplaces bsd filesystem: read() is failing (not returning the requested amount) on freebsd when reading files, whether actual files or in a pk3 - somehow it is still able to read the pk3 zip directory though (suminigashi, Elric) 0 bug darkplaces capturevideo: cl_capturevideo 1 with sound off is not locking the framerate of a server (Vermeulen) -0 bug darkplaces client: do replay cl_movement queue each time a move is added, as this is called from the server packet parser, which can overwhelm the client with several packets in one frame, leading to a complete lockup until the level changes (Black) 0 bug darkplaces client: lightning beam following owner is not working well with cl_movement mode 0 bug darkplaces client: pain flash seems to be framerate dependent? (Urre) 0 bug darkplaces collisions: curve collisions sometimes catch on the lip of the edge, pushing into the curved back wall around certain jumppads in Nexuiz for example consistently gets stuck just below the ledge (HReaper) @@ -31,7 +34,6 @@ 0 bug darkplaces loader: nexuiz loading a level often loops part of the map's music during loading, this is probably an extra Host_Frame being executed during loading, where it shouldn't be (Vermeulen) 0 bug darkplaces loader: occasional crash due to memory corruption when doing "deathmatch 1;map start" during demo loop (Willis) 0 bug darkplaces makefile: add icon to windows sdl builds (RenegadeC) -0 bug darkplaces menuvm: menu input focus is lost if a map command occurs while in menu, even if it fails the menu still lost focus and is unusable until closed and reopened with escape key (Black, Vermeulen) 0 bug darkplaces particles: cl_particles_quality is affecting lifetime of decals, it should not 0 bug darkplaces physics: corpses/gibs are not riding down e1m1 lift (scar3crow) 0 bug darkplaces physics: figure out why monsters keep making fall pain sound after they've landed in dpmod (Cruaich) @@ -52,11 +54,9 @@ 0 bug darkplaces renderer: make sure that unlit maps show up fullbright (Wazat) 0 bug darkplaces renderer: opaque water (r_wateralpha 1) is not being lit by rtlights (LordHavoc) 0 bug darkplaces renderer: reverse corona traceline direction so that a player in solid can see coronas (Urre) -0 bug darkplaces renderer: text coloring is only affecting the first line of messagemode text (LordHavoc) 0 bug darkplaces renderer: vertex normals seem to be generated backwards (LordHavoc) 0 bug darkplaces server: PF_vectorvectors is broken, given a v_forward from makevectors (not using roll) it does not give the same v_right and v_up vectors (VorteX) 0 bug darkplaces server: add TE_FLAMEJET builtin and add extension (Supajoe) -0 bug darkplaces server: add color code to start of chat message to prevent nick colors from messing up the text color 0 bug darkplaces server: apparently MOVETYPE_WALK on non-players is frequently resetting origin to oldorigin, why does it think it's in solid? (Wazat) 0 bug darkplaces server: figure out what's breaking RenegadeC's TAOV monster jump code (RenegadeC) 0 bug darkplaces server: losing player colors on join (LordHavoc) -- 2.39.2