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

@ -2,7 +2,7 @@
#include "cube.h"
#import "DynamicEntity.h"
#import "Player.h"
#define MAXPARTICLES 10500
const int NUMPARTCUTOFF = 20;
@ -56,8 +56,8 @@ void
render_particles(int time)
{
if (demoplayback && demotracking)
newparticle(
player1.origin, OFMakeVector3D(0, 0, 0), 100000000, 8);
newparticle(Player.player1.origin, OFMakeVector3D(0, 0, 0),
100000000, 8);
glDepthMask(GL_FALSE);
glEnable(GL_BLEND);