Changeset 830
- Timestamp:
- 11/26/18 00:00:16 (6 years ago)
- Location:
- cpp/frams/genetics
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/f1/f1_conv.cpp
r779 r830 274 274 { 275 275 double len = min(2.0, c.length); 276 sprintf(tmp, "p1=% ld,p2=%ld,dx=%lg,rx=%lg,ry=%lg,rz=%lg,stam=%lg,vr=%g,vg=%g,vb=%g",276 sprintf(tmp, "p1=%d,p2=%d,dx=%lg,rx=%lg,ry=%lg,rz=%lg,stam=%lg,vr=%g,vg=%g,vb=%g", 277 277 part1, part2, len, angle.x, angle.y, angle.z, c.stamina, c.cred, c.cgreen, c.cblue); 278 278 lastjoint_muscle_power = c.muscle_power; -
cpp/frams/genetics/f4/f4_conv.cpp
r804 r830 217 217 if ((jj_p1_refno < 0) || (jj_p1_refno >= getPartCount())) return -11; 218 218 if ((jj_p2_refno < 0) || (jj_p2_refno >= getPartCount())) return -12; 219 sprintf(tmpLine, "p1=% ld,p2=%ld,dx=%g,dy=0,dz=0,rx=%g,ry=0,rz=%g"\219 sprintf(tmpLine, "p1=%d,p2=%d,dx=%g,dy=0,dz=0,rx=%g,ry=0,rz=%g"\ 220 220 ",stam=%g", 221 221 jj_p1_refno, jj_p2_refno, … … 244 244 partno = C->dadlink->p2_refno; 245 245 if ((partno < 0) || (partno >= getPartCount())) return -21; 246 else sprintf(tmpLine, "p=% ld,d=\"N:in=%g,fo=%g,si=%g\"", partno, C->inertia, C->force, C->sigmo);246 else sprintf(tmpLine, "p=%d,d=\"N:in=%g,fo=%g,si=%g\"", partno, C->inertia, C->force, C->sigmo); 247 247 } 248 248 else … … 265 265 else 266 266 { 267 sprintf(tmpLine, "p=% ld,d=\"%s\"", partno, nclass);267 sprintf(tmpLine, "p=%d,d=\"%s\"", partno, nclass); 268 268 } 269 269 partidx = addFromString(NeuronType, tmpLine, &range); -
cpp/frams/genetics/f4/f4_general.cpp
r829 r830 1255 1255 else 1256 1256 { 1257 sprintf(buf2, "% ld", l1);1257 sprintf(buf2, "%d", l1); 1258 1258 out += buf2; 1259 1259 }
Note: See TracChangeset
for help on using the changeset viewer.