entdark / jaMME

Jedi Academy Movie Maker's Edition
GNU General Public License v2.0
16 stars 15 forks source link

Entities disappear when we draw scoreboard #2

Closed entdark closed 11 years ago

entdark commented 11 years ago

Everything except map disappear if we display scoreboard. This usually happens when a player dies. The bug happens somewhere in cg_scoreboard.c -> CG_DrawOldScoreboard, probably when we are doing CG_LoadDeferredPlayers. Currently to avoid this we can just disable drawing 2d with a cvar cg_draw2D. The issue happens periodically and also it happens more often on demos where you were spectating a player.

entdark commented 11 years ago

Hehe, the issue somehow has been fixed. I think it's because we added

    VectorCopy( cg_entities[cg.snap->ps.clientNum].currentState.pos.trBase, cg_entities[cg.snap->ps.clientNum].lerpOrigin );
    VectorCopy( cg_entities[cg.snap->ps.clientNum].currentState.apos.trBase, cg_entities[cg.snap->ps.clientNum].lerpAngles );

in CG_DemosDrawActiveFrame