[Igarden-commit] Garden/source/LayoutDB Path.cpp, 1.67.2.9, 1.67.2.10
Status: Beta
Brought to you by:
jlbedell
|
From: Jeffrey B. <jlb...@us...> - 2008-04-19 11:21:22
|
Update of /cvsroot/igarden/Garden/source/LayoutDB In directory sc8-pr-cvs2.sourceforge.net:/tmp/cvs-serv8282/source/LayoutDB Modified Files: Tag: Release_branch_v1 Path.cpp Log Message: Don't give "no spread" warning for non-plants Index: Path.cpp =================================================================== RCS file: /cvsroot/igarden/Garden/source/LayoutDB/Path.cpp,v retrieving revision 1.67.2.9 retrieving revision 1.67.2.10 diff -C2 -d -r1.67.2.9 -r1.67.2.10 *** Path.cpp 17 Apr 2008 10:51:00 -0000 1.67.2.9 --- Path.cpp 19 Apr 2008 11:21:25 -0000 1.67.2.10 *************** *** 885,894 **** landscapeHeight_t height; planLength_t spread; ! ref->GetLatestPlantDimensions(&height, &spread ); ! if(spread > 0.0) ! _owningElement->RemoveWarning(kNoSpread); ! else ! _owningElement->AddWarning(kNoSpread); } } --- 885,898 ---- landscapeHeight_t height; planLength_t spread; + Material *mat = ref->GetMaterial(ifMissingNULL); ! if((mat != NULL) && (mat->GetMaterialType() & kMajorMaterialType) == kMaterialTypePlant) ! { ! ref->GetLatestPlantDimensions(&height, &spread ); ! if(spread > 0.0) ! _owningElement->RemoveWarning(kNoSpread); ! else ! _owningElement->AddWarning(kNoSpread); ! } } } |