mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 20:31:30 +00:00
COM_LOCAL makes your commands NetXCmd free, FUCK NetXCmd
This commit is contained in:
parent
bb97e0805e
commit
933ee4e961
3 changed files with 3 additions and 1 deletions
|
@ -25,6 +25,7 @@ enum
|
||||||
{
|
{
|
||||||
COM_ADMIN = 1,
|
COM_ADMIN = 1,
|
||||||
COM_SPLITSCREEN = 2,
|
COM_SPLITSCREEN = 2,
|
||||||
|
COM_LOCAL = 4,
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef void (*com_func_t)(void);
|
typedef void (*com_func_t)(void);
|
||||||
|
|
|
@ -8688,6 +8688,7 @@ struct {
|
||||||
// Lua command registration flags
|
// Lua command registration flags
|
||||||
{"COM_ADMIN",COM_ADMIN},
|
{"COM_ADMIN",COM_ADMIN},
|
||||||
{"COM_SPLITSCREEN",COM_SPLITSCREEN},
|
{"COM_SPLITSCREEN",COM_SPLITSCREEN},
|
||||||
|
{"COM_LOCAL",COM_LOCAL},
|
||||||
|
|
||||||
// cvflags_t
|
// cvflags_t
|
||||||
{"CV_SAVE",CV_SAVE},
|
{"CV_SAVE",CV_SAVE},
|
||||||
|
|
|
@ -128,7 +128,7 @@ void COM_Lua_f(void)
|
||||||
playernum = displayplayers[1];
|
playernum = displayplayers[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (netgame)
|
if (netgame && !( flags & COM_LOCAL ))/* don't send local commands */
|
||||||
{ // Send the command through the network
|
{ // Send the command through the network
|
||||||
UINT8 argc;
|
UINT8 argc;
|
||||||
lua_pop(gL, 1); // pop command info table
|
lua_pop(gL, 1); // pop command info table
|
||||||
|
|
Loading…
Reference in a new issue