This commit is contained in:
Enno Rehling 2017-12-28 10:50:08 +01:00
parent a6ae5a9e93
commit ea0acc49d9
6 changed files with 3 additions and 10 deletions

View File

@ -495,7 +495,7 @@ static order *make_movement_order(unit * u, const region * target, int moves,
{
region *r = u->region;
region **plan;
int bytes, position = 0;
int position = 0;
char zOrder[128], *bufp = zOrder;
size_t size = sizeof(zOrder) - 1;
@ -507,6 +507,7 @@ static order *make_movement_order(unit * u, const region * target, int moves,
return NULL;
while (position != moves && plan[position + 1]) {
int bytes;
region *prev = plan[position];
region *next = plan[++position];
direction_t dir = reldirection(prev, next);

View File

@ -12,7 +12,7 @@ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
ACTION OF CONTRACT, NEGLIGENCE OR OTH19ER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
**/

View File

@ -22,8 +22,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
extern "C" {
#endif
#include <stddef.h>
typedef struct strlist {
struct strlist *next;
char *s;

View File

@ -10,10 +10,7 @@ This program may not be used, modified or distributed
without prior permission by the authors of Eressea.
*/
#include <platform.h>
#include "bsdstring.h"
#include "log.h"
#include "path.h"
#include "unicode.h"
#include <assert.h>

View File

@ -11,7 +11,6 @@
*/
#include <platform.h>
#include "message.h"
#include "strings.h"

View File

@ -1,7 +1,5 @@
#include <platform.h>
#include "variant.h"
#include <assert.h>
#include <stdlib.h>
#include <limits.h>