*Finished cleaning the Win32 code so that the game compiles again.

*Fixed the SDF[0][0] being set to 1 when killing wandering or summoned monsters.

Chokboyz

git-svn-id: http://openexile.googlecode.com/svn/trunk@132 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
Chokboyz
2009-10-18 23:26:28 +00:00
parent a7893db77b
commit 5ebbe14d6f
32 changed files with 484 additions and 367 deletions

View File

@@ -1,17 +1,18 @@
#include "pc.h" // party_record_type
#include "location.h" // location
//#include "boe.text.h" // add_string_to_buf
#include "../boe.text.h" // add_string_to_buf
//#include "boe.main.h" // globals
#include "tools/soundtool.h" // play_sound
#include "../tools/soundtool.h" // play_sound
//#include "boe.combat.h" // hit_chance
//#include "boe.items.h" // place_item
//#include "boe.fields.h" // make_sfx
#include "tools/mathutil.h" // get_ran
//#include "boe.infodlg.h" // give_help
//#include "boe.party.h" // adjust_spell_menu
//#include "boe.itemdata.h" // return_dummy_item
//#include "boe.locutils.h" // is_container
//#include "globvar.h"
#include "../boe.items.h" // place_item
#include "../boe.fields.h" // make_sfx
#include "../tools/mathutil.h" // get_ran
#include "../boe.infodlg.h" // give_help
#include "../boe.party.h" // adjust_spell_menu
#include "../boe.itemdata.h" // return_dummy_item
#include "../boe.locutils.h" // is_container
#include "../globvar.h"
#include "consts.h"
void pc_record_type::kill(short type)
{
@@ -334,7 +335,7 @@ void pc_record_type::curse(short how_much)
{
if (!isAlive()) return;
status[STATUS_BLESS] = max(status[STATUS_BLESS] - how_much, -8);
status[STATUS_BLESS_CURSE] = max(status[STATUS_BLESS_CURSE] - how_much, -8);
sprintf ((char *) c_line, " %s cursed.",(char *) name);
add_string_to_buf((char *) c_line);
@@ -456,7 +457,7 @@ void pc_record_type::slow(short how_much)
{
if (!isAlive()) return;
status[STATUS_HASTE] = minmax(-8,8,status[STATUS_HASTE] - how_much);
status[STATUS_HASTE_SLOW] = minmax(-8,8,status[STATUS_HASTE_SLOW] - how_much);
if (how_much < 0)
sprintf ((char *) c_line, " %s hasted.",(char *) name);
else sprintf ((char *) c_line, " %s slowed.",(char *) name);