mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-10-04 09:08:30 +00:00
Merge pull request #284 from sblondon/remove-unused-variables
clean: remove unused variables
This commit is contained in:
@@ -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;
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
|
@@ -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;
|
||||||
|
Reference in New Issue
Block a user