From 577bae3f3d611dfea334e7d15e0e7275e6eb37fc Mon Sep 17 00:00:00 2001 From: Eugene Sandulenko Date: Fri, 21 Oct 2016 21:33:30 +0200 Subject: JANITORIAL: Fix code formatting --- devtools/create_cryo/create_led_dat.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/devtools/create_cryo/create_led_dat.cpp b/devtools/create_cryo/create_led_dat.cpp index 21b6ebaba7..9a9c1ed658 100644 --- a/devtools/create_cryo/create_led_dat.cpp +++ b/devtools/create_cryo/create_led_dat.cpp @@ -6,7 +6,7 @@ template static void writeLE(FILE *f, T value) { - for(int i = 0;i < sizeof(value);i++, value >>= 8) { + for (int i = 0; i < sizeof(value); i++, value >>= 8) { unsigned char b = value & 0xFF; fwrite(&b, 1, 1, f); } @@ -26,7 +26,7 @@ struct _icon_t : icon_t { static void emitIcons(FILE *f) { _icon_t *icons = (_icon_t*)gameIcons; - for(int i = 0;i < kNumIcons;i++) + for (int i = 0; i < kNumIcons; i++) icons[i].write(f); } @@ -49,13 +49,13 @@ struct _room_t : room_t { static void emitRooms(FILE *f) { _room_t *rooms = (_room_t*)gameRooms; - for(int i = 0;i < kNumRooms;i++) + for (int i = 0; i < kNumRooms; i++) rooms[i].write(f); } static int emitData(char *outputFilename) { FILE *f = fopen(outputFilename, "w+b"); - if(!f) { + if (!f) { printf("ERROR: Unable to create output file %s\n", outputFilename); return 1; } @@ -74,7 +74,7 @@ static int emitData(char *outputFilename) { int main(int argc, char **argv) { - if(argc > 1) + if (argc > 1) return emitData(argv[1]); else printf("Usage: %s \n", argv[0]); -- cgit v1.2.3