Convert player into a class

FossilOrigin-Name: 5b7b7d2fc5af4d512db195c4fbfb2aff01436db9bc1345d62263609ac129aa02
This commit is contained in:
Jonathan Schleifer 2025-03-24 22:14:24 +00:00
parent 4596a656dc
commit 5835957d74
25 changed files with 211 additions and 166 deletions

View file

@ -3,8 +3,8 @@
#include "cube.h"
#import "Command.h"
#import "DynamicEntity.h"
#import "Entity.h"
#import "Player.h"
void
line(int x1, int y1, float z1, int x2, int y2, float z2)
@ -327,6 +327,8 @@ VARP(crosshairfx, 0, 1, 1);
void
gl_drawhud(int w, int h, int curfps, int nquads, int curvert, bool underwater)
{
Player *player1 = Player.player1;
readmatrices();
if (editmode) {
if (cursordepth == 1.0f)