mirror of
				https://github.com/subsurface/subsurface.git
				synced 2025-02-19 22:16:15 +00:00 
			
		
		
		
	Planner: add missing disclaimer
This may not be the best way to do it, but it's better than just printing "(null)". Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
		
							parent
							
								
									ff7bff48b8
								
							
						
					
					
						commit
						4ed8b5f86f
					
				
					 1 changed files with 7 additions and 3 deletions
				
			
		
							
								
								
									
										10
									
								
								planner.c
									
										
									
									
									
								
							
							
						
						
									
										10
									
								
								planner.c
									
										
									
									
									
								
							|  | @ -24,7 +24,6 @@ int decostoplevels[] = { 0, 3000, 6000, 9000, 12000, 15000, 18000, 21000, 24000, | ||||||
| 				  180000, 190000, 200000, 220000, 240000, 260000, 280000, 300000, | 				  180000, 190000, 200000, 220000, 240000, 260000, 280000, 300000, | ||||||
| 				  320000, 340000, 360000, 380000 }; | 				  320000, 340000, 360000, 380000 }; | ||||||
| double plangflow, plangfhigh; | double plangflow, plangfhigh; | ||||||
| char *disclaimer; |  | ||||||
| 
 | 
 | ||||||
| #if DEBUG_PLAN | #if DEBUG_PLAN | ||||||
| void dump_plan(struct diveplan *diveplan) | void dump_plan(struct diveplan *diveplan) | ||||||
|  | @ -491,8 +490,13 @@ static void add_plan_to_notes(struct diveplan *diveplan, struct dive *dive) | ||||||
| 	if (!dp) | 	if (!dp) | ||||||
| 		return; | 		return; | ||||||
| 
 | 
 | ||||||
| 	snprintf(buffer, sizeof(buffer), translate("gettextFromC", "%s\nSubsurface dive plan\nbased on GFlow = %.0f and GFhigh = %.0f\n\n"), | 	snprintf(buffer, sizeof(buffer), | ||||||
| 		 disclaimer, diveplan->gflow * 100, diveplan->gfhigh * 100); | 		 translate("gettextFromC", "%s\nSubsurface dive plan\nbased on GFlow = %d and GFhigh = %d\n\n"), | ||||||
|  | 		 translate("gettextFromC", "DISCLAIMER / WARNING: THIS IS A NEW IMPLEMENTATION OF THE BUHLMANN " | ||||||
|  | 			   "ALGORITHM AND A DIVE PLANNER IMPLEMENTION BASED ON THAT WHICH HAS " | ||||||
|  | 			   "RECEIVED ONLY A LIMITED AMOUNT OF TESTING. WE STRONGLY RECOMMEND NOT TO " | ||||||
|  | 			   "PLAN DIVES SIMPLY BASED ON THE RESULTS GIVEN HERE."), | ||||||
|  | 		 diveplan->gflow, diveplan->gfhigh); | ||||||
| 	/* we start with gas 0, then check if that was changed */ | 	/* we start with gas 0, then check if that was changed */ | ||||||
| 	o2 = get_o2(&dive->cylinder[0].gasmix); | 	o2 = get_o2(&dive->cylinder[0].gasmix); | ||||||
| 	he = get_he(&dive->cylinder[0].gasmix); | 	he = get_he(&dive->cylinder[0].gasmix); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue