diff options
author | Tim Angus <tim@ngus.net> | 2001-03-23 04:09:29 +0000 |
---|---|---|
committer | Tim Angus <tim@ngus.net> | 2001-03-23 04:09:29 +0000 |
commit | 023bde0d5ba726016507ce9e63e475a4e2e88a30 (patch) | |
tree | a3c61888f64cd9377c7271dd1714b5c75dc06d9e /src/game | |
parent | 8db4c8343e6ee7a46a387a368e738cd51c4529e5 (diff) |
Added simple dialog boxes to build errors
Diffstat (limited to 'src/game')
-rw-r--r-- | src/game/bg_public.h | 5 | ||||
-rw-r--r-- | src/game/g_cmds.c | 8 |
2 files changed, 8 insertions, 5 deletions
diff --git a/src/game/bg_public.h b/src/game/bg_public.h index dfdf86a3..32a2b14d 100644 --- a/src/game/bg_public.h +++ b/src/game/bg_public.h @@ -518,7 +518,10 @@ typedef enum MN_ABUILD, MN_HBUILD, MN_MCU, - MN_INFEST + MN_INFEST, + MN_NOROOM, + MN_NOCREEP, + MN_REACTOR } dynMenu_t; // animations diff --git a/src/game/g_cmds.c b/src/game/g_cmds.c index 759ac058..7735ee12 100644 --- a/src/game/g_cmds.c +++ b/src/game/g_cmds.c @@ -1925,11 +1925,11 @@ void Cmd_Build_f( gentity_t *ent ) break; case IBE_NOCREEP: - trap_SendServerCommand( ent-g_entities, va("print \"No creep to build on\n\"" ) ); + G_AddPredictableEvent( ent, EV_MENU, MN_NOCREEP ); break; case IBE_NOROOM: - trap_SendServerCommand( ent-g_entities, va("print \"Not enough room\n\"" ) ); + G_AddPredictableEvent( ent, EV_MENU, MN_NOROOM ); break; } } @@ -1951,11 +1951,11 @@ void Cmd_Build_f( gentity_t *ent ) break; case IBE_REACTOR: - trap_SendServerCommand( ent-g_entities, va("print \"Only one reactor per map\n\"" ) ); + G_AddPredictableEvent( ent, EV_MENU, MN_REACTOR ); break; case IBE_NOROOM: - trap_SendServerCommand( ent-g_entities, va("print \"Not enough room\n\"" ) ); + G_AddPredictableEvent( ent, EV_MENU, MN_NOROOM ); break; } } |