- Fixed: SetCamera didn't have the 'action' identifier, nor did it use the actual 'cam' actor provided, rendering it nonfunctional.

This commit is contained in:
Major Cooke 2017-02-08 08:30:00 -06:00 committed by Christoph Oelckers
commit dd102caf13
2 changed files with 6 additions and 6 deletions

View file

@ -6923,18 +6923,18 @@ DEFINE_ACTION_FUNCTION(AActor, SetCamera)
if (self->player == nullptr || self->player->mo != self) return 0;
if (camera == nullptr)
if (cam == nullptr)
{
camera = self;
cam = self;
revert = false;
}
AActor *oldcamera = self->player->camera;
self->player->camera = camera;
self->player->camera = cam;
if (revert) self->player->cheats |= CF_REVERTPLEASE;
if (oldcamera != camera)
if (oldcamera != cam)
{
R_ClearPastViewer(camera);
R_ClearPastViewer(cam);
}
return 0;
}