mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Remove the air point at 0,0
Signed-off-by: Anton Lundin <glance@acc.umu.se> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									28943d2def
								
							
						
					
					
						commit
						1ec61e1288
					
				
					 1 changed files with 3 additions and 4 deletions
				
			
		|  | @ -1393,19 +1393,18 @@ void DivePlannerPointsModel::createTemporaryPlan() | |||
| 	// Get the user-input and calculate the dive info
 | ||||
| 	// Not sure if this is the place to create the diveplan...
 | ||||
| 	// We just start with a surface node at time = 0
 | ||||
| 	struct divedatapoint *dp = create_dp(0, 0, 0, 0, 0); | ||||
| 	dp->entered = TRUE; | ||||
| 	diveplan.dp = dp; | ||||
| 	diveplan.dp = NULL; | ||||
| 	int lastIndex = -1; | ||||
| 	for (int i = 0; i < rowCount(); i++) { | ||||
| 		divedatapoint p = at(i); | ||||
| 		int deltaT = lastIndex != -1 ? p.time - at(lastIndex).time : p.time; | ||||
| 		lastIndex = i; | ||||
| 		dp = plan_add_segment(&diveplan, deltaT, p.depth, p.o2, p.he, p.po2); | ||||
| 		plan_add_segment(&diveplan, deltaT, p.depth, p.o2, p.he, p.po2); | ||||
| 	} | ||||
| 	char *cache = NULL; | ||||
| 	tempDive = NULL; | ||||
| 	const char *errorString = NULL; | ||||
| 	struct divedatapoint *dp = NULL; | ||||
| 	for (int i = 0; i < MAX_CYLINDERS; i++) { | ||||
| 		cylinder_t *cyl = &stagingDive->cylinder[i]; | ||||
| 		if (cyl->depth.mm) { | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue