mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00:46 +00:00
C-CON: Remove the restriction that prevents userdef access when the current player is not myconnectindex.
git-svn-id: https://svn.eduke32.com/eduke32@5091 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
bd0f05a706
commit
91a7a3aa00
1 changed files with 0 additions and 6 deletions
|
@ -50,9 +50,6 @@ void __fastcall VM_SetProjectile(register int32_t const iTile, register int32_t
|
||||||
#else
|
#else
|
||||||
int32_t __fastcall VM_GetUserdef(register int32_t lLabelID)
|
int32_t __fastcall VM_GetUserdef(register int32_t lLabelID)
|
||||||
{
|
{
|
||||||
if (EDUKE32_PREDICT_FALSE(vm.g_p != myconnectindex))
|
|
||||||
return -1;
|
|
||||||
|
|
||||||
switch (lLabelID)
|
switch (lLabelID)
|
||||||
{
|
{
|
||||||
case USERDEFS_GOD: lLabelID = ud.god; break;
|
case USERDEFS_GOD: lLabelID = ud.god; break;
|
||||||
|
@ -177,9 +174,6 @@ int32_t __fastcall VM_GetUserdef(register int32_t lLabelID)
|
||||||
|
|
||||||
void __fastcall VM_SetUserdef(register int32_t const lLabelID, register int32_t const iSet)
|
void __fastcall VM_SetUserdef(register int32_t const lLabelID, register int32_t const iSet)
|
||||||
{
|
{
|
||||||
if (EDUKE32_PREDICT_FALSE(vm.g_p != myconnectindex))
|
|
||||||
return;
|
|
||||||
|
|
||||||
switch (lLabelID)
|
switch (lLabelID)
|
||||||
{
|
{
|
||||||
case USERDEFS_GOD: ud.god = iSet; break;
|
case USERDEFS_GOD: ud.god = iSet; break;
|
||||||
|
|
Loading…
Reference in a new issue