Mercurial > hg > forks > yadex
comparison src/textures.cc @ 107:20aa5a515896
Reformat one line /* */ comments to //
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 06 Oct 2014 12:42:55 +0300 |
parents | 2f1ecc1c5f72 |
children | f05330267c66 |
comparison
equal
deleted
inserted
replaced
106:093497110727 | 107:20aa5a515896 |
---|---|
31 #include "yadex.h" | 31 #include "yadex.h" |
32 #ifdef Y_X11 | 32 #ifdef Y_X11 |
33 #include <X11/Xlib.h> | 33 #include <X11/Xlib.h> |
34 #endif | 34 #endif |
35 #include "dialog.h" | 35 #include "dialog.h" |
36 #include "game.h" /* yg_picture_format */ | 36 #include "game.h" // yg_picture_format |
37 #include "gfx.h" | 37 #include "gfx.h" |
38 #include "lists.h" | 38 #include "lists.h" |
39 #include "patchdir.h" | 39 #include "patchdir.h" |
40 #include "pic2img.h" | 40 #include "pic2img.h" |
41 #include "sticker.h" | 41 #include "sticker.h" |
50 { | 50 { |
51 if ((name[0] == '-' && name[1] == 0) || name[0] == 0) | 51 if ((name[0] == '-' && name[1] == 0) || name[0] == 0) |
52 return true; | 52 return true; |
53 else | 53 else |
54 { | 54 { |
55 /* Check for name that consists only of whitespace */ | 55 // Check for name that consists only of whitespace |
56 const char *c = name; | 56 const char *c = name; |
57 while (*c) | 57 while (*c) |
58 { | 58 { |
59 if (isspace(*c)) | 59 if (isspace(*c)) |
60 c++; | 60 c++; |
80 int n; // General counter | 80 int n; // General counter |
81 i16 width, height; // Size of the texture | 81 i16 width, height; // Size of the texture |
82 i16 npatches; // Number of patches in the textures | 82 i16 npatches; // Number of patches in the textures |
83 i32 numtex; // number of texture names in TEXTURE* list | 83 i32 numtex; // number of texture names in TEXTURE* list |
84 i32 texofs; // Offset in the wad file to the texture data | 84 i32 texofs; // Offset in the wad file to the texture data |
85 char tname[WAD_TEX_NAME + 1]; /* texture name */ | 85 char tname[WAD_TEX_NAME + 1]; // texture name |
86 char picname[WAD_PIC_NAME + 1]; /* wall patch name */ | 86 char picname[WAD_PIC_NAME + 1]; // wall patch name |
87 bool have_dummy_bytes; | 87 bool have_dummy_bytes; |
88 int header_size; | 88 int header_size; |
89 int item_size; | 89 int item_size; |
90 | 90 |
91 // So that, on failure, the caller clears the display area | 91 // So that, on failure, the caller clears the display area |