- removed some references to r_viewpoint in game code
Mainly to reduce number of search results.
This commit is contained in:
parent
86975a71e8
commit
548ccb1df4
6 changed files with 32 additions and 26 deletions
|
|
@ -2123,13 +2123,14 @@ void AM_drawSubsectors()
|
|||
double secx;
|
||||
double secy;
|
||||
double seczb, seczt;
|
||||
double cmpz = r_viewpoint.Pos.Z;
|
||||
auto &vp = r_viewpoint;
|
||||
double cmpz = vp.Pos.Z;
|
||||
|
||||
if (players[consoleplayer].camera && sec == players[consoleplayer].camera->Sector)
|
||||
{
|
||||
// For the actual camera sector use the current viewpoint as reference.
|
||||
secx = r_viewpoint.Pos.X;
|
||||
secy = r_viewpoint.Pos.Y;
|
||||
secx = vp.Pos.X;
|
||||
secy = vp.Pos.Y;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue