Bart House
c3eefefc99
Modified objects initialization to support re-entry.
2018-11-23 15:22:55 -08:00
Bart House
041e55467a
objnam.c globals moved to instance globals.
2018-11-23 15:22:55 -08:00
Bart House
01596f1660
Moved pickup globals to instance_globals.
2018-11-23 15:22:55 -08:00
Bart House
ad725c0f0f
Fix g.restoring comments.
2018-11-23 15:22:54 -08:00
Bart House
b384223e1b
topl.c globals moved to instance_globals.
2018-11-23 15:22:54 -08:00
Bart House
ee22210a68
Moved sex_change_ok to instance_globals.
2018-11-23 15:22:54 -08:00
Bart House
0d59f1a22b
Fix compiler warnings in macos build.
2018-11-23 15:22:54 -08:00
Bart House
cff9fb441a
define nhassert if not defined by port.
2018-11-23 15:22:54 -08:00
Bart House
d3c192e5a8
Moved potion.c globals to instance_globals.
2018-11-23 15:22:54 -08:00
Bart House
d37a91a6b8
Moved read.c globals to instance_globals.
2018-11-23 15:22:54 -08:00
Bart House
865c4d5a7d
restore.c globals moved to instance_globals.
2018-11-23 15:22:54 -08:00
Bart House
cee4933c24
Renamed UNDEFINED to UNDEFINED_VALUE.
2018-11-23 15:22:54 -08:00
Bart House
716c2ceccf
rfilter initialized to UNDEFINED.
2018-11-23 15:22:54 -08:00
Bart House
6a78b203e4
rumors.c static globals moved to instance_globals.
2018-11-23 15:22:53 -08:00
Bart House
f9a0db6c44
Renamed instance_variables to global_variables and iv to g.
2018-11-23 15:22:53 -08:00
Bart House
14bf74c862
Instance variable work.
2018-11-23 15:22:53 -08:00
Bart House
8e316df117
Instance variable work check-point.
2018-11-23 15:22:53 -08:00
Bart House
244a473a19
Fixed nocreate.
2018-11-23 15:22:52 -08:00
Bart House
7814d9097a
check.
2018-11-23 15:22:52 -08:00
Bart House
5bbe3cd6bb
Initial check in of icontext.
2018-11-23 15:22:51 -08:00
Bart House
6272c37035
Moved petname_used to decl.c
2018-11-23 15:22:51 -08:00
Bart House
4e774197a6
Previous encumberance state moved to decl.c.
2018-11-23 15:22:51 -08:00
Bart House
acbe4d9242
Added decl_early_init() which is called when PLAYAGAIN is supported.
...
decl_early_init() is called when we are starting a game. On first
start, it validates that global state is in the expected state.
When called on subsequent starts, it initializes global state to
expected state.
2018-11-23 15:22:51 -08:00
Bart House
31dc1c9233
Added nhassert() support.
2018-11-23 15:22:51 -08:00
Bart House
a27fd2d83d
Added nhassert() support to tile2bmp.
2018-11-23 15:22:51 -08:00
Bart House
05c9ccc035
Revert "Modified how we initialize save file info."
...
This reverts commit 250ca464bc .
2018-11-23 15:22:51 -08:00
Bart House
ea8cf6613a
Added PLAYAGAIN experimental support definition.
2018-11-23 15:22:51 -08:00
Bart House
44b002c9f3
Modified how we initialize save file info.
...
There should be no net change other then improving code maintenance.
2018-11-23 15:22:50 -08:00
Bart House
74fc1403e3
Removed unnecessary use of static for nocreate values.
...
If multiple games are played without exiting the process, on the second
new player creation the nocreate values will already be set based
on the first player creation.
2018-11-23 15:22:50 -08:00
Bart House
36be0c0f0c
Merge branch 'macosx-curses-fall2018' of https://rodney.nethack.org:20040/git/NHsource into macosx-curses-fall2018
2018-11-20 16:11:42 -08:00
Bart House
d10a18ff00
Switching back to tty on picked by default for XCode biuld.
2018-11-20 16:11:22 -08:00
Bart House
b195025635
Added all header files to Xcode project.
2018-11-20 13:22:48 -08:00
Bart House
aa939a62b0
Adding README for building NetHack with XCode.
2018-11-20 11:16:24 -08:00
Bart House
da1e7de925
Adjusted compiler settings to reduce warnings in XCode project.
2018-11-20 10:51:03 -08:00
Bart House
2a6bd3e8ac
Addressed compiler warnings.
...
Added the initialization of several locals.
In check_fields, validate that we have a valid index (idx) before using.
2018-11-20 10:48:44 -08:00
Bart House
520b130a5c
Added initialization of locals to quite compiler warnings.
2018-11-20 10:47:12 -08:00
Bart House
d177b5e705
Addressed compiler warnings.
...
Fixed declarations of draw_classic, draw_vertical and draw_horizontal.
Moved definitions of locals before code. Added initialization of
locals. Changed comments to c-style.
2018-11-20 10:46:45 -08:00
Bart House
e66a8c4c73
Changed comments to c-style.
2018-11-20 10:45:04 -08:00
Bart House
347c45b420
Addressed compiler warnings.
...
Changed to c-style comments. Placed locals before code. Added
initialization of local value ret in curses_block.
2018-11-20 10:44:44 -08:00
Bart House
fcb28cd2e5
Addressed compiler warnings.
...
Moved local declarations before code. Changed comments to c-style.
2018-11-20 10:43:35 -08:00
Bart House
616e946393
Scoped existing code in a new block to quite compiler warnings.
2018-11-20 10:42:13 -08:00
Bart House
0b1e975b07
Addressed compiler warnings.
...
Moved locals before code. Changed comment type.
2018-11-20 10:35:25 -08:00
Bart House
be11d50d91
Added use of SCCS_Id to quite compiler warnings.
2018-11-20 10:33:36 -08:00
Bart House
c987a3dc2f
Added initialization of locals in create_room() to quite compiler warnings.
2018-11-20 10:30:11 -08:00
Bart House
a19b05d262
Added initialization of cc in do_look() to quite compiler warnings.
2018-11-20 10:29:05 -08:00
Bart House
d1cd20998f
Added initialization if ilet to quite compiler warnings.
2018-11-20 10:27:35 -08:00
Bart House
7f4a4188a0
Added initialization of newlevel to quite compiler warnings.
2018-11-20 10:27:09 -08:00
Bart House
8799f05904
Fix lrand48 and srand48 declarations.
2018-11-20 10:26:09 -08:00
Bart House
8c61ac476d
Fixed HACKDIR buid setting.
2018-11-20 07:32:23 -08:00
Bart House
9f8b419ec8
Added necessary build dependencies for xcode project.
2018-11-19 19:58:21 -08:00
Bart House
a68a8f21d4
Full build of nethack now supported in xcode.
2018-11-19 19:48:01 -08:00
Bart House
1af98716f2
Added the building of nhdat to xcode project.
2018-11-19 17:23:04 -08:00
Bart House
dd9ca9202c
Added building of nhdat to xcode project.
2018-11-19 16:54:31 -08:00
Bart House
6cf6e3c750
Added support for building Guidebook in xcode build.
2018-11-19 16:22:16 -08:00
Bart House
abb59e7283
Added building dungeon to xcode project.
2018-11-19 14:51:24 -08:00
Bart House
8dc9a3d930
Merge branch 'macosx-curses-fall2018' of https://rodney.nethack.org:20040/git/NHsource into macosx-curses-fall2018
2018-11-19 14:11:59 -08:00
Bart House
9f525b3241
Added building of special and quest levels in xcode build.
2018-11-19 14:11:39 -08:00
Bart House
d1b6581c08
Added building of more resources in xcode build.
2018-11-19 13:03:06 -08:00
Bart House
cbe2669e05
Removing personal data.
2018-11-19 12:17:37 -08:00
Bart House
d83ae1a4da
Adding the ignoring of xcuserdata.
2018-11-19 12:17:20 -08:00
Bart House
f47893258d
Removed personal user data.
2018-11-19 12:14:45 -08:00
Bart House
b2e65ad9cd
Adding the ignoring of xcuserdata.
2018-11-19 12:14:27 -08:00
Bart House
f221db4a94
Added NH_INC_DIR to xcode project build settings.
2018-11-19 12:13:58 -08:00
Bart House
bf549e865f
Added project wide build settings for nethack directories.
2018-11-19 12:03:02 -08:00
Bart House
898a22159f
Added building of data to xcode build.
2018-11-19 11:33:11 -08:00
Bart House
4788b10d88
XCode project check-point.
2018-11-19 11:06:57 -08:00
Bart House
3c5556d45e
Fix vi induced build problem.
2018-11-19 09:53:46 -08:00
Bart House
16d5631235
Merge branch 'macosx-curses-fall2018' of https://rodney.nethack.org:20040/git/NHsource into macosx-curses-fall2018
2018-11-19 09:22:32 -08:00
Bart House
aa48ed18e7
Initial check-in of work in progress xcode build of NetHack.
...
Buyer beware. This is a check-point of the xcode work to allow others
to play.
2018-11-19 09:22:11 -08:00
Bart House
360ee21861
Revert "Hint file for macOS X with curses."
...
This reverts commit f7fbbb8cb0 .
2018-11-18 11:45:36 -08:00
Bart House
444d1ec50a
Merge branch 'win-curses' of https://rodney.nethack.org:20040/git/NHsource into win-curses
2018-11-18 09:30:11 -08:00
Bart House
f7fbbb8cb0
Hint file for macOS X with curses.
2018-11-18 09:28:45 -08:00
Bart House
6ba270563c
Build curses if PDCurses is available.
...
There are two ways to enable curses in the build. Either set the
environment variable PDCURSES to a folder containing a PDCurses repository
OR place the PDCurses folder alongside the NetHack source repository.
2018-11-17 23:56:31 -08:00
Bart House
afe828507a
Getting build working.
2018-11-17 14:48:38 -08:00
Bart House
d2436d9f3c
Map curso blinking controlled by win32_cursorblink.
2018-11-16 21:48:00 -08:00
Bart House
dcac95b4b3
Delete GDI objects when map window is destroyed.
2018-11-16 13:50:12 -08:00
Bart House
90562f23c0
Menu check boxes drawn correctly when scaled.
...
Changed from using pattern brush to strech blt when rendering check box.
2018-11-16 13:29:59 -08:00
Bart House
94c4acc144
Made map cursor blink a compile time option.
2018-11-16 13:00:02 -08:00
Bart House
52cbbdafae
Completed map back buffer work and implemented map cursor blink.
...
Map back buffer work is done eliminating all flickering caused by
clears of the front buffer during partial updates.
Implemented a cursor blink in both ascii and tile modes.
Fixed bug where we would lose fit to screen when entering rogue level.
2018-11-16 12:39:04 -08:00
Bart House
3f4090ac38
Remap unicode control codes.
...
When running NetHack.exe in a console set to code page 850, the
multi-byte to wide character mapping will generate unicode values
in the unicode control code range. These values need to be re-mapped
to unicode renderable glyphs using the same mappings we use for
control page 437 otherwise the console font might not render a character
for these unicode control values.
2018-11-15 21:42:23 -08:00
Bart House
fdd4e129a1
Removed temporary comment left in by mistake.
2018-11-15 20:58:15 -08:00
Bart House
1f8c78fb40
Remove commented out line.
2018-11-14 21:08:59 -08:00
Bart House
093dc076ed
Modified RIP dialog to take into account monitor DPI.
2018-11-14 20:44:02 -08:00
Bart House
489abb45f5
Added monitor dpi awareness to NetHackW splash dialog.
2018-11-13 20:48:56 -08:00
Bart House
8069659912
Adjust menu item rendering based on monitor dpi.
2018-11-12 22:40:36 -08:00
Bart House
f67e7c0614
Merge branch 'win-minor' of https://rodney.nethack.org:20040/git/NHsource into win-minor
2018-11-12 21:39:05 -08:00
Bart House
4912149ff2
Implemented back buffer rendering to improve fit to screen rendering
...
quality.
2018-11-12 21:38:32 -08:00
Bart House
0bbc7cb6db
Adjust tile size to bounds of text meterics when in ascii mode.
2018-11-12 19:36:08 -08:00
Bart House
3bb759a9ab
Started work to support per monitor DPI. Using DPI to scale tiles
...
appropriately.
Renamed ntassert to nhassert. (Naming mistake caused by using ntassert
at work).
Re-ordered a few more includes to get window headers included before
nethack headers.
2018-11-12 17:45:22 -08:00
Bart House
f3bc4af242
Removing support for Visual Studio 2015 solution.
2018-11-12 09:13:51 -08:00
Bart House
8944235282
Enforced the inclusion of windows headers before nethack headers.
...
Moved the code page 437 mapping table to winnt.c so that it could be
used in window and console clients.
Added check that fonts support unicode values we use from code page 437.
Use unicode to draw text if font supports it otherwise use ASCII.
2018-11-12 01:58:56 -08:00
Bart House
26171ed9f5
Ignore .vs hidden folders generated by visual studio 2017.
2018-11-10 20:33:30 -05:00
Bart House
20e8482e6e
Fix crash that can occur when panic is called early.
2018-11-10 20:26:20 -05:00
Bart House
0a3f6d17df
Removed the defining of WIN32CONNDEBUG for NethackW.
...
Defined NOTTYGRAPHICS for NethackW.
2018-11-10 20:25:49 -05:00
Bart House
1f877dbca1
Additional changes to xputc_core() and early_raw_print() to manage
...
the cursor position correctly. This is needed to handle raw printing
correctly. Added check for when we might be running off the bottom
of the screen when handling msmsg(). Added runtime checks to keep
cursor always within bounds.
2018-05-13 20:46:43 -07:00
Bart House
53c7cb8c78
Changes to xputc_core to handle cursor correctly.
2018-05-13 18:54:20 -07:00
Bart House
0afd2570cb
Removing temporary debugging code and fixing compiler warnings.
2018-05-13 13:29:13 -07:00
Bart House
3dbbd188d9
Fixing typo.
2018-05-13 12:49:52 -07:00
Bart House
650d5230ec
Fix memory leak. See bug 1169.
2018-05-12 19:45:16 -07:00
Bart House
039687cf5f
Fix for bug 324 (aka H4216). We now will use nhraykey by default if the
...
players keyboard layout is non-english. nhraykey properly handles
non-english input. We also now support changing altkeyhandler in game.
2018-05-12 18:06:23 -07:00