[chocolate-doom] 12/42: Add a weaponinfo_t mapping

Jonathan Dowland jmtd at moszumanska.debian.org
Mon Jan 30 15:06:50 UTC 2017


This is an automated email from the git hooks/post-receive script.

jmtd pushed a commit to annotated tag chocolate-doom-0.1.0
in repository chocolate-doom.

commit cbe3f178b8c314a6b66c04f26906b06153e59c3a
Author: Simon Howard <fraggle at gmail.com>
Date:   Mon Oct 3 11:02:08 2005 +0000

    Add a weaponinfo_t mapping
    
    Subversion-branch: /trunk/chocolate-doom
    Subversion-revision: 156
---
 src/deh_weapon.c | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/src/deh_weapon.c b/src/deh_weapon.c
index 682b865..7cc3eb5 100644
--- a/src/deh_weapon.c
+++ b/src/deh_weapon.c
@@ -1,7 +1,7 @@
 // Emacs style mode select   -*- C++ -*- 
 //-----------------------------------------------------------------------------
 //
-// $Id: deh_weapon.c 153 2005-10-02 23:49:01Z fraggle $
+// $Id: deh_weapon.c 156 2005-10-03 11:02:08Z fraggle $
 //
 // Copyright(C) 2005 Simon Howard
 //
@@ -21,6 +21,9 @@
 // 02111-1307, USA.
 //
 // $Log$
+// Revision 1.2  2005/10/03 11:02:08  fraggle
+// Add a weaponinfo_t mapping
+//
 // Revision 1.1  2005/10/02 23:49:01  fraggle
 // The beginnings of dehacked support
 //
@@ -33,7 +36,20 @@
 
 #include "doomdef.h"
 #include "doomtype.h"
+
+#include "d_items.h"
+
 #include "deh_defs.h"
+#include "deh_mapping.h"
+
+DEH_BEGIN_MAPPING(weapon_mapping, weaponinfo_t)
+  DEH_MAPPING("Ammo type",        ammo)
+  DEH_MAPPING("Deselect frame",   upstate)
+  DEH_MAPPING("Select frame",     downstate)
+  DEH_MAPPING("Bobbing frame",    readystate)
+  DEH_MAPPING("Shooting frame",   atkstate)
+  DEH_MAPPING("Firing frame",     flashstate)
+DEH_END_MAPPING
 
 static void *DEH_WeaponStart(deh_context_t *context, char *line)
 {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/chocolate-doom.git



More information about the Pkg-games-commits mailing list