Skip to content

Commit

Permalink
Add some more code comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fabiangreffrath committed Apr 5, 2014
1 parent eae9c1b commit 392b167
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/doom/p_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -1369,6 +1369,7 @@ boolean PIT_ChangeSector (mobj_t* thing)
mo = P_SpawnMobj (thing->x,
thing->y,
thing->z + thing->height/2, MT_BLOOD);
// [crispy] connect blood object with the monster that bleeds it
mo->target = thing;

mo->momx = (P_Random() - P_Random ())<<12;
Expand Down
1 change: 1 addition & 0 deletions src/doom/p_mobj.c
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,7 @@ P_SpawnBlood
th = P_SpawnMobj (x,y,z, MT_BLOOD);
th->momz = FRACUNIT*2;
th->tics -= P_Random()&3;
// [crispy] connect blood object with the monster that bleeds it
th->target = target;

if (target->flags & MF_SHADOW) // Spectres bleed spectre blood
Expand Down
30 changes: 30 additions & 0 deletions src/doom/r_data.c
Original file line number Diff line number Diff line change
Expand Up @@ -688,6 +688,36 @@ void R_InitSpriteLumps (void)

// [crispy] from boom202s/R_DATA.C:676-787

// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
// $Id: r_data.c,v 1.24 1998/09/07 20:11:45 jim Exp $
//
// BOOM, a modified and improved DOOM engine
// Copyright (C) 1999 by
// id Software, Chi Hoang, Lee Killough, Jim Flynn, Rand Phares, Ty Halderman
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
// DESCRIPTION:
// Preparation of data for rendering,
// generation of lookups, caching, retrieval by name.
//
//-----------------------------------------------------------------------------

byte *tranmap;

//
Expand Down
1 change: 1 addition & 0 deletions src/doom/r_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ typedef struct vissprite_s
lighttable_t* colormap;

int mobjflags;
// [crispy] color translation table for blood colored by monster class
byte* translation;

} vissprite_t;
Expand Down

0 comments on commit 392b167

Please sign in to comment.