Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to current version of D compiler, integrated code from stewart.zip #2

Open
wants to merge 40 commits into
base: master
Choose a base branch
from

Conversation

NikitaZ
Copy link

@NikitaZ NikitaZ commented Jul 19, 2022

Updated the code to be compilable by the current D compiler. Along that incorporated changes by Stewart Gordon from stewart.zip, isolating his one non-obvious change by version(NewDisplay). Please, see commit descriptions for details.

…w bool arrays, get rid of memset and related refactorings.
…of exe, and look for help file there, catch file not found error
disabled cwatch - it either does nothing or causes Empire to hang
…or position LOC_HIDDEN, to avoid a misleading highlight at the end of the player's turn
…scorrect open/save dialogs and appropriate flags, prompt to save on exit, new or open, also winmain.d changes for previous commit.
…nt square only if POV player's turn (still needs some work)
… so that they're actually deleted, eliminating resource leaks,

create the dashed pen only once on startup
…he text display engine to make more sense for D and for a GUI app.
…rted proper modules

by changing std.c -> core.stdc, c.windows.windows -> core.sys.windows.windows
…-> &this. Note: that some more fixes to display and text come later when version(NewDisplay) is introduced. Explicit casts to byte, ubyte, short for game state. Maybe nowdays we should just store everything as int, then only casts to short for drawBitmap() would be needed. Note vararg related change in text.d is wrong and is dealt with later.
…tform build (or to make first windows build easier).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant