- 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:
parent
c77f6636f8
commit
dd102caf13
2 changed files with 6 additions and 6 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue