Skip to content

Commit

Permalink
Fix type CctrlIndex (#3648)
Browse files Browse the repository at this point in the history
just a cosmetic change in code
  • Loading branch information
PieterVdc authored Nov 7, 2024
1 parent f70bc48 commit 385423a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/creature_control.h
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ struct CastedSpellData {
};

struct CreatureControl {
ThingIndex index;
CctrlIndex index;
unsigned char flgfield_1;
unsigned char flgfield_2;
unsigned char combat_flags;
Expand Down
1 change: 1 addition & 0 deletions src/globals.h
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,7 @@ typedef unsigned short NavColour;
typedef signed char SmallAroundIndex;
/** a player state as defined in config_players*/
typedef unsigned char PlayerState;
typedef unsigned short CctrlIndex;


/**
Expand Down
4 changes: 2 additions & 2 deletions src/thing_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ struct Thing {
unsigned char spell_level;
struct Coord3d originpos;
int num_wind_affected;
ThingIndex wind_affected_creature[CREATURES_COUNT]; //list of wind affected Creatures
CctrlIndex wind_affected_creature[CREATURES_COUNT]; //list of wind affected Creatures
} shot;
struct {
long x;
Expand Down Expand Up @@ -295,7 +295,7 @@ struct Thing {
HitPoints health;
unsigned short floor_height;
unsigned short light_id;
short ccontrol_idx;
CctrlIndex ccontrol_idx;
unsigned char snd_emitter_id;
short next_of_class;
short prev_of_class;
Expand Down

0 comments on commit 385423a

Please sign in to comment.