Skip to content

Commit 802f1f6

Browse files
committed
merge: Merge WW3D2/hmorphanim
- merge using RTS_* flags
1 parent 24e2073 commit 802f1f6

File tree

3 files changed

+14
-7
lines changed

3 files changed

+14
-7
lines changed

Generals/Code/Libraries/Source/WWVegas/WW3D2/hmorphanim.cpp

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** Command & Conquer Generals(tm)
2+
** Command & Conquer Generals Zero Hour(tm)
33
** Copyright 2025 Electronic Arts Inc.
44
**
55
** This program is free software: you can redistribute it and/or modify
@@ -26,11 +26,11 @@
2626
* *
2727
* Original Author:: Greg Hjelstrom *
2828
* *
29-
* $Author:: Jani_p $*
29+
* $Author:: Byon_g $*
3030
* *
31-
* $Modtime:: 6/27/01 7:50p $*
31+
* $Modtime:: 1/16/02 6:39p $*
3232
* *
33-
* $Revision:: 5 $*
33+
* $Revision:: 7 $*
3434
* *
3535
*---------------------------------------------------------------------------------------------*
3636
* Functions: *
@@ -343,7 +343,7 @@ bool HMorphAnimClass::Import(const char *hierarchy_name, TextFileClass &text_des
343343
//
344344
// Copy the hierarchy name into a class variable
345345
//
346-
::strlcpy(HierarchyName, hierarchy_name, W3D_NAME_LEN);
346+
strlcpy (HierarchyName, hierarchy_name, W3D_NAME_LEN);
347347

348348
//
349349
// Attempt to load the new base pose
@@ -516,9 +516,12 @@ int HMorphAnimClass::Create_New_Morph(const int channels, HAnimClass *anim[])
516516

517517
// set up info
518518
// FrameCount = anim[0]->Get_Num_Frames();
519-
// FrameRate = anim[0]->Get_Frame_Rate();
520519
FrameCount = 0;
520+
#if RTS_GENERALS
521521
FrameRate = 30.0f;
522+
#elif RTS_ZEROHOUR
523+
FrameRate = anim[0]->Get_Frame_Rate();
524+
#endif
522525
NumNodes = anim[0]->Get_Num_Pivots();
523526

524527
// Set up the anim data for all the channels

Generals/Code/Libraries/Source/WWVegas/WW3D2/hmorphanim.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
** Command & Conquer Generals(tm)
2+
** Command & Conquer Generals Zero Hour(tm)
33
** Copyright 2025 Electronic Arts Inc.
44
**
55
** This program is free software: you can redistribute it and/or modify

GeneralsMD/Code/Libraries/Source/WWVegas/WW3D2/hmorphanim.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,11 @@ int HMorphAnimClass::Create_New_Morph(const int channels, HAnimClass *anim[])
517517
// set up info
518518
// FrameCount = anim[0]->Get_Num_Frames();
519519
FrameCount = 0;
520+
#if RTS_GENERALS
521+
FrameRate = 30.0f;
522+
#elif RTS_ZEROHOUR
520523
FrameRate = anim[0]->Get_Frame_Rate();
524+
#endif
521525
NumNodes = anim[0]->Get_Num_Pivots();
522526

523527
// Set up the anim data for all the channels

0 commit comments

Comments
 (0)