void rendergame() { if (!ClientSystem::loggedIn) // If not logged in remotely, do not render, because entities lack all the fields like model_name // in the future, perhaps add these, if we want local rendering { logger::log(logger::INFO, "Not logged in remotely, so not rendering\r\n"); return; } lua::push_external("game_render"); lua_pushboolean(lua::L, isthirdperson()); lua_call (lua::L, 1, 0); }
void rendergame(bool mainpass) { if(isthirdperson()) renderclient(player1, "ogro", NULL, 0, ANIM_ATTACK1, 300, player1->lastaction, player1->lastpain); renderobjects(); }