From e96d24e8c2e1f13bb1059591aeafd2ad28166e7b Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 6 Sep 2019 07:49:49 +0200 Subject: [PATCH] netgen:: renamed SCALE to nscale (conflict) --- netgen.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/netgen.cpp b/netgen.cpp index 3b385fd7..0df55d96 100644 --- a/netgen.cpp +++ b/netgen.cpp @@ -44,7 +44,7 @@ namespace hr { namespace netgen { bool loaded; - int SCALE, PX, PY, BASE, SX, SY, CELLS, fontsize, created; + int nscale, PX, PY, BASE, SX, SY, CELLS, fontsize, created; double el; #define MAXCELLS 1000 @@ -142,7 +142,7 @@ namespace hr { namespace netgen { fhstream f("papermodeldata.txt", "rt"); if(!f.f) return; - if(!scan(f, CELLS, SX, SY, PX, PY, SCALE, BASE, el, created)) return; + if(!scan(f, CELLS, SX, SY, PX, PY, nscale, BASE, el, created)) return; loaded = true; @@ -179,7 +179,7 @@ namespace hr { namespace netgen { addMessage("Could not save the paper model data"); return; } - println(f, spaced(CELLS, SX, SY, PX, PY, SCALE, BASE, el, created), "\n"); + println(f, spaced(CELLS, SX, SY, PX, PY, nscale, BASE, el, created), "\n"); // net parameters: cell types println(f, spaced_of(ct, CELLS)); @@ -321,7 +321,7 @@ namespace hr { namespace netgen { drawline(hvec(i,e), hvec(i,7), 0x80808080); } */ - s = net = SDL_CreateRGBSurface(SDL_SWSURFACE,SX*SCALE,SY*SCALE,32,0,0,0,0); + s = net = SDL_CreateRGBSurface(SDL_SWSURFACE,SX*nscale,SY*nscale,32,0,0,0,0); SDL_FillRect(net, NULL, 0xFFFFFF); int pateks = 0; @@ -330,7 +330,7 @@ namespace hr { namespace netgen { int zeroe = 0; for(int e=0; e<6; e++) if(nei[zeroi][e] == 0) zeroe = e; - el *= SCALE; + el *= nscale; setRaylen(); for(int faza=0; faza<2; faza++) for(int i=0; i