Commit Graph

1083 Commits

Author SHA1 Message Date
nethack.allison
c181ce223c (from <Someone>) 2002-03-09 11:30:26 +00:00
cohrs
ec2bdba94c writing in fog
- if you engrave in a cloud, the surface type should only be "air" if you're
on the air level
2002-03-09 07:17:00 +00:00
cohrs
a9835fd23c more update_inventory calls
in passive_obj and erode_armor
2002-03-09 06:55:52 +00:00
cohrs
a35ca5e744 parallel unix make bits
- Pat noticed that makedefs -z makes both vis_tab.[ch], but they could be
built by two makes via make -j, causing corruption
- make -j at top level failed for similar reasons, added several
dependencies to ensure a valid ordering
- these changes will cause extra things to be built if you "make"
individual targets at the top level, but have little effect it you're a
real power user and "make" the actual target in the right directory
2002-03-09 06:41:49 +00:00
dean
d4d051af87 MPW #pragma unused updates 2002-03-09 05:08:27 +00:00
nethack.rankin
434754f89d vms update: sync Makefile.src with `make depend' 2002-03-09 04:47:49 +00:00
cohrs
ce22d17c01 lava effects while riding
- a case missed by the earlier lava patch, if you enter the lava while
mounted, your steed would be unaffected if you were lifesaved
- fix by making more code shared with the is_pool case
2002-03-09 04:10:24 +00:00
arromdee
97d7d7489b get rid of nori 2002-03-09 03:29:36 +00:00
nethack.allison
c839028a81 B10003 fixed. 2002-03-09 03:14:59 +00:00
jwalz
c7325ee019 Run 'make depend', after fixing up output. 2002-03-09 03:13:18 +00:00
nethack.allison
d34cc6f0d0 Something Janet pointed out. 2002-03-09 02:58:46 +00:00
cohrs
fb27e35694 fixing bad luck via sacrifice
- From a bug report: if sacrifice doesn't clear the timeout until prayer,
your bad luck is cleared, but if it does, your luck could remain negative
2002-03-09 02:56:46 +00:00
nethack.allison
388a35a8b3 (from <Someone>)
- fixed tab-stop order for player selection dialog
- minor changes to the dialog layout
2002-03-09 02:32:35 +00:00
jwalz
0846d6caf3 There's no point in mailing this out, but there doesn't seem to be a way
to stop it.
2002-03-09 02:20:28 +00:00
jwalz
e833424555 Make pre-ANSI compiler happy. 2002-03-09 01:59:47 +00:00
nethack.allison
04ee82d87d Remove a fixes34.0 entry that corresponded to removed code. 2002-03-09 01:08:54 +00:00
nethack.allison
f4a23fa572 bit 2002-03-09 00:56:39 +00:00
nethack.allison
422e8b22ae winhack.c mods
- change sprintf -> Sprintf macro
- fix sprintf syntax
- point to a www.nethack.org URL, rather than a Microsoft one
2002-03-09 00:43:14 +00:00
cohrs
e22c225c4e provide linux build instructions in the source distro 2002-03-08 23:41:57 +00:00
nethack.allison
587d65e171 Update dungeoneers list (<Someone>, Teemu). 2002-03-08 23:30:04 +00:00
nethack.allison
c58e5d7afd (from <Someone>)
This patch implements Michael's idea to have a "NetHack mode" for
keypresses. It only does the Alt-keys now, but it should be easy
to extend to pressing space in dialogs; I left that out as we still
have to agree on a new dialog look.

The setting that you choose from the menu is stored in the registry.
Reading and writing the registry is done on init_nhwindows and
exit_nhwindows; there also is a menu item to delete the registry
settings (which makes sure they are not stored again this session.)
This provides a framework for future registry settings.

Also,
Alt-tab should show the app title when a menu or text window is up.

I left the app title as it was, although I still favour "Graphical
Version" or "With Graphics"; Anyway, that's only one resource string.
2002-03-08 22:23:04 +00:00
nethack.allison
416331f4d1 slap against floor while riding
> Greetings! <Someone> suggested I report this bug to you:
> in 3.3.1, riding a horse while blind, I ate a bad carrot (to
> unblind myself) and got the message, "Blecch! Rotten food! The
> world spins and you slap against the floor." Upon regaining
> consciousness, I found I was still safely mounted on my steed,
> raising the question of what part of me could have "slapped
> against the floor." I thought I would have fallen off my
> horse, or at least have slumped against it. <Someone> said in his
> reply to me on rgrn: "Looks like Yet Another message that
> fails to take riding into account; should be easy enough for
> the DevTeam to fix, though, since it's one that's already
> being modified for levitation and the like." Hope this helps.
> Thanks very much! <email deleted>
>
2002-03-07 23:54:15 +00:00
nethack.allison
982fc9354b As Kevin pointed out. 2002-03-07 23:36:53 +00:00
nethack.allison
9940848030 follow-up to <Someone>'s patch.
I left a couple of prepanic() calls in there accidentally
when modifying the patch.

Michael
2002-03-07 23:24:11 +00:00
nethack.allison
8a984ed35e (from <Someone>)
Here's a patch that checks whether the common control
library is available and up-to-date

[slightly modified from <Someone>'s version to reduce
 indentation one level, and to fix wrap-around
 in the patch]
2002-03-07 23:09:59 +00:00
nethack.allison
53d5dcf83a Something <Someone> reported. Ensure that an early panic() doesn't
cause an access violation in win32 graphical port.
2002-03-07 21:50:20 +00:00
nethack.allison
101dcc48e0 (from <Someone>)
Here's the gcc makefile.
2002-03-07 21:12:51 +00:00
nethack.allison
2ca54bdc0d (from <Someone>)
Here's the gcc makefile. I also cleaned up the batch file a
little and added instructions to install.nt.

I copied most of the items from the existing Makefiles,
including the 32x32 tile support, even though that is not
available. This way comparing the makefiles is easiest :-)
2002-03-07 13:01:17 +00:00
nethack.allison
364a4fa882 win32 shknam updates 2002-03-06 19:02:49 +00:00
nethack.allison
b3452e1ca2 win32: Consistent Makefile naming now that we have at least 2
Makefile.nt -> Makefile.msc
2002-03-06 18:54:13 +00:00
nethack.allison
35df97d41c Support iflags.menu_tab_sep in the #enhance menu. 2002-03-06 17:46:49 +00:00
nethack.allison
d1b7781509 Ensure that vision is not used during done()
(and panic() which calls done())

This uses the flag that <Someone> recently added.

At least one crash in the past was caused by

? -> panic() -> done(11) -> * vision_recalc(2) -> newsym() -> crash!
if  u.ux and u.uy are 0
2002-03-06 16:51:17 +00:00
nethack.allison
7214e1f05c Ensure that each win/win32 source file has a copyright statement
and mentions the NetHack license.
2002-03-06 16:18:27 +00:00
nethack.allison
5037e538df (from Yitzhak)
Addresses <Someone>'s point that ALT-F4 in game-over, still brings up the
save/quit/cancel dialog box.  This makes ALT-F4 equivalent to quitting
without any further disclosure/windows, but makes sure the game exits
properly so it will save the bones and the record file.  I also cleaned
up the mhrip.c to use macros for all magic numbers.
2002-03-06 05:16:17 +00:00
cohrs
3ca42c2265 another "your corpse" case
- switch aobjnam() to use cxname, not xname
- update Tobjnam() comment, since it can still use xname w/o confusion

A specific case that's fixed: You begin bashing monsters with your corpse.
2002-03-06 04:14:30 +00:00
nethack.allison
3e582e40da (from <Someone>)
- added support for iflags.randomall (-@)
- echo yn_function selection to the message window (as From a bug report
2002-03-06 02:56:46 +00:00
nethack.allison
bc99fd14a6 weapon shattering follow-up 2002-03-06 02:05:14 +00:00
nethack.allison
233385401a more weapon shattering
The Kop Kaptain's rubber hose shatters from the force of your blow!
Rubber hoses are an individual exception that would need to be dealt
with explicitly, since the PLASTIC they're made of is floppy rather
than rigid as for other PLASTIC items.
2002-03-06 01:58:07 +00:00
nethack.allison
701b55783d *** empty log message *** 2002-03-06 01:43:01 +00:00
nethack.allison
a618b5ed03 <Someone>'s potion of polymorph suggestion
> Should a potion of polymorph autoidentify if the item dipped into it
> polymorphs into (as far as you know) the same item? It just seemed
> odd, choosing "Z - a wand of light" to dip into a potion, to get
> "Z - a wand of light" returned, and the potion identified.
>
> (Ideally, I'd like to see it be "Nothing seems to happen.", as for
> a failed-this-time unicorn horn.)
2002-03-06 00:22:37 +00:00
cohrs
51fac7ac64 iron bars and wallification
- iron bars should be treated like doors with respect to wallification
2002-03-05 07:46:40 +00:00
cohrs
bf2190c55e allow locks to be forced again
- use uwep's oc_wldam value, not chest's oc_wldam value, for computing chance.
  oc_wldam has always been 0 for all containers
- the code was broken for a long time, but was masked by the off-by-1 error
  in checking the chance, allowing a 1% chance of forcing
- the result is that forcing locks is a lot easier
2002-03-05 06:21:05 +00:00
nethack.allison
41b924838c Use mswin for the window port name since that is used in the window port itself. 2002-03-05 05:11:45 +00:00
nethack.allison
3c0e37d9c9 add windowcolors option
Add option windowcolors to control foreground/background
color of menu, message, status, and text windows.
(foreground color is the text color).

The value of the colors is window port specific, the
core code handles the storing of the strings only.
2002-03-05 05:03:48 +00:00
nethack.allison
615568369e no message 2002-03-05 04:57:50 +00:00
nethack.allison
4ec0588d33 remove win/win32/mhcmd.* from distribution 2002-03-05 01:47:31 +00:00
nethack.allison
a8df5bc522 win32gui: more splash screen integration
auto-uudecode the file.
2002-03-04 23:01:10 +00:00
nethack.allison
4494593c30 (from Yitzhak)
win32gui: more splash screen integration

The Makefile have rip.uu/splash.uu added to them.  However, this won't
work if you don't have splash.uu.  Instead, just copy rip.uu or another
.uu and name it splash.uu.  Make expects to have splash.uu present (at
least Borland's make).   It doesn't add splash.uu decoding to the IDE
framework.  It does a bit in winhack.rc and Makefile.bcc to bring
winhack.rc up to sync with Borland's compiler.  If you don't like the
splash screen, then I'll have to redo that part of the patch apart from
the others.
2002-03-04 22:55:45 +00:00
nethack.allison
5911621d9f win32gui: adds a splash screen
The splash screen uses the VERSION_MAJOR,
VERSION_MINOR, and PATCHLEVEL macros, but there is no room in case one
of these goes into two digits.  That seems like a safe assumption to
make.

The Makefile have rip.uu/splash.uu added to them.  However, this won't
work if you don't have splash.uu.  Instead, just copy rip.uu or another
.uu and name it splash.uu.  Make expects to have splash.uu present (at
least Borland's make).   It doesn't add splash.uu decoding to the IDE
framework.  It does a bit in winhack.rc and Makefile.bcc to bring
winhack.rc up to sync with Borland's compiler.  If you don't like the
splash screen, then I'll have to redo that part of the patch apart from
the others.
2002-03-04 22:40:01 +00:00
nethack.allison
92684f0b7c Prevent fake amulet from being contained too
Most NetHack players have picked up on the fact that you can
easily distinguish between a fake amulet and the real thing
simply by trying to put it into a container. That's too easy.
The message was adjusted too, to make it seem less
like the objects have their own special will to resist, something
that a hunk of plastic is unlikely to have.
2002-03-04 04:44:18 +00:00