| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In webtiles, the same binary can run both, so this function returns whether
this particular game is controlled from console or tiles (there may be
spectators using either, possibly at the same time).
Declared constexpr in other build modes, so if we ever turn on C++11¹ mode,
they'll be as effective as #ifdefs. Without it, optimized builds may or may
not eliminate code that depends on it, debug builds won't.
[1]. While there are niceties like sane initialization of arrays, etc,
FreeBSD and MacOS use truly ancient compilers, so C++11 is currently not an
option.
|
|
|
|
|
| |
Having different prototypes for different ports without a good reason is bad.
After unification, it's easier to have, for example, two ports at once.
|
|
|
|
|
|
| |
Besides being non-standard and present only on some platforms, it cannot be
extended to Unicode as some characters expand or contract while being
upper/lowercased.
|
|
|
|
|
| |
Why the original coder did that instead of actually including the system
headers is beyond me.
|
|
|
|
| |
Even worse, it had two redundant implementations.
|
|
|
|
|
| |
The API doesn't provide a way to giveback a function key, so let's do our
own giveback buffer.
|
|\
| |
| |
| |
| | |
There are some issues left, like incorrect wrapping in some cases, but
we can fix them later.
|
| |
| |
| |
| | |
One was actually wrong, too -- mangling redefined explosions.
|
| |
| |
| |
| | |
No direction keys yet...
|
| |
| |
| |
| |
| |
| | |
now.
Word wrapping is yet to be corrected, just like in other UIs.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
CSET_IBM and CSET_DEC are now merely presets and don't change the I/O encoding.
Doing I/O using any encoding other than the one configured using LANG/LC_* is
just wrong and no well-behaving program should do that.
This does require changes on CAO/CDO, but they would fix problems with ttyrec
and spectating as well.
To fix: ncursesw replaces unrepresentable characters with spaces, we'll have
to replace them by hand.
|
| | |
|
|/
|
|
|
|
|
| |
"File:" is shown in your editor's status bar.
"Written by:" was used only for the first person who changed a file. We got
git for that now, and pre-DCSS history is so woefully inaccurate it doesn't
really matter.
|
|
|
|
| |
It's not used anymore, and was buggy on windows console.
|
|
|
|
| |
Untested since I can't compile tiles here...
|
|\
| |
| |
| |
| |
| | |
Conflicts:
crawl-ref/source/libgui.cc
crawl-ref/source/libgui.h
|
| |
| |
| |
| |
| |
| |
| | |
The line reader was always switching back to GOTO_CRT. When receiving
input from the message window, this ended up causing the screen to blank
and switch to the CRT layer. Adding a function get the current cursor
region allows the line reader to not change regions.
|
|\|
| |
| |
| |
| |
| |
| | |
Conflicts:
crawl-ref/source/libgui.cc
crawl-ref/source/libgui.h
crawl-ref/source/message.cc
|
| | |
|
|/
|
|
| |
They haven't been remimplemented outside these yet.
|
|
|
|
|
|
|
|
|
|
| |
The newline parameter to message_out is gone. Instead, a
pointer to the message line is passed which may lie outside
the message window. The window is then scrolled to make
that line the last line.
This also updates libnonunix.cc, but I haven't been able
to test those changes.
|
|
|
|
|
|
| |
This also removes you.where_are_you() so as not to require lua scripts to
know the value of C++ enums. This change also fixes stricmp incorrectly
falling through to strcmp on non-MSVC platforms.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Lots of little things here. The forward declarations for some
of these functions simply did not match the function definitions.
- clrscr() was declared twice
- cprintf(), putch(), putwch(), window(), clrscr() all
returned 'void' instead of 'int'.
- getch() and strlwr() were defined extern "C", but not
declared as such.
Also made libgui.cc functions behave like their ncurses equivalents,
except that our functions always return the ncurses 'OK' (0) response.
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
|
|
|
|
|
|
|
| |
against them in the make files like libunix/libgui/etc are.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8675 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
|
|
|
| |
same crash handling code as the console/ASCII version.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8546 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
| |
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@8218 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
| |
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@7054 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
|
|
| |
on the dungeon. Even smaller screens get the graphics shrunk (and thus slightly blurry.) Added full screen options and several predefined layouts for older and newer Eee PC resolutions.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6774 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
|
|
| |
replaced with SDL/OpenGL.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6550 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
| |
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@6158 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
|
|
|
|
| |
versions.
Removed jpeg's commented out code in the health bar drawing routine, as the reamining code is correct. (Thanks!)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4339 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
| |
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@4029 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
|
|
|
| |
in the tile code will have been untouched. :p
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3874 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
|
|
|
|
|
|
|
|
| |
when testing Ely's pacifying. (Currently only inappropriately reuses
TILE_NEW_STAIR, which will have to be replaced with something more distinctive
some time.)
Also add an option for colouring neutrals on the minimap (defaults to red,
like hostiles) and allow secondary item use by Ctrl-L-clicking on items in
inventory (firing weapons, unwielding rods, etc.)
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3830 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Most of these fall into the category:
- don't use struct to refer to a class, and vice versa
- msvc doesn't like unistd.h or dirent.h
Doesn't fix all the struct/class problems; I think I'll silence
those for now and move on because it's not all that important.
Tested on OS X.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3571 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
|
|
|
|
| |
huge number of files. Also correct file name comments.
No coding changes.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3539 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
| |
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3337 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
|
|
|
| |
or to drink blood from for vampires
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3313 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
|
|
|
|
|
|
|
| |
Add messages when entering or leaving the level map ('X') in tiles.
First attempts at outlining icons via cursor in tile tutorial.
(Currently this only works for monsters, though I'm not sure why...)
And some code clean-up for tiles and the tutorial.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3301 c06c8d41-db1a-0410-9941-cceddc491573
|
|
|
|
|
|
|
|
| |
output of ASCII item/monster symbols.
Also, fix non-tile compile and add a few comments to tiles.
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3298 c06c8d41-db1a-0410-9941-cceddc491573
|
|
git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@3194 c06c8d41-db1a-0410-9941-cceddc491573
|