Skip to content

Commit

Permalink
use the flag name on the switch
Browse files Browse the repository at this point in the history
  • Loading branch information
walt253 authored Nov 26, 2024
1 parent e8fcfb0 commit 8a5d4ce
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/config_cubes.c
Original file line number Diff line number Diff line change
Expand Up @@ -198,25 +198,25 @@ TbBool parse_cubes_cube_blocks(char *buf, long len, const char *config_textname,
k = get_id(cubes_properties_flags, word_buf);
switch (k)
{
case 1: // LAVA
case CPF_IsLava: // LAVA
{
cubed->properties_flags |= CPF_IsLava;
n++;
break;
}
case 2: // WATER
case CPF_IsWater: // WATER
{
cubed->properties_flags |= CPF_IsWater;
n++;
break;
}
case 3: // SACRIFICIAL
case CPF_IsSacrificial: // SACRIFICIAL
{
cubed->properties_flags |= CPF_IsSacrificial;
n++;
break;
}
case 4: // UNCLAIMED_PATH
case CPF_IsUnclaimedPath: // UNCLAIMED_PATH
{
cubed->properties_flags |= CPF_IsUnclaimedPath;
n++;
Expand Down

0 comments on commit 8a5d4ce

Please sign in to comment.