Mercurial > hg > forks > yadex
comparison src/l_align.cc @ 69:12b6553c057e
Logic cleanup in aligning textures x offset.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 26 Sep 2011 11:23:01 +0300 |
parents | df543ecd0746 |
children | dd9e9b980eb9 |
comparison
equal
deleted
inserted
replaced
68:df543ecd0746 | 69:12b6553c057e |
---|---|
243 return; | 243 return; |
244 } | 244 } |
245 | 245 |
246 /* Main processing loop */ | 246 /* Main processing loop */ |
247 while (*sdlist) | 247 while (*sdlist) |
248 xoffset = opt_offset ? useroffset : 0; | |
248 while (*sdlist != NULL) | 249 while (*sdlist != NULL) |
249 { | 250 { |
250 ldef = 0; | 251 ldef = 0; |
251 sdef = (*sdlist)->objnum; | 252 sdef = (*sdlist)->objnum; |
252 | 253 |
334 (*sdlist)->objnum); | 335 (*sdlist)->objnum); |
335 Notify(-1, -1, errormessage, 0); | 336 Notify(-1, -1, errormessage, 0); |
336 return; | 337 return; |
337 } | 338 } |
338 | 339 |
339 /* is this the first time round here */ | |
340 if (vert1 != vert2) | |
341 { | |
342 /* Do we have an initial offset? */ | |
343 xoffset = opt_offset ? useroffset : 0; | |
344 } | |
345 | |
346 /* Set offset */ | 340 /* Set offset */ |
347 SideDefs[sdef].xoff = xoffset; | 341 SideDefs[sdef].xoff = xoffset; |
348 | 342 |
349 /* Calculate length of linedef */ | 343 /* Calculate length of linedef */ |
350 vert2 = LineDefs[ldef].end; | 344 vert2 = LineDefs[ldef].end; |