Project

Profile

Help

HostedRedmine.com has moved to the Planio platform. All logins and passwords remained the same. All users will be able to login and use Redmine just as before. Read more...

Feature #846809 » 3.1-Replace-magic-number-of-max-move-frags.patch

Sveinung Kvilhaugsvik, 2019-11-12 10:41 AM

View differences:

client/gui-gtk-3.0/editprop.c
1928 1928
      switch (propid) {
1929 1929
      case OPID_UNIT_MOVES_LEFT:
1930 1930
        *pmin = 0;
1931
        *pmax = 65535; /* packets.def MOVEFRAGS */
1931
        *pmax = MAX_MOVE_FRAGS;
1932 1932
        *pstep = 1;
1933 1933
        *pbig_step = 5;
1934 1934
        return TRUE;
client/gui-gtk-3.22/editprop.c
1928 1928
      switch (propid) {
1929 1929
      case OPID_UNIT_MOVES_LEFT:
1930 1930
        *pmin = 0;
1931
        *pmax = 65535; /* packets.def MOVEFRAGS */
1931
        *pmax = MAX_MOVE_FRAGS;
1932 1932
        *pstep = 1;
1933 1933
        *pbig_step = 5;
1934 1934
        return TRUE;
client/gui-gtk-4.0/editprop.c
1928 1928
      switch (propid) {
1929 1929
      case OPID_UNIT_MOVES_LEFT:
1930 1930
        *pmin = 0;
1931
        *pmax = 65535; /* packets.def MOVEFRAGS */
1931
        *pmax = MAX_MOVE_FRAGS;
1932 1932
        *pstep = 1;
1933 1933
        *pbig_step = 5;
1934 1934
        return TRUE;
common/movement.h
22 22

  
23 23
#define SINGLE_MOVE     (terrain_control.move_fragments)
24 24
#define MOVE_COST_IGTER (terrain_control.igter_cost)
25
/* packets.def MOVEFRAGS */
26
#define MAX_MOVE_FRAGS  65535
25 27

  
26 28
struct unit_type;
27 29
struct terrain;
28
- 
(2-2/2)