forked from github/server
Das mit dem neuen Befehls-handling zieht Kreise.
This commit is contained in:
parent
d7816c7b2d
commit
198f2cf90f
|
@ -23,8 +23,9 @@
|
|||
ImproveFloatingPointConsistency="TRUE"
|
||||
AdditionalIncludeDirectories="../kernel,../util,../..,.."
|
||||
PreprocessorDefinitions="_WINDOWS,WIN32"
|
||||
BasicRuntimeChecks="0"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
BufferSecurityCheck="TRUE"
|
||||
DisableLanguageExtensions="TRUE"
|
||||
UsePrecompiledHeader="0"
|
||||
PrecompiledHeaderThrough="stdafx.h"
|
||||
|
|
|
@ -128,8 +128,9 @@
|
|||
ImproveFloatingPointConsistency="TRUE"
|
||||
AdditionalIncludeDirectories="../kernel,../util,../..,.."
|
||||
PreprocessorDefinitions="_WINDOWS,WIN32"
|
||||
BasicRuntimeChecks="0"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
BufferSecurityCheck="TRUE"
|
||||
DisableLanguageExtensions="TRUE"
|
||||
UsePrecompiledHeader="0"
|
||||
PrecompiledHeaderThrough="stdafx.h"
|
||||
|
|
|
@ -3465,7 +3465,7 @@ setdefaults (void)
|
|||
if (idle(u->faction)) {
|
||||
set_order(&u->thisorder, default_order(u->faction->locale));
|
||||
} else {
|
||||
set_order(&u->thisorder, ord);
|
||||
set_order(&u->thisorder, copy_order(ord));
|
||||
}
|
||||
break;
|
||||
} else {
|
||||
|
@ -3489,7 +3489,7 @@ setdefaults (void)
|
|||
break;
|
||||
|
||||
case K_WEREWOLF:
|
||||
set_order(&u->thisorder, ord);
|
||||
set_order(&u->thisorder, copy_order(ord));
|
||||
break;
|
||||
|
||||
/* Wird je diese Ausschliesslichkeit aufgehoben, muss man aufpassen
|
||||
|
@ -3525,7 +3525,7 @@ setdefaults (void)
|
|||
break;
|
||||
|
||||
default:
|
||||
set_order(&u->lastorder, u->thisorder);
|
||||
set_order(&u->lastorder, copy_order(u->thisorder));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
@ -3667,7 +3667,6 @@ defaultorders (void)
|
|||
cmd = strdup(getstrtoken());
|
||||
set_order(&u->lastorder, parse_order(cmd, u->faction->locale));
|
||||
free(cmd);
|
||||
free_order(u->lastorder); /* parse_order & set_order have both increased the refcount */
|
||||
*ordp = ord->next;
|
||||
ord->next = NULL;
|
||||
free_order(ord);
|
||||
|
|
|
@ -783,7 +783,6 @@ recruit_dracoids(unit * dragon, int size)
|
|||
new_order = parse_order(buf, default_locale);
|
||||
#ifdef LASTORDER
|
||||
set_order(&un->lastorder, new_order);
|
||||
free_order(new_order);
|
||||
#else
|
||||
addlist(&un->orders, new_order);
|
||||
#endif
|
||||
|
@ -974,10 +973,9 @@ plan_monsters(void)
|
|||
break;
|
||||
}
|
||||
if (long_order) {
|
||||
set_order(&u->thisorder, long_order);
|
||||
set_order(&u->thisorder, copy_order(long_order));
|
||||
#ifdef LASTORDER
|
||||
set_order(&u->lastorder, long_order);
|
||||
free_order(new_order); /* parse_order & set_order have both increased the refcount */
|
||||
set_order(&u->lastorder, copy_order(long_order));
|
||||
#else
|
||||
addlist(&u->orders, long_order);
|
||||
#endif
|
||||
|
|
|
@ -428,8 +428,8 @@ teach(unit * u, struct order * ord)
|
|||
set_order(&u->lastorder, new_order);
|
||||
#else
|
||||
replace_order(ord, new_order);
|
||||
#endif
|
||||
free_order(new_order); /* parse_order & set_order have each increased the refcount */
|
||||
#endif
|
||||
}
|
||||
if (academy && sk!=NOSKILL) {
|
||||
academy = academy/30; /* anzahl gelehrter wochen, max. 10 */
|
||||
|
|
|
@ -74,8 +74,9 @@
|
|||
ImproveFloatingPointConsistency="TRUE"
|
||||
AdditionalIncludeDirectories="../kernel,../util,../..,.."
|
||||
PreprocessorDefinitions="_WINDOWS,WIN32"
|
||||
BasicRuntimeChecks="0"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
BufferSecurityCheck="TRUE"
|
||||
DisableLanguageExtensions="TRUE"
|
||||
UsePrecompiledHeader="0"
|
||||
PrecompiledHeaderThrough="stdafx.h"
|
||||
|
|
|
@ -933,8 +933,8 @@ build_building(unit * u, const building_type * btype, int want, order * ord)
|
|||
set_order(&u->lastorder, new_order);
|
||||
#else
|
||||
replace_order(ord, new_order);
|
||||
#endif
|
||||
free_order(new_order);
|
||||
#endif
|
||||
|
||||
b->size += built;
|
||||
update_lighthouse(b);
|
||||
|
@ -1026,8 +1026,8 @@ create_ship(region * r, unit * u, const struct ship_type * newtype, int want, or
|
|||
set_order(&u->lastorder, new_order);
|
||||
#else
|
||||
replace_order(ord, new_order);
|
||||
#endif
|
||||
free_order(new_order);
|
||||
#endif
|
||||
|
||||
build_ship(u, sh, want);
|
||||
}
|
||||
|
|
|
@ -75,8 +75,9 @@
|
|||
ImproveFloatingPointConsistency="TRUE"
|
||||
AdditionalIncludeDirectories="../util,../..,.."
|
||||
PreprocessorDefinitions="_WINDOWS,WIN32"
|
||||
BasicRuntimeChecks="0"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
BufferSecurityCheck="TRUE"
|
||||
DisableLanguageExtensions="TRUE"
|
||||
UsePrecompiledHeader="0"
|
||||
PrecompiledHeaderThrough="stdafx.h"
|
||||
|
|
|
@ -915,8 +915,8 @@ cycle_route(order * ord, unit *u, int gereist)
|
|||
set_order(&u->lastorder, norder);
|
||||
#else
|
||||
replace_order(ord, norder);
|
||||
#endif
|
||||
free_order(norder);
|
||||
#endif
|
||||
}
|
||||
|
||||
static boolean
|
||||
|
@ -2067,7 +2067,6 @@ piracy_cmd(unit *u, struct order * ord)
|
|||
sprintf(buf, "%s %s", locale_string(u->faction->locale, keywords[K_MOVE]),
|
||||
locale_string(u->faction->locale, directions[target_dir]));
|
||||
set_order(&u->thisorder, parse_order(buf, u->faction->locale));
|
||||
free_order(u->thisorder); /* parse_order & set_order have each increased the refcount */
|
||||
|
||||
/* Bewegung ausführen */
|
||||
init_tokens(u->thisorder);
|
||||
|
|
|
@ -98,6 +98,7 @@ void
|
|||
free_order(order * ord)
|
||||
{
|
||||
if (ord!=NULL) {
|
||||
assert(ord->next==0);
|
||||
release_data(ord->data);
|
||||
free(ord);
|
||||
}
|
||||
|
@ -122,7 +123,7 @@ set_order(struct order ** destp, struct order * src)
|
|||
{
|
||||
if (*destp==src) return;
|
||||
free_order(*destp);
|
||||
*destp = copy_order(src);
|
||||
*destp = src;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
|
@ -1133,7 +1133,6 @@ readunit(FILE * F)
|
|||
if (ord!=NULL) {
|
||||
#ifdef LASTORDER
|
||||
set_order(&u->lastorder, ord);
|
||||
free_order(ord);
|
||||
#else
|
||||
addlist(&u->orders, ord);
|
||||
#endif
|
||||
|
|
|
@ -23,8 +23,9 @@
|
|||
ImproveFloatingPointConsistency="TRUE"
|
||||
AdditionalIncludeDirectories="../kernel,../util,../..,.."
|
||||
PreprocessorDefinitions="_WINDOWS,WIN32"
|
||||
BasicRuntimeChecks="0"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
BufferSecurityCheck="TRUE"
|
||||
DisableLanguageExtensions="TRUE"
|
||||
UsePrecompiledHeader="0"
|
||||
PrecompiledHeaderThrough="stdafx.h"
|
||||
|
|
|
@ -23,8 +23,9 @@
|
|||
ImproveFloatingPointConsistency="TRUE"
|
||||
AdditionalIncludeDirectories="../kernel,../util,../..,.."
|
||||
PreprocessorDefinitions="_WINDOWS,WIN32"
|
||||
BasicRuntimeChecks="0"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
BufferSecurityCheck="TRUE"
|
||||
DisableLanguageExtensions="TRUE"
|
||||
UsePrecompiledHeader="0"
|
||||
PrecompiledHeaderThrough="stdafx.h"
|
||||
|
|
|
@ -74,8 +74,9 @@
|
|||
ImproveFloatingPointConsistency="TRUE"
|
||||
AdditionalIncludeDirectories="../kernel,../util,../..,.."
|
||||
PreprocessorDefinitions="_WINDOWS,WIN32"
|
||||
BasicRuntimeChecks="0"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
BufferSecurityCheck="TRUE"
|
||||
DisableLanguageExtensions="TRUE"
|
||||
UsePrecompiledHeader="0"
|
||||
PrecompiledHeaderThrough="stdafx.h"
|
||||
|
|
|
@ -23,8 +23,9 @@
|
|||
ImproveFloatingPointConsistency="TRUE"
|
||||
AdditionalIncludeDirectories="../util,../kernel,../..,.."
|
||||
PreprocessorDefinitions="_WINDOWS,WIN32"
|
||||
BasicRuntimeChecks="0"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
BufferSecurityCheck="TRUE"
|
||||
DisableLanguageExtensions="TRUE"
|
||||
UsePrecompiledHeader="0"
|
||||
PrecompiledHeaderThrough="stdafx.h"
|
||||
|
|
|
@ -127,8 +127,9 @@
|
|||
ImproveFloatingPointConsistency="TRUE"
|
||||
AdditionalIncludeDirectories="../..,.."
|
||||
PreprocessorDefinitions="_WINDOWS,WIN32"
|
||||
BasicRuntimeChecks="0"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
BufferSecurityCheck="TRUE"
|
||||
DisableLanguageExtensions="TRUE"
|
||||
UsePrecompiledHeader="0"
|
||||
PrecompiledHeaderThrough="stdafx.h"
|
||||
|
|
|
@ -152,8 +152,9 @@
|
|||
AdditionalIncludeDirectories="../common/kernel,../common/gamecode,../common/util,../common,.."
|
||||
PreprocessorDefinitions="_CONSOLE,WIN32"
|
||||
StringPooling="TRUE"
|
||||
BasicRuntimeChecks="0"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
BufferSecurityCheck="TRUE"
|
||||
DisableLanguageExtensions="FALSE"
|
||||
UsePrecompiledHeader="0"
|
||||
PrecompiledHeaderThrough="stdafx.h"
|
||||
|
|
|
@ -151,8 +151,9 @@
|
|||
ImproveFloatingPointConsistency="TRUE"
|
||||
AdditionalIncludeDirectories="../common/kernel,../common/gamecode,../common/util,../common,.."
|
||||
PreprocessorDefinitions="_CONSOLE,WIN32"
|
||||
BasicRuntimeChecks="0"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
BufferSecurityCheck="TRUE"
|
||||
DisableLanguageExtensions="FALSE"
|
||||
UsePrecompiledHeader="0"
|
||||
PrecompiledHeaderThrough="stdafx.h"
|
||||
|
|
|
@ -86,8 +86,9 @@
|
|||
ImproveFloatingPointConsistency="TRUE"
|
||||
AdditionalIncludeDirectories="../common/kernel,../common/gamecode,../common/util,../common,.."
|
||||
PreprocessorDefinitions="_CONSOLE,WIN32"
|
||||
BasicRuntimeChecks="0"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
BufferSecurityCheck="TRUE"
|
||||
DisableLanguageExtensions="TRUE"
|
||||
UsePrecompiledHeader="0"
|
||||
PrecompiledHeaderThrough="stdafx.h"
|
||||
|
|
Loading…
Reference in New Issue