summaryrefslogtreecommitdiff
path: root/src/game/g_cmds.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/game/g_cmds.c')
-rw-r--r--src/game/g_cmds.c8
1 files changed, 4 insertions, 4 deletions
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;
}
}