- 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:
Christoph Oelckers 2020-04-11 18:02:27 +02:00
commit d63a6baa5d
5 changed files with 34 additions and 34 deletions

View file

@ -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;