summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/bg_public.h5
-rw-r--r--src/game/g_cmds.c8
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;
}
}