Skip to content

Commit

Permalink
Mark a few additional properties display-only
Browse files Browse the repository at this point in the history
  • Loading branch information
past-due committed Sep 7, 2023
1 parent cd414c2 commit 57154e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/basedef.h
Expand Up @@ -124,8 +124,10 @@ struct BASE_OBJECT : public SIMPLE_OBJECT
UDWORD periodicalDamage; ///< How much damage has been done since the object entered the fire
std::vector<TILEPOS> watchedTiles; ///< Variable size array of watched tiles, empty for features

// DISPLAY-ONLY (*NOT* for game state calculations)
UDWORD timeAnimationStarted; ///< Animation start time, zero for do not animate
UBYTE animationEvent; ///< If animation start time > 0, this points to which animation to run
//

unsigned numWeaps;
WEAPON asWeaps[MAX_WEAPONS];
Expand Down
2 changes: 1 addition & 1 deletion src/structuredef.h
Expand Up @@ -299,7 +299,7 @@ struct STRUCTURE : public BASE_OBJECT
UDWORD expectedDamage; ///< Expected damage to be caused by all currently incoming projectiles. This info is shared between all players,
///< but shouldn't make a difference unless 3 mutual enemies happen to be fighting each other at the same time.
uint32_t prevTime; ///< Time of structure's previous tick.
float foundationDepth; ///< Depth of structure's foundation
float foundationDepth; ///< Depth of structure's foundation // DISPLAY-ONLY
uint8_t capacity; ///< Lame name: current number of module upgrades (*not* maximum nb of upgrades)
STRUCT_ANIM_STATES state;
UDWORD lastStateTime;
Expand Down

0 comments on commit 57154e4

Please sign in to comment.