All pastes #637283 Raw Edit

Miscellany

public text v1 · immutable
#637283 ·published 2007-07-28 18:58 UTC
rendered paste body
Index: src/client/cl_view.c
===================================================================
--- src/client/cl_view.c        (revision 10340)
+++ src/client/cl_view.c        (working copy)
@@ -27,6 +27,7 @@
 */

 #include "client.h"
+#include "cl_global.h"

 /* global vars */
 cvar_t *cursor;
@@ -369,6 +370,12 @@
        char name[37];
        char *str;

+       /* Prepare environment. That is needed for /devmap and /map usage. */
+       if (!cls.missionaircraft) {
+               cls.missionaircraft = AIR_AircraftGetFromIdx(0);
+               cls.missionaircraft->homebase = &gd.bases[0];
+       }
+
        /* this is needed to get shaders/image filters in game */
        /* the renderer needs to know them before the textures get loaded */
        V_UpdateRefDef();