X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=sv_move.c;h=ffaa44a716ffae147d941deaeae1decbf0797f7d;hb=ea7c24e1fb41f3b1df984ac0eed6881c9fde16f5;hp=4462519bf32a78d974cdf8435fbffee4bdbc47b4;hpb=0af9cf1a9e956711edbee4b8710a458dc532985b;p=xonotic%2Fdarkplaces.git diff --git a/sv_move.c b/sv_move.c index 4462519b..ffaa44a7 100644 --- a/sv_move.c +++ b/sv_move.c @@ -182,7 +182,6 @@ qboolean SV_movestep (edict_t *ent, vec3_t move, qboolean relink) if (relink) SV_LinkEdict (ent, true); ent->v.flags = (int)ent->v.flags & ~FL_ONGROUND; -// Con_Printf ("fall down\n"); return true; } @@ -206,10 +205,8 @@ qboolean SV_movestep (edict_t *ent, vec3_t move, qboolean relink) } if ( (int)ent->v.flags & FL_PARTIALGROUND ) - { -// Con_Printf ("back on ground\n"); ent->v.flags = (int)ent->v.flags & ~FL_PARTIALGROUND; - } + ent->v.groundentity = EDICT_TO_PROG(trace.ent); // the move is ok @@ -268,8 +265,6 @@ SV_FixCheckBottom */ void SV_FixCheckBottom (edict_t *ent) { -// Con_Printf ("SV_FixCheckBottom\n"); - ent->v.flags = (int)ent->v.flags | FL_PARTIALGROUND; }