mirror of
https://github.com/ZDoom/Raze.git
synced 2025-06-01 17:52:13 +00:00
Abolish all " ={ " when assigning a struct. DONT_BUILD.
git-svn-id: https://svn.eduke32.com/eduke32@6061 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
5d77a4ac06
commit
d43fb548cf
17 changed files with 67 additions and 67 deletions
|
@ -250,7 +250,7 @@ int32_t drawline16(int32_t x1, int32_t y1, int32_t x2, int32_t y2, int col)
|
|||
//int32_t odx,ody;
|
||||
//int32_t ox1=x1,oy1=y1, ox2=x2,oy2=y2;
|
||||
|
||||
vec2_t d ={ x2-x1, y2-y1 };
|
||||
vec2_t d = { x2-x1, y2-y1 };
|
||||
|
||||
//odx=dx;
|
||||
//ody=dy;
|
||||
|
@ -580,7 +580,7 @@ int32_t scalescreeny(int32_t sy) { return (m32_sideview) ? mulscale14(sy, m32_si
|
|||
// return screen coordinates for BUILD coords x and y (relative to current position)
|
||||
void screencoords(int32_t *xres, int32_t *yres, int32_t x, int32_t y, int32_t zoome)
|
||||
{
|
||||
vec2_t coord ={ x, y };
|
||||
vec2_t coord = { x, y };
|
||||
|
||||
if (m32_sideview)
|
||||
rotatepoint(zerovec, coord, m32_sideang, &coord);
|
||||
|
@ -609,7 +609,7 @@ int32_t getinvdisplacement(int32_t *dx, int32_t *dy, int32_t dz)
|
|||
|
||||
dz = (((int64_t) dz * (int64_t) m32_sidecos)/(int64_t) m32_sidesin)>>4;
|
||||
|
||||
vec2_t v[2] ={ { 0, dz },{ *dx, *dy } };
|
||||
vec2_t v[2] = { { 0, dz },{ *dx, *dy } };
|
||||
|
||||
rotatepoint(zerovec, v[0], -m32_sideang, &v[1]);
|
||||
|
||||
|
|
|
@ -69,9 +69,9 @@ void hlineasm4(bssize_t cnt, int32_t skiploadincs, int32_t paloffs, uint32_t by,
|
|||
|
||||
const char *const A_C_RESTRICT palptr = &ghlinepal[paloffs];
|
||||
const char *const A_C_RESTRICT buf = gbuf;
|
||||
const vec2_t inc ={ gbxinc, gbyinc };
|
||||
const vec2_t log ={ glogx, glogy };
|
||||
const vec2_t log32 ={ 32-log.x, 32-log.y };
|
||||
const vec2_t inc = { gbxinc, gbyinc };
|
||||
const vec2_t log = { glogx, glogy };
|
||||
const vec2_t log32 = { 32-log.x, 32-log.y };
|
||||
char *pp = (char *)p;
|
||||
|
||||
#ifdef CLASSIC_SLICE_BY_4
|
||||
|
|
|
@ -190,7 +190,7 @@ static uint8_t visited[MAXWALLS>>3];
|
|||
|
||||
int32_t m32_2d3dmode = 0;
|
||||
int32_t m32_2d3dsize = 4;
|
||||
vec2_t m32_2d3d ={ 0xffff, 4 };
|
||||
vec2_t m32_2d3d = { 0xffff, 4 };
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
@ -3357,7 +3357,7 @@ void overheadeditor(void)
|
|||
int16_t cursectorhighlight, sectorhighlightstat;
|
||||
int32_t prefixarg = 0, tsign;
|
||||
int32_t resetsynctics = 0, lasttick=getticks(), waitdelay=totalclock, lastdraw=getticks();
|
||||
int32_t olen[2]={0,0}, dragwall[2] = {-1, -1};
|
||||
int32_t olen[2] = {0, 0}, dragwall[2] = {-1, -1};
|
||||
int16_t linehighlight2 = -1;
|
||||
|
||||
ovh.suckwall = -1;
|
||||
|
@ -3853,7 +3853,7 @@ void overheadeditor(void)
|
|||
#ifdef USE_OPENGL
|
||||
int bakrendmode = rendmode;
|
||||
#endif
|
||||
vec2_t bdim ={ xdim, ydim };
|
||||
vec2_t bdim = { xdim, ydim };
|
||||
|
||||
xdim = xdim2d;
|
||||
ydim = ydim2d;
|
||||
|
@ -3884,7 +3884,7 @@ void overheadeditor(void)
|
|||
setview(m32_2d3d.x, m32_2d3d.y, m32_2d3d.x + XSIZE_2D3D, m32_2d3d.y + YSIZE_2D3D);
|
||||
clearview(-1);
|
||||
|
||||
vec2_t osearch ={ searchx, searchy };
|
||||
vec2_t osearch = { searchx, searchy };
|
||||
|
||||
searchx -= m32_2d3d.x;
|
||||
searchy -= m32_2d3d.y;
|
||||
|
|
|
@ -5742,7 +5742,7 @@ draw_as_face_sprite:
|
|||
int32_t const xspan = ((B_LITTLE32(longptr[0]) + B_LITTLE32(longptr[1])) >> 1);
|
||||
int32_t const yspan = B_LITTLE32(longptr[2]);
|
||||
|
||||
vec2_t const siz ={ mulscale_triple30(xdsiz, xv, xspan), mulscale_triple30(xdsiz, nyrepeat, yspan) };
|
||||
vec2_t const siz = { mulscale_triple30(xdsiz, xv, xspan), mulscale_triple30(xdsiz, nyrepeat, yspan) };
|
||||
|
||||
//Watch out for divscale overflow
|
||||
if (((xspan>>11) < siz.x) && (yspan < (siz.y>>1)))
|
||||
|
@ -8649,8 +8649,8 @@ void drawmapview(int32_t dax, int32_t day, int32_t zoome, int16_t ang)
|
|||
|
||||
Bmemset(gotsector, 0, (numsectors+7)>>3);
|
||||
|
||||
vec2_t const c1 ={ (windowxy1.x<<12), (windowxy1.y<<12) };
|
||||
vec2_t const c2 ={ ((windowxy2.x+1)<<12)-1, ((windowxy2.y+1)<<12)-1 };
|
||||
vec2_t const c1 = { (windowxy1.x<<12), (windowxy1.y<<12) };
|
||||
vec2_t const c2 = { ((windowxy2.x+1)<<12)-1, ((windowxy2.y+1)<<12)-1 };
|
||||
|
||||
zoome <<= 8;
|
||||
|
||||
|
@ -8710,7 +8710,7 @@ void drawmapview(int32_t dax, int32_t day, int32_t zoome, int16_t ang)
|
|||
#endif
|
||||
if ((i&0xf0) != 0xf0) continue;
|
||||
|
||||
vec2_t bak ={ rx1[0], mulscale16(ry1[0]-(ydim<<11),xyaspect)+(ydim<<11) };
|
||||
vec2_t bak = { rx1[0], mulscale16(ry1[0]-(ydim<<11),xyaspect)+(ydim<<11) };
|
||||
|
||||
if (i&0x0f)
|
||||
{
|
||||
|
@ -8820,7 +8820,7 @@ void drawmapview(int32_t dax, int32_t day, int32_t zoome, int16_t ang)
|
|||
const int32_t xspan = tilesiz[spr->picnum].x;
|
||||
|
||||
int32_t npoints = 0;
|
||||
vec2_t v1 ={ spr->x, spr->y }, v2, v3, v4;
|
||||
vec2_t v1 = { spr->x, spr->y }, v2, v3, v4;
|
||||
|
||||
get_floorspr_points(spr, 0, 0, &v1.x, &v2.x, &v3.x, &v4.x,
|
||||
&v1.y, &v2.y, &v3.y, &v4.y);
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
#include "a.h"
|
||||
#include "xxhash.h"
|
||||
|
||||
uint8_t *basepaltable[MAXBASEPALS] ={ palette };
|
||||
uint8_t *basepaltable[MAXBASEPALS] = { palette };
|
||||
uint8_t basepalreset=1;
|
||||
uint8_t curbasepal;
|
||||
int32_t globalblend;
|
||||
|
@ -16,7 +16,7 @@ int32_t globalblend;
|
|||
uint32_t g_lastpalettesum = 0;
|
||||
palette_t curpalette[256]; // the current palette, unadjusted for brightness or tint
|
||||
palette_t curpalettefaded[256]; // the current palette, adjusted for brightness and tint (ie. what gets sent to the card)
|
||||
palette_t palfadergb ={ 0,0,0,0 };
|
||||
palette_t palfadergb = { 0, 0, 0, 0 };
|
||||
char palfadedelta = 0;
|
||||
uint8_t blackcol;
|
||||
|
||||
|
@ -533,7 +533,7 @@ void makepalookup(int32_t palnum, const char *remapbuf, uint8_t r, uint8_t g, ui
|
|||
{
|
||||
int32_t i, j;
|
||||
|
||||
static char idmap[256] ={ 1 };
|
||||
static char idmap[256] = { 1 };
|
||||
|
||||
if (paletteloaded == 0)
|
||||
return;
|
||||
|
|
|
@ -2206,7 +2206,7 @@ static void polymer_emptybuckets(void)
|
|||
prcanbucket = 0;
|
||||
}
|
||||
|
||||
static hashtable_t h_buckets ={ 2048, NULL };
|
||||
static hashtable_t h_buckets = { 2048, NULL };
|
||||
|
||||
static _prbucket* polymer_findbucket(int16_t tilenum, char pal)
|
||||
{
|
||||
|
|
|
@ -2317,7 +2317,7 @@ skip: ;
|
|||
case 3:
|
||||
case 1:
|
||||
{
|
||||
vec2f_t const dpxy[4] ={
|
||||
vec2f_t const dpxy[4] = {
|
||||
{ dx0, n0.y }, { dx1, n1.y }, { dx1, vsp[i].fy[1] }, { dx0, vsp[i].fy[0] }
|
||||
};
|
||||
|
||||
|
@ -2340,7 +2340,7 @@ skip: ;
|
|||
case 5:
|
||||
case 2:
|
||||
{
|
||||
vec2f_t const dpxy[3] ={ { dx0, vsp[i].fy[0] }, { dx1, n1.y }, { dx1, vsp[i].fy[1] } };
|
||||
vec2f_t const dpxy[3] = { { dx0, vsp[i].fy[0] }, { dx1, n1.y }, { dx1, vsp[i].fy[1] } };
|
||||
|
||||
vsp[i].fy[1] = n1.y;
|
||||
vsp[i].ftag = gtag;
|
||||
|
@ -2349,7 +2349,7 @@ skip: ;
|
|||
break;
|
||||
case 0:
|
||||
{
|
||||
vec2f_t const dpxy[4] ={ { dx0, vsp[i].cy[0] }, { dx1, vsp[i].cy[1] }, { dx1, vsp[i].fy[1] }, { dx0, vsp[i].fy[0] } };
|
||||
vec2f_t const dpxy[4] = { { dx0, vsp[i].cy[0] }, { dx1, vsp[i].cy[1] }, { dx1, vsp[i].fy[1] }, { dx0, vsp[i].fy[0] } };
|
||||
vsp[i].ctag = vsp[i].ftag = -1;
|
||||
polymost_drawpoly(dpxy, 4, domostpolymethod);
|
||||
}
|
||||
|
@ -2472,7 +2472,7 @@ void polymost_editorfunc(void)
|
|||
int const ang = getangle(wall[hit->wall].x - POINT2(hit->wall).x, wall[hit->wall].y - POINT2(hit->wall).y);
|
||||
tsp->ang = ang + 512;
|
||||
|
||||
vec2_t const offs ={ sintable[(ang + 1024) & 2047] >> 11,
|
||||
vec2_t const offs = { sintable[(ang + 1024) & 2047] >> 11,
|
||||
sintable[(ang + 512) & 2047] >> 11};
|
||||
|
||||
tsp->x -= offs.x;
|
||||
|
@ -4417,7 +4417,7 @@ void polymost_drawsprite(int32_t snum)
|
|||
|
||||
float const foffs = TSPR_OFFSET(tspr);
|
||||
|
||||
vec2f_t const offs ={ (float) (sintable[(ang + 512) & 2047] >> 6) * foffs,
|
||||
vec2f_t const offs = { (float) (sintable[(ang + 512) & 2047] >> 6) * foffs,
|
||||
(float) (sintable[(ang) & 2047] >> 6) * foffs };
|
||||
|
||||
vec2f_t s0 = { (float)(tspr->x - globalposx) + offs.x,
|
||||
|
@ -5252,7 +5252,7 @@ void polymost_dorotatesprite(int32_t sx, int32_t sy, int32_t z, int16_t a, int16
|
|||
drawpoly_blend = dablend;
|
||||
|
||||
vec2_t const siz = tilesiz[globalpicnum];
|
||||
vec2_t ofs ={ 0, 0 };
|
||||
vec2_t ofs = { 0, 0 };
|
||||
|
||||
if (!(dastat & RS_TOPLEFT))
|
||||
{
|
||||
|
|
|
@ -220,7 +220,7 @@ static int32_t screencapture_png(const char *filename, char inverseit, const cha
|
|||
static int32_t screencapture_tga(const char *filename, char inverseit)
|
||||
{
|
||||
int32_t i;
|
||||
char *ptr, head[18] ={ 0,1,1,0,0,0,1,24,0,0,0,0,0/*wlo*/,0/*whi*/,0/*hlo*/,0/*hhi*/,8,0 };
|
||||
char *ptr, head[18] = { 0,1,1,0,0,0,1,24,0,0,0,0,0/*wlo*/,0/*whi*/,0/*hlo*/,0/*hhi*/,8,0 };
|
||||
//char palette[4*256];
|
||||
char *fn = Xstrdup(filename);
|
||||
# ifdef USE_OPENGL
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue