Skip to content

Commit

Permalink
Fixed floorclip 64 limit
Browse files Browse the repository at this point in the history
  • Loading branch information
skyjake committed Jun 13, 2003
1 parent 078995d commit a8b9ae6
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
1 change: 1 addition & 0 deletions doomsday/Include/sv_def.h
Expand Up @@ -20,6 +20,7 @@ extern int net_remoteuser; // The client who is currently logged in.
extern char *net_password; // Remote login password.

// sv_main.c
void Sv_Shutdown(void);
void Sv_StartNetGame();
boolean Sv_PlayerArrives(unsigned int nodeID, char *name);
void Sv_PlayerLeaves(unsigned int nodeID);
Expand Down
4 changes: 3 additions & 1 deletion doomsday/Include/sv_pool.h
Expand Up @@ -25,7 +25,7 @@ typedef enum
#define MDF_MOM_Z 0x0020
#define MDF_MOM 0x0038
#define MDF_ANGLE 0x0040
//#define MDF_TICS 0x0080
#define MDF_LONG_FLOORCLIP 0x0080
//#define MDF_SPRITE 0x0100
#define MDF_SELSPEC 0x0200 // Only during transfer.
#define MDF_SELECTOR 0x0400
Expand Down Expand Up @@ -196,4 +196,6 @@ extern int net_maxsecupd;

extern pool_t pools[];

void Sv_ShutdownPools(void);

#endif
8 changes: 7 additions & 1 deletion doomsday/Src/cl_mobj.c
Expand Up @@ -304,7 +304,13 @@ int Cl_ReadMobjDelta(void)
// Radius, height and floorclip are all bytes.
if(df & MDF_RADIUS) d->radius = Msg_ReadByte() << FRACBITS;
if(df & MDF_HEIGHT) d->height = Msg_ReadByte() << FRACBITS;
if(df & MDF_FLOORCLIP) d->floorclip = Msg_ReadByte() << 14;
if(df & MDF_FLOORCLIP)
{
if(df & MDF_LONG_FLOORCLIP)
d->floorclip = Msg_ReadPackedShort() << 14;
else
d->floorclip = Msg_ReadByte() << 14;
}

// Link again.
if(!linked && !d->dplayer)
Expand Down

0 comments on commit a8b9ae6

Please sign in to comment.