Skip to content

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.

NikitaZ added 30 commits July 17, 2022 15:54
…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
NikitaZ added 10 commits July 19, 2022 12:09
…-> &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.

1 participant