diff src/ghostwriter.asm @ 174:932e91074bdb

CHANGE: Clarify Travel Gases with "---" as change depth CHANGE: Enable "Change Depth" Menu only for deco gases
author heinrichsweikamp
date Sun, 05 Oct 2014 15:36:17 +0200
parents 8bcb064b4fb8
children f515712d8cd6
line wrap: on
line diff
--- a/src/ghostwriter.asm	Wed Oct 01 10:31:53 2014 +0200
+++ b/src/ghostwriter.asm	Sun Oct 05 15:36:17 2014 +0200
@@ -806,6 +806,13 @@
 	goto	surfloop					; and return to surfaceloop
 
 ghostwriter_end_dive_common_sim:
+    tstfsz  surface_interval+0              ; Was interval zero?
+    bra     ghostwriter_end_dive_common_sim2    ; No
+    tstfsz  surface_interval+1              ; Was interval zero?
+    bra     ghostwriter_end_dive_common_sim2    ; No
+    bra     ghostwriter_end_dive_common     ; Yes, done.
+
+ghostwriter_end_dive_common_sim2:
     movf    divemins+0,W
     addwf   surface_interval+0,F
     movf    divemins+1,W