[quake3] Entity "info_player_deathmatch" should never be removed

dyn dynborg at vogonhq.com
Sat Nov 17 17:28:43 EST 2007


Here is diff, if you are interested:

--- g_spawn.c-1209      2007-11-07 06:45:51.000000000 -0600
+++ g_spawn.c   2007-11-17 16:26:46.672804218 -0600
@@ -429,7 +429,8 @@
        // check for "notteam" flag (GT_FFA, GT_TOURNAMENT, GT_SINGLE_PLAYER)
        if ( g_gametype.integer >= GT_TEAM ) {
                G_SpawnInt( "notteam", "0", &i );
-               if ( i ) {
+               // DD - do not remove info_player_deathmatch, so we
can use all maps for >=TDM
+               if ( i && Q_stricmp(ent->classname, "info_player_deathmatch")) {
                        G_FreeEntity( ent );
                        return;
                }


On 11/15/07, dyn <dynborg at vogonhq.com> wrote:
> Yes, it makes all maps compatible with team games. Crash occurs when
> engine cannot find team spawn spot, either Blue or Red, initial or
> active. Then it reverts back to normal deathmatch spawn spots, but
> finds none because they are removed for team games inside g_spawns.c (
> if flag 'notteam' is set to 1).
>
> This means not all FFA maps crash in team mode, just those without
> normal spawn spots.
>
> I don't think this would interfere with map purpose, most id maps can
> be played in team mode, even when they are tourney maps and not
> designed for team games.
>
> On 11/14/07, Zachary Slater <zakk at timedoctor.org> wrote:
> > If I understand your patch right, this'll make DM levels playable in
> > team games?
> >
> > I'd prefer to not alter the intentions of the original map maker, though
> > of course a crash is never desirable.
> > --
> > - Zachary J. Slater
> > zakk at timedoctor.org
> > zacharyslater at gmail.com
> >
> > ---
> > To unsubscribe, send a blank email to quake3-unsubscribe at icculus.org
> > Mailing list archives: http://icculus.org/cgi-bin/ezmlm/ezmlm-cgi?50
> >
> >
> >
>
>
> --
> dyn
> http://vogonhq.com/
>


-- 
dyn
http://vogonhq.com/



More information about the quake3 mailing list