use bool for boolean variables
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8125 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 4ed14338679246911850d5ab058ac85dbe9f8841 Former-commit-id: 7678ccd89dd67095801d02ac7fa7d8dbbf4dc24e
This commit is contained in:
parent
20c0e61031
commit
3ff3bb888c
3 changed files with 8 additions and 8 deletions
|
@ -1972,7 +1972,7 @@ GenerateMesh(tTrack *Track, bool rightside, bool reverse, bool exterior, bool us
|
|||
printf("interior\n");
|
||||
}
|
||||
|
||||
CountRelief(1 - exterior, &nb_relief_vtx, &nb_relief_seg);
|
||||
CountRelief(!exterior, &nb_relief_vtx, &nb_relief_seg);
|
||||
|
||||
printf("Relief: %d vtx, %d seg\n", nb_relief_vtx, nb_relief_seg);
|
||||
|
||||
|
@ -2163,7 +2163,7 @@ GenerateMesh(tTrack *Track, bool rightside, bool reverse, bool exterior, bool us
|
|||
|
||||
Fl = 0;
|
||||
if (exterior && !useBorder) {
|
||||
GenRelief(0);
|
||||
GenRelief(false);
|
||||
}
|
||||
if (exterior && useBorder) {
|
||||
segment[0].n0 = 0;
|
||||
|
@ -2204,11 +2204,11 @@ GenerateMesh(tTrack *Track, bool rightside, bool reverse, bool exterior, bool us
|
|||
if (exterior) {
|
||||
if (useBorder) {
|
||||
Fl = Nc;
|
||||
GenRelief(0);
|
||||
GenRelief(false);
|
||||
}
|
||||
} else {
|
||||
Fl = Nc;
|
||||
GenRelief(1);
|
||||
GenRelief(true);
|
||||
}
|
||||
segment[Fl].n0 = -1;
|
||||
segment[Fl].n1 = -1;
|
||||
|
|
|
@ -117,7 +117,7 @@ countRec(ssgEntity *e, int *nb_vert, int *nb_seg)
|
|||
}
|
||||
|
||||
void
|
||||
CountRelief(int interior, int *nb_vert, int *nb_seg)
|
||||
CountRelief(bool interior, int *nb_vert, int *nb_seg)
|
||||
{
|
||||
tLine *curLine;
|
||||
tRingListHead *curHead;
|
||||
|
@ -194,7 +194,7 @@ genRec(ssgEntity *e)
|
|||
|
||||
|
||||
void
|
||||
GenRelief(int interior)
|
||||
GenRelief(bool interior)
|
||||
{
|
||||
tLine *curLine;
|
||||
tRingListHead *curHead;
|
||||
|
|
|
@ -27,8 +27,8 @@
|
|||
#define _RELIEF_H_
|
||||
|
||||
extern void LoadRelief(void * TrackHandle, const char *reliefFile);
|
||||
extern void CountRelief(int interior, int *nb_vert, int *nb_seg);
|
||||
extern void GenRelief(int interior);
|
||||
extern void CountRelief(bool interior, int *nb_vert, int *nb_seg);
|
||||
extern void GenRelief(bool interior);
|
||||
|
||||
#endif /* _RELIEF_H_ */
|
||||
|
||||
|
|
Loading…
Reference in a new issue