From 9cf2df4400d19b7715c0537123def2f070b5b85e Mon Sep 17 00:00:00 2001 From: Kp Date: Sat, 9 Mar 2013 20:29:20 +0000 Subject: [PATCH] Remove unused main/script.h --- main/collide.c | 7 ------- main/gameseq.c | 8 -------- main/script.h | 13 ------------- 3 files changed, 28 deletions(-) delete mode 100644 main/script.h diff --git a/main/collide.c b/main/collide.c index cb20d5d29..724e756fd 100644 --- a/main/collide.c +++ b/main/collide.c @@ -67,9 +67,6 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. #include "editor/editor.h" #endif #include "collide.h" -#ifdef SCRIPT -#include "script.h" -#endif #define WALL_DAMAGE_SCALE (128) // Was 32 before 8:55 am on Thursday, September 15, changed by MK, walls were hurting me more than robots! #define WALL_DAMAGE_THRESHOLD (F1_0/3) @@ -851,10 +848,6 @@ int apply_damage_to_robot(object *robot, fix damage, int killer_objnum) if (robot->shields < 0) { -#ifdef SCRIPT - script_notify(NT_ROBOT_DIED, robot - Objects); -#endif - #ifndef SHAREWARE #ifdef NETWORK if (Game_mode & GM_MULTI) { diff --git a/main/gameseq.c b/main/gameseq.c index 4122685e9..5f00de5af 100644 --- a/main/gameseq.c +++ b/main/gameseq.c @@ -97,9 +97,6 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED. #include "editor/editor.h" #endif #include "custom.h" -#ifdef SCRIPT -#include "script.h" -#endif #include "byteswap.h" #include "segment.h" #include "gameseg.h" @@ -683,11 +680,6 @@ void StartNewGame(int start_level) N_players = 1; -#ifdef SCRIPT - script_reset(); - script_load("default.scr"); -#endif - StartNewLevel(start_level); Players[Player_num].starting_level = start_level; // Mark where they started diff --git a/main/script.h b/main/script.h deleted file mode 100644 index 2f007ff08..000000000 --- a/main/script.h +++ /dev/null @@ -1,13 +0,0 @@ -#ifndef _SCRIPT_H -#define _SCRIPT_H - -void script_notify(int nt_type, ...); -#define NT_ROBOT_DIED 1 - -void script_init(); -void script_reset(); // clear all functions and variabeles -int script_load(char *filename); -//int script_exec(char *function, char *args, ...); -void script_done(); - -#endif