From 023bde0d5ba726016507ce9e63e475a4e2e88a30 Mon Sep 17 00:00:00 2001 From: Tim Angus Date: Fri, 23 Mar 2001 04:09:29 +0000 Subject: Added simple dialog boxes to build errors --- src/game/bg_public.h | 5 ++++- src/game/g_cmds.c | 8 ++++---- 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'src/game') 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; } } -- cgit