521 case 0x9C: { // {CURRENCY64} |
521 case 0x9C: { // {CURRENCY64} |
522 buff = FormatGenericCurrency(buff, &_currency_specs[_opt.currency], GetParamInt64(), false); |
522 buff = FormatGenericCurrency(buff, &_currency_specs[_opt.currency], GetParamInt64(), false); |
523 break; |
523 break; |
524 } |
524 } |
525 |
525 |
526 case 0x9D: { // {CHECKPOINT} |
526 case 0x9D: { // {WAYPOINT} |
527 Checkpoint *cp = &_checkpoints[GET_DPARAM16(0)]; |
527 Waypoint *cp = &_waypoints[GET_DPARAM16(0)]; |
528 StringID str; |
528 StringID str; |
529 int idx; |
529 int idx; |
530 if (~cp->town_or_string & 0xC000) { |
530 if (~cp->town_or_string & 0xC000) { |
531 GetParamInt32(); // skip it |
531 GetParamInt32(); // skip it |
532 str = cp->town_or_string; |
532 str = cp->town_or_string; |
533 } else { |
533 } else { |
534 idx = (cp->town_or_string >> 8) & 0x3F; |
534 idx = (cp->town_or_string >> 8) & 0x3F; |
535 if (idx == 0) { |
535 if (idx == 0) { |
536 str = STR_CHECKPOINTNAME_CITY; |
536 str = STR_WAYPOINTNAME_CITY; |
537 } else { |
537 } else { |
538 InjectDparam(1); |
538 InjectDparam(1); |
539 SET_DPARAM16(1, idx + 1); |
539 SET_DPARAM16(1, idx + 1); |
540 str = STR_CHECKPOINTNAME_CITY_SERIAL; |
540 str = STR_WAYPOINTNAME_CITY_SERIAL; |
541 } |
541 } |
542 SET_DPARAM16(0, cp->town_or_string & 0xFF); |
542 SET_DPARAM16(0, cp->town_or_string & 0xFF); |
543 } |
543 } |
544 |
544 |
545 buff = GetString(buff, str); |
545 buff = GetString(buff, str); |