diff options
| author | Steven Fuller <relnev@icculus.org> | 2001-07-04 22:58:50 +0000 |
|---|---|---|
| committer | Patryk Obara <dreamer.tan@gmail.com> | 2019-08-20 02:22:36 +0200 |
| commit | d89eb0014e72da9fe561a5a150943d6b962c3dd9 (patch) | |
| tree | 889ed9c442ea51d5ac8ee3adeaae0d1ebea7ca4d /src/morph.c | |
| parent | 190a6b306be7da0761bda6a5882349e161230d30 (diff) | |
First wave of changes:
Removed inclusion of Windows header files and remove some Windows-specific
declarations.
Diffstat (limited to 'src/morph.c')
| -rw-r--r-- | src/morph.c | 29 |
1 files changed, 2 insertions, 27 deletions
diff --git a/src/morph.c b/src/morph.c index d868a50..341f988 100644 --- a/src/morph.c +++ b/src/morph.c @@ -1,36 +1,23 @@ #include "3dc.h" - #include "inline.h" - /* externs for commonly used global variables and arrays */ - extern MORPHDISPLAY MorphDisplay; - extern int NormalFrameTime; - +extern MORPHDISPLAY MorphDisplay; +extern int NormalFrameTime; /* - Global Variables - */ - - - - /* - Update Morphing Animation Control Block - */ void UpdateMorphing(MORPHCTRL *mcptr) - { - MORPHHEADER *mhdr = mcptr->ObMorphHeader; int UpdateRate; @@ -130,13 +117,10 @@ void UpdateMorphing(MORPHCTRL *mcptr) */ void UpdateMorphingDptr(DISPLAYBLOCK *dptr) - { - SHAPEHEADER *sptr1; SHAPEHEADER *sptr2; - /* Update object radius and extents */ GetMorphDisplay(&MorphDisplay, dptr); @@ -284,9 +268,7 @@ void UpdateMorphingDptr(DISPLAYBLOCK *dptr) */ void GetMorphDisplay(MORPHDISPLAY *md, DISPLAYBLOCK *dptr) - { - MORPHFRAME *mdata; MORPHCTRL *mc = dptr->ObMorphCtrl; MORPHHEADER *mhdr = mc->ObMorphHeader; @@ -303,20 +285,13 @@ void GetMorphDisplay(MORPHDISPLAY *md, DISPLAYBLOCK *dptr) md->md_sptr1 = GetShapeData(md->md_shape1); md->md_sptr2 = GetShapeData(md->md_shape2); - } void CopyMorphCtrl(MORPHCTRL *src, MORPHCTRL *dst) - { - dst->ObMorphCurrFrame = src->ObMorphCurrFrame; dst->ObMorphFlags = src->ObMorphFlags; dst->ObMorphSpeed = src->ObMorphSpeed; dst->ObMorphHeader = src->ObMorphHeader; - } - - -
\ No newline at end of file |
