Changeset 433
- Timestamp:
- Jul 16, 2009, 10:49:30 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Daodan/src/Daodan_Character.c
r432 r433 18 18 void CHARTest() 19 19 { 20 CharacterObject TestCHAR;21 memset( &TestCHAR, 0, sizeof(CharacterObject));20 CharacterObject* TestCHAR = malloc(sizeof(CharacterObject)); 21 memset(TestCHAR, 0, sizeof(CharacterObject)); 22 22 23 memcpy(TestCHAR.Header.Type, "CHAR", 4); 24 memcpy(TestCHAR.OSD.Name, "Gumby", 6); 25 memcpy(TestCHAR.OSD.Class, "muro_generic", 13); 26 TestCHAR.OSD.TeamID = team_syndicate; 23 int type = 0x43484152; 24 TestCHAR->Header.Type = type; 25 memcpy(TestCHAR->OSD.Name, "Gumby", 6); 26 memcpy(TestCHAR->OSD.Class, "muro_generic", 13); 27 TestCHAR->OSD.TeamID = team_syndicate; 27 28 28 //ONrGameState_NewCharacter(&TestCHAR, NULL); 29 30 ONrGameState_NewCharacter(TestCHAR, NULL, NULL, NULL); 29 31 }
Note:
See TracChangeset
for help on using the changeset viewer.