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

smcv pushed a commit to annotated tag 1.42d
in repository iortcw.

commit b450d80118726a9fe9c79251760bcf6c8daa6d92
Author: MAN-AT-ARMS <m4n4t4...@gmail.com>
Date:   Wed Mar 25 18:42:45 2015 -0400

    All: Use the RB_CHECKOVERFLOW macro in tr_animation.c
---
 MP/code/rend2/tr_animation.c    | 6 ++----
 MP/code/renderer/tr_animation.c | 6 ++----
 SP/code/rend2/tr_animation.c    | 6 ++----
 SP/code/renderer/tr_animation.c | 6 ++----
 4 files changed, 8 insertions(+), 16 deletions(-)

diff --git a/MP/code/rend2/tr_animation.c b/MP/code/rend2/tr_animation.c
index d34bf65..20d9b93 100644
--- a/MP/code/rend2/tr_animation.c
+++ b/MP/code/rend2/tr_animation.c
@@ -1093,14 +1093,12 @@ void RB_SurfaceAnim( mdsSurface_t *surface ) {
                render_count = surface->numVerts;
        }
 
-       RB_CheckOverflow( render_count, surface->numTriangles );
-
 //DBG_SHOWTIME
 
        //
        // setup triangle list
        //
-       RB_CheckOverflow( surface->numVerts, surface->numTriangles * 3 );
+       RB_CHECKOVERFLOW( render_count, surface->numTriangles * 3 );
 
 //DBG_SHOWTIME
 
@@ -1690,7 +1688,7 @@ void RB_MDRSurfaceAnim( mdrSurface_t *surface )
        oldFrame = (mdrFrame_t *)((byte *)header + header->ofsFrames +
                backEnd.currentEntity->e.oldframe * frameSize );
 
-       RB_CheckOverflow( surface->numVerts, surface->numTriangles * 3 );
+       RB_CHECKOVERFLOW( surface->numVerts, surface->numTriangles * 3 );
 
        triangles       = (int *) ((byte *)surface + surface->ofsTriangles);
        indexes         = surface->numTriangles * 3;
diff --git a/MP/code/renderer/tr_animation.c b/MP/code/renderer/tr_animation.c
index f27549c..be7b0bf 100644
--- a/MP/code/renderer/tr_animation.c
+++ b/MP/code/renderer/tr_animation.c
@@ -1094,14 +1094,12 @@ void RB_SurfaceAnim( mdsSurface_t *surface ) {
                render_count = surface->numVerts;
        }
 
-       RB_CheckOverflow( render_count, surface->numTriangles );
-
 //DBG_SHOWTIME
 
        //
        // setup triangle list
        //
-       RB_CheckOverflow( surface->numVerts, surface->numTriangles * 3 );
+       RB_CHECKOVERFLOW( render_count, surface->numTriangles * 3 );
 
 //DBG_SHOWTIME
 
@@ -1688,7 +1686,7 @@ void RB_MDRSurfaceAnim( mdrSurface_t *surface )
        oldFrame = (mdrFrame_t *)((byte *)header + header->ofsFrames +
                backEnd.currentEntity->e.oldframe * frameSize );
 
-       RB_CheckOverflow( surface->numVerts, surface->numTriangles * 3 );
+       RB_CHECKOVERFLOW( surface->numVerts, surface->numTriangles * 3 );
 
        triangles       = (int *) ((byte *)surface + surface->ofsTriangles);
        indexes         = surface->numTriangles * 3;
diff --git a/SP/code/rend2/tr_animation.c b/SP/code/rend2/tr_animation.c
index 26b0afd..8ca16b7 100644
--- a/SP/code/rend2/tr_animation.c
+++ b/SP/code/rend2/tr_animation.c
@@ -1105,14 +1105,12 @@ void RB_SurfaceAnim( mdsSurface_t *surface ) {
                render_count = surface->numVerts;
        }
 
-       RB_CheckOverflow( render_count, surface->numTriangles );
-
 //DBG_SHOWTIME
 
        //
        // setup triangle list
        //
-       RB_CheckOverflow( surface->numVerts, surface->numTriangles * 3 );
+       RB_CHECKOVERFLOW( render_count, surface->numTriangles * 3 );
 
 //DBG_SHOWTIME
 
@@ -1682,7 +1680,7 @@ void RB_MDRSurfaceAnim( mdrSurface_t *surface )
        oldFrame = (mdrFrame_t *)((byte *)header + header->ofsFrames +
                backEnd.currentEntity->e.oldframe * frameSize );
 
-       RB_CheckOverflow( surface->numVerts, surface->numTriangles * 3 );
+       RB_CHECKOVERFLOW( surface->numVerts, surface->numTriangles * 3 );
 
        triangles       = (int *) ((byte *)surface + surface->ofsTriangles);
        indexes         = surface->numTriangles * 3;
diff --git a/SP/code/renderer/tr_animation.c b/SP/code/renderer/tr_animation.c
index 31d8565..dffcd56 100644
--- a/SP/code/renderer/tr_animation.c
+++ b/SP/code/renderer/tr_animation.c
@@ -1106,14 +1106,12 @@ void RB_SurfaceAnim( mdsSurface_t *surface ) {
                render_count = surface->numVerts;
        }
 
-       RB_CheckOverflow( render_count, surface->numTriangles );
-
 //DBG_SHOWTIME
 
        //
        // setup triangle list
        //
-       RB_CheckOverflow( surface->numVerts, surface->numTriangles * 3 );
+       RB_CHECKOVERFLOW( render_count, surface->numTriangles * 3 );
 
 //DBG_SHOWTIME
 
@@ -1678,7 +1676,7 @@ void RB_MDRSurfaceAnim( mdrSurface_t *surface )
        oldFrame = (mdrFrame_t *)((byte *)header + header->ofsFrames +
                backEnd.currentEntity->e.oldframe * frameSize );
 
-       RB_CheckOverflow( surface->numVerts, surface->numTriangles * 3 );
+       RB_CHECKOVERFLOW( surface->numVerts, surface->numTriangles * 3 );
 
        triangles       = (int *) ((byte *)surface + surface->ofsTriangles);
        indexes         = surface->numTriangles * 3;

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

_______________________________________________
Pkg-games-commits mailing list
Pkg-games-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to