Skip to content

Commit

Permalink
Fixed: Prototype for P_GetGravity() declared return value as float
Browse files Browse the repository at this point in the history
  • Loading branch information
danij-deng committed Apr 19, 2012
1 parent 3bf6ab2 commit f32ab4e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doomsday/plugins/common/include/p_map.h
Expand Up @@ -82,7 +82,7 @@ void P_HandleSectorHeightChange(int sectorIdx);
float P_AimLineAttack(mobj_t* t1, angle_t angle, coord_t distance);
void P_LineAttack(mobj_t* t1, angle_t angle, coord_t distance, coord_t slope, int damage);

float P_GetGravity(void);
coord_t P_GetGravity(void);

boolean P_CheckSides(mobj_t* actor, coord_t x, coord_t y);

Expand Down
2 changes: 1 addition & 1 deletion doomsday/plugins/common/src/d_netsv.c
Expand Up @@ -792,7 +792,7 @@ void NetSv_SendGameState(int flags, int to)
| (cfg.jumpEnabled? 0x10 : 0));

Writer_WriteByte(writer, gameSkill & 0x7);
Writer_WriteFloat(writer, P_GetGravity());
Writer_WriteFloat(writer, (float)P_GetGravity());

if(flags & GSF_CAMERA_INIT)
{
Expand Down

0 comments on commit f32ab4e

Please sign in to comment.