X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fgame_bd%2Fbd_cave.c;h=9e281798013e74526ca05b0938fc0e620d906de4;hb=646498771246351aaf243f5ab889179bd9684991;hp=2ffb071e365097f3b117888785b61a8c606bd91d;hpb=7fb08abe58b2c84e36a5ed247d2103e08ae98aa4;p=rocksndiamonds.git diff --git a/src/game_bd/bd_cave.c b/src/game_bd/bd_cave.c index 2ffb071e..9e281798 100644 --- a/src/game_bd/bd_cave.c +++ b/src/game_bd/bd_cave.c @@ -548,7 +548,7 @@ void gd_cave_free(GdCave *cave) /* free GStrings */ for (i = 0; gd_cave_properties[i].identifier != NULL; i++) - if (gd_cave_properties[i].type==GD_TYPE_LONGSTRING) + if (gd_cave_properties[i].type == GD_TYPE_LONGSTRING) g_string_free(G_STRUCT_MEMBER(GString *, cave, gd_cave_properties[i].offset), TRUE); /* map */ @@ -596,7 +596,7 @@ void gd_cave_copy(GdCave *dest, const GdCave *src) /* for longstrings */ for (i = 0; gd_cave_properties[i].identifier != NULL; i++) - if (gd_cave_properties[i].type==GD_TYPE_LONGSTRING) + if (gd_cave_properties[i].type == GD_TYPE_LONGSTRING) G_STRUCT_MEMBER(GString *, dest, gd_cave_properties[i].offset) = g_string_new(G_STRUCT_MEMBER(GString *, src, gd_cave_properties[i].offset)->str); @@ -879,9 +879,9 @@ void gd_cave_auto_shrink(GdCave *cave) case O_INBOX: /* shrink only lines, which have only ONE player or outbox. this is for bd4 intermission 2, for example. */ - if (empty==STEEL_OR_OTHER) + if (empty == STEEL_OR_OTHER) empty = NO_SHRINK; - if (empty==STEEL_ONLY) + if (empty == STEEL_ONLY) empty = STEEL_OR_OTHER; break; @@ -914,9 +914,9 @@ void gd_cave_auto_shrink(GdCave *cave) case O_PRE_OUTBOX: case O_PRE_INVIS_OUTBOX: case O_INBOX: - if (empty==STEEL_OR_OTHER) + if (empty == STEEL_OR_OTHER) empty = NO_SHRINK; - if (empty==STEEL_ONLY) + if (empty == STEEL_ONLY) empty = STEEL_OR_OTHER; break; @@ -951,9 +951,9 @@ void gd_cave_auto_shrink(GdCave *cave) case O_PRE_OUTBOX: case O_PRE_INVIS_OUTBOX: case O_INBOX: - if (empty==STEEL_OR_OTHER) + if (empty == STEEL_OR_OTHER) empty = NO_SHRINK; - if (empty==STEEL_ONLY) + if (empty == STEEL_ONLY) empty = STEEL_OR_OTHER; break;