Treasure Hunt: fixed superfluous declaration of global vars.

ipv6
Clonkonaut 2017-01-03 16:50:13 +01:00
parent b984704812
commit e6af3d216a
7 changed files with 3 additions and 13 deletions

View File

@ -8,8 +8,10 @@
static g_is_initialized; // set after first player join
static g_max_player_num; // max number of players that were ever joined
static npc_pyrit, npc_dagobert, npc_tarzan, g_golden_shovel, g_flagpole, g_golden_idol, g_last_stone_door;
// Set in Objects.c
//static npc_dagobert, npc_tarzan, g_golden_shovel, g_flagpole, g_golden_idol, g_last_stone_door;
static g_got_gem_task, g_got_oil, g_goal, g_treasure_collected;
static npc_pyrit;
func DoInit(int first_player)
{

View File

@ -2,8 +2,6 @@
/* Dagobert dialogue */
static g_got_gem_task, g_got_oil, g_goal;
func Dlg_Dagobert_1(object clonk)
{
var gem = FindObject(Find_ID(GemOfPower), Find_AtRect(-20,-20,20,20));

View File

@ -2,8 +2,6 @@
/* Donald dialogue */
static g_golden_shovel;
func Dlg_Donald_1(object clonk)
{
if (g_golden_shovel)

View File

@ -2,8 +2,6 @@
/* Jane dialogue */
static npc_tarzan;
func Dlg_Jane_1(object clonk)
{
var msg = "$Jane1$"; // he's swinging all day instead of looking 4 gold

View File

@ -2,8 +2,6 @@
/* Pyrit dialogue */
static g_got_gem_task, g_got_oil;
func Dlg_Pyrit_1(object clonk)
{
var msg = "$Pyrit1$"; // almost done. oil found?

View File

@ -2,8 +2,6 @@
/* Riku dialogue */
static g_got_gem_task, g_treasure_collected;
func Dlg_Riku_1(object clonk)
{
if (g_treasure_collected) return CallDialogue(clonk, 1, "Gem");

View File

@ -2,8 +2,6 @@
#appendto Sequence
static npc_pyrit, g_goal;
func Intro_Init(object flagpole)
{
// Fix plane outside landscape for now