Remove unused main/script.h

This commit is contained in:
Kp 2013-03-09 20:29:20 +00:00
parent ccbd566860
commit 9cf2df4400
3 changed files with 0 additions and 28 deletions

View file

@ -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) {

View file

@ -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

View file

@ -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