- removed the 'caller' parameter from the CCMD dispatcher.
This can never be anything but players[consoleplayer].mo, so there is no need to pass it through the interface.
This commit is contained in:
parent
603ad755ab
commit
d63a6baa5d
5 changed files with 34 additions and 34 deletions
|
|
@ -354,14 +354,13 @@ CCMD (hxvisit)
|
|||
|
||||
CCMD (changemap)
|
||||
{
|
||||
if (who == NULL || !usergame)
|
||||
if (!players[consoleplayer].mo || !usergame)
|
||||
{
|
||||
Printf ("Use the map command when not in a game.\n");
|
||||
return;
|
||||
}
|
||||
|
||||
AActor* user = (AActor*)who;
|
||||
if (!players[user->player - players].settings_controller && netgame)
|
||||
if (!players[consoleplayer].settings_controller && netgame)
|
||||
{
|
||||
Printf ("Only setting controllers can change the map.\n");
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue