This is a fork of Zandronum for TSPG.
Revisão | aee60744466308e2120fe2e762cd5ca0e0c530b9 (tree) |
---|---|
Hora | 2017-03-13 03:29:47 |
Autor | Benjamin Berkels <torr.samaho@quan...> |
Commiter | Benjamin Berkels |
Fixed: In DECORATE, ACS_NamedExecuteWithResult, ACS_NamedExecute, ACS_NamedExecuteAlways, ACS_NamedLockedExecute and ACS_NamedLockedExecuteDoor executed the script on client and server instead of only on the server (addresses 3012).
@@ -5549,6 +5549,10 @@ | ||
5549 | 5549 | ACTION_PARAM_INT(arg3, 3); |
5550 | 5550 | ACTION_PARAM_INT(arg4, 4); |
5551 | 5551 | |
5552 | + // [BB] This is handled server-side. | |
5553 | + if ( NETWORK_InClientModeAndActorNotClientHandled( self ) ) | |
5554 | + return; | |
5555 | + | |
5552 | 5556 | bool res = !!P_ExecuteSpecial(ACS_ExecuteWithResult, NULL, self, false, -scriptname, arg1, arg2, arg3, arg4); |
5553 | 5557 | |
5554 | 5558 | ACTION_SET_RESULT(res); |
@@ -5564,6 +5568,10 @@ | ||
5564 | 5568 | ACTION_PARAM_INT(arg2, 3); |
5565 | 5569 | ACTION_PARAM_INT(arg3, 4); |
5566 | 5570 | |
5571 | + // [BB] This is handled server-side. | |
5572 | + if ( NETWORK_InClientModeAndActorNotClientHandled( self ) ) | |
5573 | + return; | |
5574 | + | |
5567 | 5575 | bool res = !!P_ExecuteSpecial(ACS_Execute, NULL, self, false, -scriptname, mapnum, arg1, arg2, arg3); |
5568 | 5576 | |
5569 | 5577 | ACTION_SET_RESULT(res); |
@@ -5579,6 +5587,10 @@ | ||
5579 | 5587 | ACTION_PARAM_INT(arg2, 3); |
5580 | 5588 | ACTION_PARAM_INT(arg3, 4); |
5581 | 5589 | |
5590 | + // [BB] This is handled server-side. | |
5591 | + if ( NETWORK_InClientModeAndActorNotClientHandled( self ) ) | |
5592 | + return; | |
5593 | + | |
5582 | 5594 | bool res = !!P_ExecuteSpecial(ACS_ExecuteAlways, NULL, self, false, -scriptname, mapnum, arg1, arg2, arg3); |
5583 | 5595 | |
5584 | 5596 | ACTION_SET_RESULT(res); |
@@ -5594,6 +5606,10 @@ | ||
5594 | 5606 | ACTION_PARAM_INT(arg2, 3); |
5595 | 5607 | ACTION_PARAM_INT(lock, 4); |
5596 | 5608 | |
5609 | + // [BB] This is handled server-side. | |
5610 | + if ( NETWORK_InClientModeAndActorNotClientHandled( self ) ) | |
5611 | + return; | |
5612 | + | |
5597 | 5613 | bool res = !!P_ExecuteSpecial(ACS_LockedExecute, NULL, self, false, -scriptname, mapnum, arg1, arg2, lock); |
5598 | 5614 | |
5599 | 5615 | ACTION_SET_RESULT(res); |
@@ -5609,6 +5625,10 @@ | ||
5609 | 5625 | ACTION_PARAM_INT(arg2, 3); |
5610 | 5626 | ACTION_PARAM_INT(lock, 4); |
5611 | 5627 | |
5628 | + // [BB] This is handled server-side. | |
5629 | + if ( NETWORK_InClientModeAndActorNotClientHandled( self ) ) | |
5630 | + return; | |
5631 | + | |
5612 | 5632 | bool res = !!P_ExecuteSpecial(ACS_LockedExecuteDoor, NULL, self, false, -scriptname, mapnum, arg1, arg2, lock); |
5613 | 5633 | |
5614 | 5634 | ACTION_SET_RESULT(res); |