From 6515c0e5cd206c97a3a5ba10148e66abbe500b72 Mon Sep 17 00:00:00 2001 From: Eukara Date: Mon, 28 Mar 2022 10:31:07 +0000 Subject: [PATCH] Fix screenshot_cubemap command. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@6222 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/api_menu.h | 2 +- engine/client/cl_screen.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/engine/client/api_menu.h b/engine/client/api_menu.h index 209859e00..ae7c11400 100644 --- a/engine/client/api_menu.h +++ b/engine/client/api_menu.h @@ -1,6 +1,6 @@ /* * Copyright (c) 2015-2018 - * Marco Hladik All rights reserved. + * Marco Cawthorne All rights reserved. * * This is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/engine/client/cl_screen.c b/engine/client/cl_screen.c index 3afa9955d..6959fe54d 100644 --- a/engine/client/cl_screen.c +++ b/engine/client/cl_screen.c @@ -2907,8 +2907,8 @@ void SCR_ScreenShot_Cubemap_f(void) bb=0; for (i = 0; i < 6; i++) { - VectorCopy(sides[i].angle, cl.playerview->simangles); - VectorCopy(cl.playerview->simangles, cl.playerview->viewangles); + VectorCopy(sides[i].angle, cl.playerview->aimangles); + VectorCopy(cl.playerview->aimangles, cl.playerview->viewangles); //don't use hdr when saving dds files. it generally means dx10 dds files and most tools suck too much and then I get blamed for writing 'corrupt' dds files. facedata = SCR_ScreenShot_Capture(fbwidth, fbheight, &stride, &fmt, true, !!strcmp(ext, ".dds")); @@ -2992,8 +2992,8 @@ void SCR_ScreenShot_Cubemap_f(void) { for (i = firstside; i < firstside+6; i++) { - VectorCopy(sides[i].angle, cl.playerview->simangles); - VectorCopy(cl.playerview->simangles, cl.playerview->viewangles); + VectorCopy(sides[i].angle, cl.playerview->aimangles); + VectorCopy(cl.playerview->aimangles, cl.playerview->viewangles); buffer = SCR_ScreenShot_Capture(fbwidth, fbheight, &stride, &fmt, true, false); if (buffer)