Changeset 431 for Daodan


Ignore:
Timestamp:
Jul 16, 2009, 9:14:01 AM (15 years ago)
Author:
rossy
Message:

at least it doesnt crash

Location:
Daodan
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • Daodan/src/Daodan_Character.c

    r428 r431  
    1818void CHARTest()
    1919{
    20         CharacterObject TestCHAR;
    21         memset(&TestCHAR, 0, sizeof(CharacterObject));
     20        CharacterObject* TestCHAR = malloc(sizeof(CharacterObject));
     21        memset(TestCHAR, 0, sizeof(CharacterObject));
    2222       
    23         memcpy(TestCHAR.Header.Type, "CHAR", 5);
    24         memcpy(TestCHAR.OSD.Name, "Gumby", 6);
    25         memcpy(TestCHAR.OSD.Class, "muro_generic", 13);
    26         TestCHAR.OSD.TeamID = team_syndicate;
     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;
    2727       
    28         ONrGameState_NewCharacter(&TestCHAR, NULL);
     28        ONrGameState_NewCharacter(TestCHAR, NULL, NULL, NULL);
    2929}
  • Daodan/src/Oni_Character.h

    r428 r431  
    9090};
    9191
    92 int ONICALL ONrGameState_NewCharacter(CharacterObject* character, void* something);
     92int16_t ONICALL ONrGameState_NewCharacter(CharacterObject* character, void* something, void* somethingelse, void* anotherthing);
    9393
    9494#endif
  • Daodan/src/Oni_Symbols.S

    r427 r431  
    4848symbol ( _gl_gamma_ramp_valid                , 0x001603fc )
    4949
    50 // Chars
    51 symbol ( @ONrGameState_NewCharacter@8            , 0x000daC50 )
     50// Character
     51symbol ( @ONrGameState_NewCharacter@16      , 0x000daC50 )
Note: See TracChangeset for help on using the changeset viewer.