/ * CopySideDefFromFile: Copy info from FileSideDef to SideDef. */
| 137 | * CopySideDefFromFile: Copy info from FileSideDef to SideDef. |
| 138 | */ |
| 139 | void CopySideDefFromFile(SideDef *SD, FileSideDef *FSD) |
| 140 | { |
| 141 | TextureInfo *info; |
| 142 | |
| 143 | SD->type1 = FSD->type_above; |
| 144 | SD->type2 = FSD->type_below; |
| 145 | SD->type3 = FSD->type_normal; |
| 146 | |
| 147 | SD->animate_speed = FSD->animate_speed; |
| 148 | SD->user_id = FSD->id; |
| 149 | |
| 150 | // Fill in string names of textures |
| 151 | info = FindTextureByNumber(SD->type1); |
| 152 | if (info != NULL) |
| 153 | strcpy(SD->tex1, info->Name); |
| 154 | |
| 155 | info = FindTextureByNumber(SD->type2); |
| 156 | if (info != NULL) |
| 157 | strcpy(SD->tex2, info->Name); |
| 158 | |
| 159 | info = FindTextureByNumber(SD->type3); |
| 160 | if (info != NULL) |
| 161 | strcpy(SD->tex3, info->Name); |
| 162 | } |
| 163 | /***************************************************************************/ |
| 164 | /* |
| 165 | * CombineFileFlags: Given flags from + and - sidedefs, return linedef flags. |
no test coverage detected