Merge pull request #284 from sblondon/remove-unused-variables

clean: remove unused variables
This commit is contained in:
Wouter Wijsman
2025-05-07 09:02:13 +02:00
committed by GitHub
3 changed files with 2 additions and 8 deletions

View File

@@ -223,7 +223,6 @@ int main(int argc, char* argv[]) {
pspDebugScreenInit(); pspDebugScreenInit();
unsigned int old = 0; unsigned int old = 0;
unsigned int flags = PSP_CTRL_CIRCLE | PSP_CTRL_CROSS;
int tex = 1; int tex = 1;

View File

@@ -268,12 +268,10 @@ void genSkinnedMonsterCylinder( unsigned slices, unsigned rows, float length, fl
struct MorphVertex* curr = &dstMorphVertices[i+j*rows]; struct MorphVertex* curr = &dstMorphVertices[i+j*rows];
float s = i + 0.5f; float s = i + 0.5f;
float t = j; float t = j;
float cs,ct,ss,st; float ct,st;
float d0, d1, combinedDeform; float d0, d1, combinedDeform;
cs = cosf(s * (2*GU_PI)/slices);
ct = cosf(t * (2*GU_PI)/rows); ct = cosf(t * (2*GU_PI)/rows);
ss = sinf(s * (2*GU_PI)/slices);
st = sinf(t * (2*GU_PI)/rows); st = sinf(t * (2*GU_PI)/rows);
curr->v[0].nx = 0; curr->v[0].nx = 0;

View File

@@ -249,13 +249,10 @@ void genSkinnedCylinder( unsigned slices, unsigned rows, float length, float rad
for (i = 0; i < rows; ++i) for (i = 0; i < rows; ++i)
{ {
struct Vertex* curr = &dstVertices[i+j*rows]; struct Vertex* curr = &dstVertices[i+j*rows];
float s = i + 0.5f;
float t = j; float t = j;
float cs,ct,ss,st; float ct,st;
cs = cosf(s * (2*GU_PI)/slices);
ct = cosf(t * (2*GU_PI)/rows); ct = cosf(t * (2*GU_PI)/rows);
ss = sinf(s * (2*GU_PI)/slices);
st = sinf(t * (2*GU_PI)/rows); st = sinf(t * (2*GU_PI)/rows);
curr->nx = 0; curr->nx = 0;