eliminate config.h from triggers.

was only used once, for a single fset macro
This commit is contained in:
Enno Rehling 2016-11-23 17:52:57 +01:00
parent 88f5bfaf47
commit 13c29c136c
11 changed files with 3 additions and 12 deletions

View file

@ -17,7 +17,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
**/ **/
#include <platform.h> #include <platform.h>
#include <kernel/config.h>
#include "createcurse.h" #include "createcurse.h"
/* kernel includes */ /* kernel includes */

View file

@ -17,7 +17,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
**/ **/
#include <platform.h> #include <platform.h>
#include <kernel/config.h>
#include "createunit.h" #include "createunit.h"
/* kernel includes */ /* kernel includes */

View file

@ -28,6 +28,7 @@ extern "C" {
struct region; struct region;
struct faction; struct faction;
struct unit; struct unit;
struct race;
extern struct trigger_type tt_createunit; extern struct trigger_type tt_createunit;

View file

@ -10,7 +10,6 @@
without prior permission by the authors of Eressea. without prior permission by the authors of Eressea.
*/ */
#include <platform.h> #include <platform.h>
#include <kernel/config.h>
#include "gate.h" #include "gate.h"
/* kernel includes */ /* kernel includes */

View file

@ -17,7 +17,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
**/ **/
#include <platform.h> #include <platform.h>
#include <kernel/config.h>
#include "giveitem.h" #include "giveitem.h"
/* kernel includes */ /* kernel includes */

View file

@ -17,7 +17,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
**/ **/
#include <platform.h> #include <platform.h>
#include <kernel/config.h>
#include "killunit.h" #include "killunit.h"
#include <kernel/region.h> #include <kernel/region.h>

View file

@ -17,7 +17,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
**/ **/
#include <platform.h> #include <platform.h>
#include <kernel/config.h>
#include "shock.h" #include "shock.h"
#include "magic.h" #include "magic.h"
@ -84,7 +83,7 @@ static void do_shock(unit * u, const char *reason)
} }
/* Dies ist ein Hack, um das skillmod und familiar-Attribut beim Mage /* Dies ist ein Hack, um das skillmod und familiar-Attribut beim Mage
* zu löschen wenn der Familiar getötet wird. Da sollten wir über eine * zu l<EFBFBD>schen wenn der Familiar get<EFBFBD>tet wird. Da sollten wir <EFBFBD>ber eine
* saubere Implementation nachdenken. */ * saubere Implementation nachdenken. */
if (strcmp(reason, "trigger") == 0) { if (strcmp(reason, "trigger") == 0) {

View file

@ -17,7 +17,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
**/ **/
#include <platform.h> #include <platform.h>
#include <kernel/config.h>
#include "timeout.h" #include "timeout.h"
/* util includes */ /* util includes */

View file

@ -17,7 +17,6 @@ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
**/ **/
#include <platform.h> #include <platform.h>
#include <kernel/config.h>
/* triggers includes */ /* triggers includes */
#include <triggers/changefaction.h> #include <triggers/changefaction.h>

View file

@ -10,7 +10,6 @@
without prior permission by the authors of Eressea. without prior permission by the authors of Eressea.
*/ */
#include <platform.h> #include <platform.h>
#include <kernel/config.h>
#include "unguard.h" #include "unguard.h"
/* kernel includes */ /* kernel includes */
@ -34,7 +33,7 @@ static int unguard_handle(trigger * t, void *data)
building *b = (building *)t->data.v; building *b = (building *)t->data.v;
if (b) { if (b) {
fset(b, BLD_UNGUARDED); b-> flags |= BLD_UNGUARDED;
} }
else { else {
log_error("could not perform unguard::handle()\n"); log_error("could not perform unguard::handle()\n");

View file

@ -8,7 +8,6 @@ without prior permission by the authors of Eressea.
*/ */
#include <platform.h> #include <platform.h>
#include <kernel/config.h>
#include "unitmessage.h" #include "unitmessage.h"
/* kernel includes */ /* kernel includes */