Skip to content

Commit

Permalink
Fix player view setup
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyPtn committed Oct 19, 2024
1 parent 1af9799 commit dda81a9
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
1 change: 0 additions & 1 deletion linuxdoom-1.10/g_game.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,6 @@ void G_DoWorldDone(void) {
// G_InitFromSavegame
// Can be called by the startup code or the menu task.
//
extern bool setsizeneeded;

std::string savename;

Expand Down
2 changes: 1 addition & 1 deletion linuxdoom-1.10/r_data.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ void R_InitTextures(void) {
}

// Create translation table for global animation.
texturetranslation = static_cast<int *>(malloc((numtextures + 1) * 4));
texturetranslation.resize(numtextures);

for (i = 0; i < numtextures; i++)
texturetranslation[i] = i;
Expand Down
2 changes: 1 addition & 1 deletion linuxdoom-1.10/r_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

#include <string>

static inline int *texturetranslation;
inline std::vector<int> texturetranslation;

// Retrieve column data for span blitting.
std::byte *R_GetColumn(int tex, int col);
Expand Down
2 changes: 1 addition & 1 deletion linuxdoom-1.10/r_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ import net;
import sky;
import setup;
import tables;
import main;

// Fineangles in the SCREENWIDTH wide window.
#define FIELDOFVIEW 2048
Expand Down Expand Up @@ -542,7 +543,6 @@ void R_InitLightTables(void) {
// because it might be in the middle of a refresh.
// The change will take effect next refresh.
//
bool setsizeneeded;
int setblocks;
int setdetail;

Expand Down
2 changes: 1 addition & 1 deletion src/main.ixx
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ void D_PageDrawer(void) {

// wipegamestate can be set to -1 to force a wipe on the next draw
export gamestate_t wipegamestate = GS_DEMOSCREEN;
bool setsizeneeded;
export bool setsizeneeded;

void D_Display(void) {
static bool viewactivestate = false;
Expand Down

0 comments on commit dda81a9

Please sign in to comment.