Remove unused main/script.h
This commit is contained in:
parent
ccbd566860
commit
9cf2df4400
|
@ -67,9 +67,6 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
||||||
#include "editor/editor.h"
|
#include "editor/editor.h"
|
||||||
#endif
|
#endif
|
||||||
#include "collide.h"
|
#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_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)
|
#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) {
|
if (robot->shields < 0) {
|
||||||
|
|
||||||
#ifdef SCRIPT
|
|
||||||
script_notify(NT_ROBOT_DIED, robot - Objects);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef SHAREWARE
|
#ifndef SHAREWARE
|
||||||
#ifdef NETWORK
|
#ifdef NETWORK
|
||||||
if (Game_mode & GM_MULTI) {
|
if (Game_mode & GM_MULTI) {
|
||||||
|
|
|
@ -97,9 +97,6 @@ COPYRIGHT 1993-1998 PARALLAX SOFTWARE CORPORATION. ALL RIGHTS RESERVED.
|
||||||
#include "editor/editor.h"
|
#include "editor/editor.h"
|
||||||
#endif
|
#endif
|
||||||
#include "custom.h"
|
#include "custom.h"
|
||||||
#ifdef SCRIPT
|
|
||||||
#include "script.h"
|
|
||||||
#endif
|
|
||||||
#include "byteswap.h"
|
#include "byteswap.h"
|
||||||
#include "segment.h"
|
#include "segment.h"
|
||||||
#include "gameseg.h"
|
#include "gameseg.h"
|
||||||
|
@ -683,11 +680,6 @@ void StartNewGame(int start_level)
|
||||||
|
|
||||||
N_players = 1;
|
N_players = 1;
|
||||||
|
|
||||||
#ifdef SCRIPT
|
|
||||||
script_reset();
|
|
||||||
script_load("default.scr");
|
|
||||||
#endif
|
|
||||||
|
|
||||||
StartNewLevel(start_level);
|
StartNewLevel(start_level);
|
||||||
|
|
||||||
Players[Player_num].starting_level = start_level; // Mark where they started
|
Players[Player_num].starting_level = start_level; // Mark where they started
|
||||||
|
|
|
@ -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
|
|
Loading…
Reference in a new issue