set border height to 0 when type is PLAN

git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@8414 30fe4595-0a0c-4342-8851-515496e4dcbd

Former-commit-id: 817f5dccb51bfca7a6c6160a9487a0ed1a5309ea
Former-commit-id: 7ad593b1e245e2ba84c8007f7616c4a9efc2c660
This commit is contained in:
iobyte 2022-08-19 14:39:49 +00:00
parent 8866203f61
commit e860c7108d
3 changed files with 6 additions and 0 deletions

View file

@ -150,6 +150,7 @@ InitSides(void *TrackHandle, tTrack *theTrack)
style = GfParmGetStr(TrackHandle, TRK_SECT_MAIN, KeyBorderStyle[side], TRK_VAL_PLAN);
if (strcmp(style, TRK_VAL_PLAN) == 0) {
borderStyle[side] = TR_PLAN;
borderHeight[side] = 0;
} else if (strcmp(style, TRK_VAL_CURB) == 0) {
borderStyle[side] = TR_CURB;
} else {
@ -214,6 +215,7 @@ AddSides(tTrackSeg *curSeg, void *TrackHandle, tTrack *theTrack, int curStep, in
style = GfParmGetCurStr(TrackHandle, path, KeyBorderStyle[side], ValStyle[borderStyle[side]]);
if (strcmp(style, TRK_VAL_PLAN) == 0) {
borderStyle[side] = TR_PLAN;
borderHeight[side] = 0;
} else if (strcmp(style, TRK_VAL_CURB) == 0) {
borderStyle[side] = TR_CURB;
} else {

View file

@ -164,6 +164,7 @@ static void InitSides(void *TrackHandle, tTrack *theTrack)
if (strcmp(style, TRK_VAL_PLAN) == 0)
{
borderStyle[side] = TR_PLAN;
borderHeight[side] = 0;
}
else if (strcmp(style, TRK_VAL_CURB) == 0)
{
@ -251,6 +252,7 @@ static void AddSides(tTrackSeg *curSeg, void *TrackHandle, tTrack *theTrack, int
if (strcmp(style, TRK_VAL_PLAN) == 0)
{
borderStyle[side] = TR_PLAN;
borderHeight[side] = 0;
}
else if (strcmp(style, TRK_VAL_CURB) == 0)
{

View file

@ -178,6 +178,7 @@ InitSides(void *TrackHandle, tTrack *theTrack)
style = GfParmGetStr(TrackHandle, path, TRK_ATT_STYLE, TRK_VAL_PLAN);
if (strcmp(style, TRK_VAL_PLAN) == 0) {
borderStyle[side] = TR_PLAN;
borderHeight[side] = 0;
} else if (strcmp(style, TRK_VAL_CURB) == 0) {
borderStyle[side] = TR_CURB;
} else {
@ -254,6 +255,7 @@ AddSides(tTrackSeg *curSeg, void *TrackHandle, tTrack *theTrack, int curStep, in
style = GfParmGetStr(TrackHandle, path2, TRK_ATT_STYLE, ValStyle[borderStyle[side]]);
if (strcmp(style, TRK_VAL_PLAN) == 0) {
borderStyle[side] = TR_PLAN;
borderHeight[side] = 0;
} else if (strcmp(style, TRK_VAL_CURB) == 0) {
borderStyle[side] = TR_CURB;
} else {