diff options
author | Tim Angus <tim@ngus.net> | 2002-08-30 15:02:26 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2002-08-30 15:02:26 +0000 |
commit | 4607fb22ec24a848ce111aff87cca2ee202d3e25 (patch) | |
tree | fa0e1609111c56fc2f1c17c3304fad06db5c3c0d /src/cgame/cg_local.h | |
parent | 924e657d2269d345268d0aca4a27c76e61a04617 (diff) |
* Ownerdrawn TA based console :)
Diffstat (limited to 'src/cgame/cg_local.h')
-rw-r--r-- | src/cgame/cg_local.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/cgame/cg_local.h b/src/cgame/cg_local.h index 6324de79..2bd676a2 100644 --- a/src/cgame/cg_local.h +++ b/src/cgame/cg_local.h @@ -506,6 +506,15 @@ typedef struct int numHumanClients; } entityPos_t; +typedef struct +{ + int time; + int length; +} consoleLine_t; + +#define MAX_CONSOLE_TEXT 8192 +#define MAX_CONSOLE_LINES 32 + // all cg.stepTime, cg.duckTime, cg.landTime, etc are set to cg.time when the action // occurs, and they will have visible effects for #define STEP_TIME or whatever msec after @@ -726,6 +735,10 @@ typedef struct { entityPos_t ep; int lastBuildAttempt; + + char consoleText[ MAX_CONSOLE_TEXT ]; + consoleLine_t consoleLines[ MAX_CONSOLE_LINES ]; + int numConsoleLines; } cg_t; @@ -1270,6 +1283,7 @@ extern vmCvar_t cg_debugAlloc; extern vmCvar_t cg_wwSmoothTime; extern vmCvar_t cg_wwFollow; extern vmCvar_t cg_zsortLEs; +extern vmCvar_t cg_consoleLatency; //TA: hack to get class an carriage through to UI module extern vmCvar_t ui_currentClass; |