Changeset 1555


Ignore:
Timestamp:
Jul 2, 2012, 1:05:31 AM (8 years ago)
Author:
sam
Message:

toukydemo: use std::sprintf to fix the PS3 build.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/games/ToukyDemo/Character.h

    r1554 r1555  
    1111#if !defined __CHARACTER_H__
    1212#define __CHARACTER_H__
     13
     14#include <cstdio>
    1315
    1416enum body_parts
     
    171173                        char NewMesh[200];
    172174                        EasyMesh TmpMesh;
    173                         sprintf(NewMesh, "[sc#ddd afcb%.3f %.3f %.3f -%.3f t%.3f %.3f %.3f]", MeshSize[i].x, MeshSize[i].y, MeshSize[i].z, MeshSize[i].w, MeshOffset[i].x, MeshOffset[i].y, MeshOffset[i].z);
     175                        std::sprintf(NewMesh, "[sc#ddd afcb%.3f %.3f %.3f -%.3f t%.3f %.3f %.3f]", MeshSize[i].x, MeshSize[i].y, MeshSize[i].z, MeshSize[i].w, MeshOffset[i].x, MeshOffset[i].y, MeshOffset[i].z);
    174176                        TmpMesh.Compile(NewMesh);
    175177                        m_body_parts << TmpMesh;
Note: See TracChangeset for help on using the changeset viewer.