Changeset 1788 for trunk/site/myboat.php

Show
Ignore:
Timestamp:
09/06/10 14:27:57 (21 months ago)
Author:
spf
Message:

added races description + factorization of symbols for race special instructions [See #34]

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/site/myboat.php

    r1787 r1788  
    167167         $wp_maparea=$wp['maparea']; 
    168168   
    169          $wpsymbols = ""; 
    170          switch ($wp['wpformat'] & (WP_CROSS_CLOCKWISE|WP_CROSS_ANTI_CLOCKWISE)) { 
    171          case WP_CROSS_ANTI_CLOCKWISE: 
    172            $wpsymbols .= "↺ "; 
    173            break; 
    174          case WP_CROSS_CLOCKWISE: 
    175            $wpsymbols .= "↻ "; 
    176            break; 
    177          default: 
    178          } 
    179          if (($wp['wpformat'] & WP_CROSS_ONCE) == WP_CROSS_ONCE) { 
    180            $wpsymbols .= "⊅"; 
    181          }  
    182           
    183          switch ($wp['wpformat'] & (WP_ICE_GATE_N|WP_ICE_GATE_S)) { 
    184          case WP_ICE_GATE_S: 
    185            $wpsymbols .= "⥴"; 
    186            break; 
    187          case WP_ICE_GATE_N: 
    188            $wpsymbols .= "⥲"; 
    189          default: 
    190          } 
     169         $wpsymbols = getWaypointHTMLSymbols($wp['wpformat']); 
    191170 
    192171         $status_content="<div class="infobulle"><b>WP" . $wp_num . " ".$wpsymbols."</b><br />";