Remove u{char,short,int}
FossilOrigin-Name: b5bfe2af86efc76d1ac600bf7cda4a1709aaa95ae2392ee9e3f98ce6d4b14bcf
This commit is contained in:
parent
006dba8370
commit
3a7e871e0e
20 changed files with 109 additions and 100 deletions
|
@ -14,7 +14,7 @@ struct md2_header {
|
|||
};
|
||||
|
||||
struct md2_vertex {
|
||||
uchar vertex[3], lightNormalIndex;
|
||||
unsigned char vertex[3], lightNormalIndex;
|
||||
};
|
||||
|
||||
struct md2_frame {
|
||||
|
@ -128,7 +128,7 @@ snap(int sn, float f)
|
|||
(struct md2_frame *)((char *)_frames + _frameSize * frame);
|
||||
float sc = 16.0f / scale;
|
||||
for (int vi = 0; vi < _numVerts; vi++) {
|
||||
uchar *cv = (uchar *)&cf->vertices[vi].vertex;
|
||||
unsigned char *cv = (unsigned char *)&cf->vertices[vi].vertex;
|
||||
OFVector3D *v = &(_mverts[frame])[vi];
|
||||
v->x = (snap(sn, cv[0] * cf->scale[0]) + cf->translate[0]) / sc;
|
||||
v->y =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue