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 #657148 ยป IsCardinalDir.patch

Marko Lindqvist, 2017-05-03 05:28 AM

View differences:

freeciv/common/scriptcore/api_common_utilities.c 2016-08-03 08:30:09.076701584 +0300
125 125
}
126 126

  
127 127
/**************************************************************************
128
  Is the direction cardinal one?
129
**************************************************************************/
130
bool api_utilities_is_cardinal_dir(lua_State *L, Direction dir)
131
{
132
  return is_cardinal_dir(dir);
133
}
134

  
135
/**************************************************************************
128 136
  Lua script wants to warn about use of deprecated construct.
129 137
**************************************************************************/
130 138
void api_utilities_deprecation_warning(lua_State *L, char *method,
freeciv/common/scriptcore/api_common_utilities.h 2016-08-03 08:28:09.713004186 +0300
29 29
Direction api_utilities_dir_ccw(lua_State *L, Direction dir);
30 30
Direction api_utilities_dir_cw(lua_State *L, Direction dir);
31 31
Direction api_utilities_opposite_dir(lua_State *L, Direction dir);
32
bool api_utilities_is_cardinal_dir(lua_State *L, Direction dir);
32 33

  
33 34
const char *api_utilities_fc_version(lua_State *L);
34 35

  
freeciv/common/scriptcore/tolua_game.pkg 2016-08-03 08:27:52.789048051 +0300
502 502
   @ next_cw(lua_State *L, Direction self);
503 503
 Direction api_utilities_opposite_dir
504 504
   @ opposite(lua_State *L, Direction self);
505
 bool api_utilities_is_cardinal_dir
506
   @ is_cardinal(lua_State *L, Direction self);
505 507
}
506 508

  
507 509
$[
    (1-1/1)