Skip to content

Commit

Permalink
Fix Most Classified Enemy compatibility with character shades
Browse files Browse the repository at this point in the history
  • Loading branch information
cxong committed Mar 10, 2024
1 parent b2e7c32 commit 795003f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/cdogs/character.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
C-Dogs SDL
A port of the legendary (and fun) action/arcade cdogs.
Copyright (c) 2013-2014, 2016, 2019-2021, 2023 Cong Xu
Copyright (c) 2013-2014, 2016, 2019-2021, 2023-2024 Cong Xu
All rights reserved.
Redistribution and use in source and binary forms, with or without
Expand Down
6 changes: 6 additions & 0 deletions src/cdogs/character_class.c
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,12 @@ void CharacterOldHairToHeadParts(char *headParts[HEAD_PART_COUNT])
headParts[HEAD_PART_HAIR] = NULL;
CSTRDUP(headParts[HEAD_PART_GLASSES], "ski_goggles");
}
else if (strcmp(hair, "shades") == 0)
{
CFREE(headParts[HEAD_PART_HAIR]);
headParts[HEAD_PART_HAIR] = NULL;
CSTRDUP(headParts[HEAD_PART_GLASSES], "shades");
}
}

const NamedSprites *CharacterClassGetDeathSprites(const CharacterClass *c, const PicManager *pm)
Expand Down

0 comments on commit 795003f

Please sign in to comment.