summaryrefslogtreecommitdiff
path: root/src/game
diff options
context:
space:
mode:
Diffstat (limited to 'src/game')
-rw-r--r--src/game/bg_public.h13
-rw-r--r--src/game/g_buildable.c1
2 files changed, 11 insertions, 3 deletions
diff --git a/src/game/bg_public.h b/src/game/bg_public.h
index 4d6fc8a6..73e0699c 100644
--- a/src/game/bg_public.h
+++ b/src/game/bg_public.h
@@ -584,7 +584,7 @@ typedef enum {
TORSO_NEGATIVE,
#endif
- MAX_ANIMATIONS,
+ MAX_PLAYER_ANIMATIONS,
LEGS_BACKCR,
LEGS_BACKWALK,
@@ -592,9 +592,16 @@ typedef enum {
FLAG_STAND,
FLAG_STAND2RUN,
- MAX_TOTALANIMATIONS
-} animNumber_t;
+ MAX_PLAYER_TOTALANIMATIONS
+} playerAnimNumber_t;
+//TA: for buildable animations
+typedef enum
+{
+ BUILD_CONSTRUCT,
+ BUILD_DESTROY,
+ MAX_BUILDABLE_ANIMATIONS
+} buildableAnimNumber_t;
typedef struct animation_s {
int firstFrame;
diff --git a/src/game/g_buildable.c b/src/game/g_buildable.c
index ef210767..051c2209 100644
--- a/src/game/g_buildable.c
+++ b/src/game/g_buildable.c
@@ -752,6 +752,7 @@ gentity_t *Build_Item( gentity_t *ent, buildable_t buildable, int distance ) {
built->item = BG_FindItemForBuildable( buildable );
built->s.modelindex = built->item - bg_itemlist; // store item number in modelindex
+ built->s.clientNum = buildable; //so we can tell what this is on the client side
BG_FindBBoxForBuildable( buildable, built->r.mins, built->r.maxs );
built->biteam = built->s.modelindex2 = BG_FindTeamForBuildable( buildable );