Commit Graph

8 Commits

Author SHA1 Message Date
Kevin Shanahan
8e1cb8076d sbar: constify qpic_t usage
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-22 16:26:09 +10:30
Kevin Shanahan
725e244599 sbar: constify Sbar_DrawString and make static
Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-22 14:57:18 +10:30
Kevin Shanahan
d94d220399 client: store topcolor and bottomcolor separately in NQ player_info struct
Simplifies access to the player colors later. Update the sbar usage of
colors to be consistent between NQ/QW as well.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-12-06 06:10:32 +10:30
Kevin Shanahan
fe81ad30b9 sbar: copy qw check for negative sb_weapons array index to nq
Use the qmax macro to clamp the negative values in both cases.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-11-27 12:01:26 +10:30
Kevin Shanahan
91aff4e2fe client: nq: rename scoreboard_t and cl.scores
Purely renames - rename scoreboard_t to player_info_t (as it is the less
sophisticated equivalent of the same thing in QW) and rename cl.scores to
cl.players.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-11-25 18:52:05 +10:30
Kevin Shanahan
bea77b4b38 nq: Store item info within stats in client state
Make NQ store the item status within the stats array in the client state,
consistent with QW.

Signed-off-by: Kevin Shanahan <kmshanah@disenchant.net>
2012-10-21 15:22:32 +10:30
Tyrann
05fdf8ca3c Remove some unneeded variables
clang pointed out a number of "unused" variables. These are "used" in
the sense that we do assign things to them, but the results are never
looked at.

As far as I can tell, all the cases included in this commit don't
point to any subtle bugs and should be safe to remove.
2011-12-28 11:51:25 +10:00
Tyrann
130e22195a Import v0.47 sources 2006-09-10 19:02:51 +09:30