Skip to content

Commit

Permalink
Fix door pic logic (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
cxong committed Sep 5, 2015
1 parent 09a8a79 commit c58353e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cdogs/door.c
Expand Up @@ -427,7 +427,7 @@ NamedPic *GetDoorPic(
// If the key is "wall", it doesn't include orientation
sprintf(
buf, "door/%s_%s%s", style, key,
strcmp(key, "wall") ? "" : (isHorizontal ? "_h" : "_v"));
strcmp(key, "wall") == 0 ? "" : (isHorizontal ? "_h" : "_v"));
/*
// TODO: support using original pics
// Requires original pics accessible via name, i.e. using the NamedPic
Expand Down

0 comments on commit c58353e

Please sign in to comment.