mirror of
https://github.com/ZDoom/qzdoom.git
synced 2024-11-25 05:21:02 +00:00
- added missing validation to SetCameraToTexture ZScript function.
This commit is contained in:
parent
fcc33f0a09
commit
927b351174
1 changed files with 2 additions and 1 deletions
|
@ -1058,7 +1058,8 @@ DEFINE_ACTION_FUNCTION(_TexMan, SetCameraToTexture)
|
|||
PARAM_STRING(texturename); // [ZZ] there is no point in having this as FTextureID because it's easier to refer to a cameratexture by name and it isn't executed too often to cache it.
|
||||
PARAM_FLOAT(fov);
|
||||
FTextureID textureid = TexMan.CheckForTexture(texturename, ETextureType::Wall, FTextureManager::TEXMAN_Overridable);
|
||||
FCanvasTextureInfo::Add(viewpoint, textureid, fov);
|
||||
if (textureid.isValid())
|
||||
FCanvasTextureInfo::Add(viewpoint, textureid, fov);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue