Changeset 878 for Daodan/src/flatline


Ignore:
Timestamp:
Jun 2, 2013, 1:58:39 PM (11 years ago)
Author:
alloc
Message:

Daodan: Flatline fix

Location:
Daodan/src/flatline
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • Daodan/src/flatline/Flatline.c

    r877 r878  
    1515
    1616uint32_t last1 = 0; uint32_t last2 = 0;
    17 player_info Players[MAX_PLAYERS] = {{0}, {0}, {0}, {0}};
     17player_info Players[MAX_PLAYERS];
    1818player_info * PlayerList[MAX_CONNECTIONS] = {0};
    1919multiplayer_status MultiplayerStatus;
     
    3333
    3434
    35 short TRrAnimation_GetType(char* anim)
     35short TRrAnimation_GetType(const void* anim)
    3636{
    3737        return *(short*)(anim + 0x15A);
     
    4242{
    4343        ONCC            *ONCC   = Char->ONCC;
    44         void            *TRAC   = ONCC->TRAC;
     44        void            *TRAC   = (void*)ONCC->TRAC;
    4545        short   index = Char->Number;
    4646        short animType;
  • Daodan/src/flatline/Flatline_BSL.c

    r877 r878  
    211211}
    212212
    213 uint16_t tele(sl_callinfo* callinfo, uint32_t numargs, sl_arg args[], int* dontuse1, int* dontuse2, sl_arg* ret)
     213uint16_t ONICALL tele(sl_callinfo* callinfo, uint32_t numargs, sl_arg args[], int* dontuse1, int* dontuse2, sl_arg* ret)
    214214{
    215215        ActiveCharacter *AC = ONrGetActiveCharacter(ONgGameState->PlayerCharacter);
  • Daodan/src/flatline/Flatline_Hooks.c

    r877 r878  
    44
    55//Don't modify this.
    6 char * FLrHook_DoorOpen( DoorObject *Door, Character *Char)
     6char* ONICALL FLrHook_DoorOpen( DoorObject *Door, Character *Char)
    77{
    88        int crashStop;         
     
    2222        return (char*)(Door->Door.class);
    2323}
    24 short FLrHook_ConsoleActivate( void *inObject, Character *inCharacter )
     24short ONICALL FLrHook_ConsoleActivate( void *inObject, Character *inCharacter )
    2525{
    2626        if(server_started)
     
    5454*/
    5555
    56 void FLrHook_Lasers( Character* Char )
     56void ONICALL FLrHook_Lasers( Character* Char )
    5757{
    5858        ONiDrawWeaponSight( Char );
  • Daodan/src/flatline/Flatline_Hooks.h

    r877 r878  
    33
    44#include "../Oni.h"
    5 char * FLrHook_DoorOpen( DoorObject *Door, Character *Char);
    6 short FLrHook_ConsoleActivate( void *inObject, Character *inCharacter );
    7 void FLrHook_Lasers( Character* PlayerChar );
     5char* ONICALL FLrHook_DoorOpen( DoorObject *Door, Character *Char);
     6short ONICALL FLrHook_ConsoleActivate( void *inObject, Character *inCharacter );
     7void ONICALL FLrHook_Lasers( Character* PlayerChar );
    88
    99#endif
Note: See TracChangeset for help on using the changeset viewer.