Changeset aaf2113307 in tspsg for src/globals.h


Ignore:
Timestamp:
Aug 3, 2009, 5:15:46 PM (15 years ago)
Author:
Oleksii Serdiuk
Branches:
0.1.3.145-beta1-symbian, 0.1.4.170-beta2-bb10, appveyor, imgbot, master, readme
Children:
f44855d99e
Parents:
e96fad3079
Message:

+ Implemented File/Save? action.
+ Added "Save Solution" and "Back to Task" buttons to Solution tab for better usability.

  • Increased maximum number of cities to 20. Solving for 18-20 cities is already takes much time, so I thought it doesn't make sense to increase more.
  • Columns and rows are now resized to contents on all platforms.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/globals.h

    re96fad3079 raaf2113307  
    3838#define DEF_RAND_MIN 1
    3939#define DEF_RAND_MAX 10
     40#define DEF_NUM_CITIES 5
    4041#define DEF_OFFSET 100
    4142#define DEF_FONT_FAMILY "Courier New"
     
    5657#define ZKT_VERSION quint8(1)
    5758
     59// Maximum available number of cities
     60#define MAX_NUM_CITIES 20
    5861// This value means infinity :-)
    5962#ifndef INFINITY
     
    6366#define INFSTR "---"
    6467
     68// Let's check that default number of cities is sane (<= MAX_NUM_CITIES)
     69#if DEF_NUM_CITIES > MAX_NUM_CITIES
     70        #undef DEF_NUM_CITIES
     71        #define DEF_NUM_CITIES MAX_NUM_CITIES
     72#endif
     73
    6574#endif // GLOBALS_H
Note: See TracChangeset for help on using the changeset viewer.