Changeset 432


Ignore:
Timestamp:
Jul 16, 2009, 10:49:08 AM (12 years ago)
Author:
gumby
Message:
 
Location:
Daodan/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Daodan/src/Daodan_Character.c

    r431 r432  
    1818void CHARTest()
    1919{
    20         CharacterObject* TestCHAR = malloc(sizeof(CharacterObject));
    21         memset(TestCHAR, 0, sizeof(CharacterObject));
     20        CharacterObject TestCHAR;
     21        memset(&TestCHAR, 0, sizeof(CharacterObject));
    2222       
    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        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, NULL, NULL);
     28        //ONrGameState_NewCharacter(&TestCHAR, NULL);
    2929}
  • Daodan/src/Oni_Character.h

    r431 r432  
    1313
    1414typedef struct {
    15         char Type[4];                   //"CHAR" etc.
     15        int Type;                               //'CHAR' etc.
    1616        int ObjectId;                   //not needed
    1717        int Flags;                              //The flags of the object...not used for CHAR
     
    4848        int16_t NCIUsed;                                //Don't use this...
    4949        int16_t NCIDropped;                             //Don't use this...
    50        
    5150        int32_t TeamID;                                 //Team ID
    5251        int32_t AmmoPercent;                    //Percent of weapon ammo full
     
    9089};
    9190
    92 int16_t ONICALL ONrGameState_NewCharacter(CharacterObject* character, void* something, void* somethingelse, void* anotherthing);
     91int16_t ONICALL ONrGameState_NewCharacter(CharacterObject* CHAR, void* AISA, void* flag, int* list_location);
    9392
    9493#endif
Note: See TracChangeset for help on using the changeset viewer.