[chocolate-doom] 10/42: Frame numbers are indexed from 0
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 33313564b8d19d495b15f94cfb8ab76a5ce4347f
Author: Simon Howard <fraggle at gmail.com>
Date: Mon Oct 3 00:42:45 2005 +0000
Frame numbers are indexed from 0
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 154
---
src/deh_frame.c | 9 ++++-----
src/deh_ptr.c | 9 ++++-----
2 files changed, 8 insertions(+), 10 deletions(-)
diff --git a/src/deh_frame.c b/src/deh_frame.c
index 592223e..dc528bb 100644
--- a/src/deh_frame.c
+++ b/src/deh_frame.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: deh_frame.c 153 2005-10-02 23:49:01Z fraggle $
+// $Id: deh_frame.c 154 2005-10-03 00:42:45Z fraggle $
//
// Copyright(C) 2005 Simon Howard
//
@@ -21,6 +21,9 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.2 2005/10/03 00:42:45 fraggle
+// Frame numbers are indexed from 0
+//
// Revision 1.1 2005/10/02 23:49:01 fraggle
// The beginnings of dehacked support
//
@@ -47,10 +50,6 @@ static void *DEH_FrameStart(deh_context_t *context, char *line)
sscanf(line, "Frame %i", &frame_number);
- // dehacked files are indexed from 1, not 0
-
- --frame_number;
-
if (frame_number < 0 || frame_number >= NUMSTATES)
return NULL;
diff --git a/src/deh_ptr.c b/src/deh_ptr.c
index d9217f2..fb6b0ce 100644
--- a/src/deh_ptr.c
+++ b/src/deh_ptr.c
@@ -1,7 +1,7 @@
// Emacs style mode select -*- C++ -*-
//-----------------------------------------------------------------------------
//
-// $Id: deh_ptr.c 153 2005-10-02 23:49:01Z fraggle $
+// $Id: deh_ptr.c 154 2005-10-03 00:42:45Z fraggle $
//
// Copyright(C) 2005 Simon Howard
//
@@ -21,6 +21,9 @@
// 02111-1307, USA.
//
// $Log$
+// Revision 1.2 2005/10/03 00:42:45 fraggle
+// Frame numbers are indexed from 0
+//
// Revision 1.1 2005/10/02 23:49:01 fraggle
// The beginnings of dehacked support
//
@@ -62,10 +65,6 @@ static void *DEH_PointerStart(deh_context_t *context, char *line)
sscanf(line, "%*s %*i (%*s %i)", &frame_number);
- // states are indexed from 1 in dehacked files
-
- --frame_number;
-
if (frame_number < 0 || frame_number >= NUMSTATES)
return NULL;
--
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