summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-16 16:47:09 +0000
committerharanp <haranp@c06c8d41-db1a-0410-9941-cceddc491573>2007-04-16 16:47:09 +0000
commit080cfb8002d95978b40c92596168bc8a71647b90 (patch)
tree2672bb3f32e81d588f53e95fc8d6f380d500a273
parent0a96b577fb1ffcd0596544de48cc5129dfc391dc (diff)
downloadcrawl-ref-080cfb8002d95978b40c92596168bc8a71647b90.tar.gz
crawl-ref-080cfb8002d95978b40c92596168bc8a71647b90.zip
Patches from debian package (Guus Sliepen.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1325 c06c8d41-db1a-0410-9941-cceddc491573
-rw-r--r--crawl-ref/docs/crawl.64
-rw-r--r--crawl-ref/source/describe.cc2
-rw-r--r--crawl-ref/source/dungeon.cc2
-rw-r--r--crawl-ref/source/effects.cc1
-rw-r--r--crawl-ref/source/it_use3.cc1
-rw-r--r--crawl-ref/source/libunix.cc6
-rw-r--r--crawl-ref/source/randart.cc2
-rw-r--r--crawl-ref/source/skills2.cc2
-rw-r--r--crawl-ref/source/tags.cc1
9 files changed, 13 insertions, 8 deletions
diff --git a/crawl-ref/docs/crawl.6 b/crawl-ref/docs/crawl.6
index fb24bdc6dc..5ce4add025 100644
--- a/crawl-ref/docs/crawl.6
+++ b/crawl-ref/docs/crawl.6
@@ -718,7 +718,7 @@ or secret doors adjacent to you.
The section of the viewing window which is coloured (with the '@' representing
you at the centre) is what you can see around you. The dark grey around it is
the parts of the level which you have visited, but cannot currently see. The
-'x' command lets you move the cursor around to get a description of the
+\&'x' command lets you move the cursor around to get a description of the
various dungeon features, and typing '?' when the cursor is over a monster
brings up a short description of that monster (these are all rather sketchy;
I'll write better descriptions when I have time). You can get a map of the
@@ -947,7 +947,7 @@ items (such as some weapons) by invoking them in this way.
You pick items up with the ',' (comma) command and drop them with the 'd'rop
command. When you are given a prompt like "drop which item?" or "pick up
<x>?", if you type a number before either the letter of the item, or 'y' or
-'n' for yes or no, you will drop or get that quantity of the item.
+\&'n' for yes or no, you will drop or get that quantity of the item.
.PP
Typing 'i' gives you an inventory of what you are carrying. When you
are given a prompt like "Throw [or wield, wear, etc] which item?", you can
diff --git a/crawl-ref/source/describe.cc b/crawl-ref/source/describe.cc
index 1939c36819..a7ea81c9e2 100644
--- a/crawl-ref/source/describe.cc
+++ b/crawl-ref/source/describe.cc
@@ -82,7 +82,7 @@ static void append_value( std::string & description, int valu, bool plussed )
//---------------------------------------------------------------
static void print_description( const std::string &d )
{
- unsigned int nextLine = std::string::npos;
+ std::string::size_type nextLine = std::string::npos;
unsigned int currentPos = 0;
const unsigned int lineWidth = 70;
diff --git a/crawl-ref/source/dungeon.cc b/crawl-ref/source/dungeon.cc
index 523012a1d0..8597e53ac3 100644
--- a/crawl-ref/source/dungeon.cc
+++ b/crawl-ref/source/dungeon.cc
@@ -3525,7 +3525,7 @@ void give_armour(monsters *mon, int level)
break;
case MONS_ORC_WARLORD:
- // being at the top has it's priviledges
+ // being at the top has its privileges
if (one_chance_in(3))
level = MAKE_GOOD_ITEM;
// deliberate fall through
diff --git a/crawl-ref/source/effects.cc b/crawl-ref/source/effects.cc
index 8ad6f87067..7c51e472d8 100644
--- a/crawl-ref/source/effects.cc
+++ b/crawl-ref/source/effects.cc
@@ -13,6 +13,7 @@
#include "AppHdr.h"
#include "effects.h"
+#include <cstdlib>
#include <string.h>
#include <stdio.h>
diff --git a/crawl-ref/source/it_use3.cc b/crawl-ref/source/it_use3.cc
index b01eeb419f..bb231b2e1a 100644
--- a/crawl-ref/source/it_use3.cc
+++ b/crawl-ref/source/it_use3.cc
@@ -16,6 +16,7 @@
#include "AppHdr.h"
#include "it_use3.h"
+#include <cstdlib>
#include <string.h>
#include "externs.h"
diff --git a/crawl-ref/source/libunix.cc b/crawl-ref/source/libunix.cc
index 1ef0d2ea45..65eac622ef 100644
--- a/crawl-ref/source/libunix.cc
+++ b/crawl-ref/source/libunix.cc
@@ -332,6 +332,9 @@ void unixcurses_startup( void )
void unixcurses_shutdown()
{
+ // resetty();
+ endwin();
+
tcsetattr(0, TCSAFLUSH, &def_term);
#ifdef USE_UNIX_SIGNALS
@@ -343,9 +346,6 @@ void unixcurses_shutdown()
signal(SIGINT, SIG_DFL);
#endif
#endif
-
- // resetty();
- endwin();
}
diff --git a/crawl-ref/source/randart.cc b/crawl-ref/source/randart.cc
index 97218ee036..2cfa9ec8aa 100644
--- a/crawl-ref/source/randart.cc
+++ b/crawl-ref/source/randart.cc
@@ -17,6 +17,8 @@
#include "AppHdr.h"
#include "randart.h"
+#include <cstdlib>
+#include <climits>
#include <string.h>
#include <stdio.h>
diff --git a/crawl-ref/source/skills2.cc b/crawl-ref/source/skills2.cc
index 60041b08d7..31832fb5d6 100644
--- a/crawl-ref/source/skills2.cc
+++ b/crawl-ref/source/skills2.cc
@@ -82,7 +82,7 @@ const char *skills[50][6] =
{NULL}, // 24- empty
{"Spellcasting", "Magician", "Thaumaturge", "Eclecticist", "Sorcerer", "Archmage"}, // 25
- {"Conjurations", "Ruinous", "Conjurer", "Destroyer", "Devastator", "Annihilator"},
+ {"Conjurations", "Ruiner", "Conjurer", "Destroyer", "Devastator", "Annihilator"},
{"Enchantments", "Charm-Maker", "Infuser", "Bewitcher", "Enchanter", "Spellbinder"},
{"Summonings", "Caller", "Summoner", "Convoker", "Demonologist", "Hellbinder"},
{"Necromancy", "Grave Robber", "Reanimator", "Necromancer", "Thanatomancer", "%s of Death"},
diff --git a/crawl-ref/source/tags.cc b/crawl-ref/source/tags.cc
index 1c75c8a4b2..6cebd63dc1 100644
--- a/crawl-ref/source/tags.cc
+++ b/crawl-ref/source/tags.cc
@@ -55,6 +55,7 @@
*/
+#include <cstdlib>
#include <stdio.h>
#include <string.h> // for memcpy