Debian Codegraph @

prboom2/src/dsda/hud_components/line_tracker.c

raw
1 //
2 // Copyright(C) 2022 by Ryan Krafnick
3 //
4 // This program is free software; you can redistribute it and/or
5 // modify it under the terms of the GNU General Public License
6 // as published by the Free Software Foundation; either version 2
7 // of the License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
13 //
14 // DESCRIPTION:
15 // DSDA Line Tracker HUD Component
16 //
17
18 #include "base.h"
19
20 #include "line_tracker.h"
21
22 void dsda_LineTrackerHC(char* str, size_t max_size, int id) {
23 snprintf(
24 str,
25 max_size,
26 "%sl %d: %d %d",
27 lines[id].special ? dsda_TextColor(dsda_tc_exhud_line_special) :
28 dsda_TextColor(dsda_tc_exhud_line_normal),
29 id,
30 lines[id].special,
31 lines[id].player_activations
32 );
33 }