Commit Graph

768 Commits

Author SHA1 Message Date
C.W. Betts
81d6473e19 Fix DedicatedServerPrintf_fp to actually match the definition of PrintDedicatedMessage. 2024-06-12 03:41:11 -06:00
Taylor Richards
ed0ff23cee
remove unnecessary return value test 2024-06-11 14:58:45 -04:00
Taylor Richards
03b729e318
fix PXO chat lobby connection failure on Linux/Mac 2024-06-10 21:55:35 -04:00
Taylor Richards
332f9c553e
fix server crash during client connection
The serverconn variable identifies the reliable socket used by the server.
However this variable is not yet initialized at the very start of the first
client connection which causes the server to crash. This fixes a bad safety
check for this issue and a further instance of the bug.
2024-06-10 21:51:51 -04:00
Louis Gombert
c00b8ea3c3 Editor review fixes 2024-06-10 23:35:11 +02:00
Louis Gombert
3f54c1a2cd
Merge pull request #428 from tophyr/eliminate-warnings
Eliminate warnings
2024-06-09 18:31:32 +00:00
Louis Gombert
3036f44017 x64 compilation fixes 2024-06-09 20:12:47 +02:00
Louis Gombert
bcca92722d Release build fixes 2024-06-07 23:50:38 +02:00
Chris Sarbora
ef33834a2a
Add comments explaining warning suppression 2024-06-07 16:24:07 -05:00
Louis Gombert
1821da99e7 Fix editor structures definitions 2024-06-07 21:41:40 +02:00
Louis Gombert
b8949f292d more windows editor fixes 2024-06-07 21:41:40 +02:00
Louis Gombert
87f19acc2f Internal editor: minimal compilation fixes 2024-06-07 21:41:40 +02:00
Louis Gombert
0fa8705291 Move internal level editor into main tree 2024-06-07 21:41:40 +02:00
Louis Gombert
a90b4ef728
Merge pull request #427 from tophyr/asan-fixes
Fix indexing error when looking up Win32_AppObjects
2024-06-07 17:57:54 +00:00
Louis Gombert
82c04f8fb9 Windows CMake preset: use ninja generator 2024-06-07 19:20:07 +02:00
Chris Sarbora
45fe157563
Eliminate warnings in winapp.cpp
Uninitialized data
Bad parameters
Deprecated methods
2024-06-07 01:18:04 -05:00
Chris Sarbora
eb0ba9fe4a
Fix indexing error when looking up Win32_AppObjects 2024-06-07 00:39:39 -05:00
Louis Gombert
fd61549080
Merge pull request #420 from MaddTheSane/pxofixes
PXO fixes
2024-06-05 20:15:14 +00:00
C.W. Betts
09b91fb6df Fix 64-to-32 integer truncating.
This is a bit more of a problem with byte-swapping than just reading/writing.
2024-06-04 15:08:36 -06:00
C.W. Betts
7f2091db1b Quiet most const char* warnings. 2024-06-04 15:05:31 -06:00
C.W. Betts
8a678822a3 Add snprintfs to the PXO module. 2024-06-04 15:03:29 -06:00
Louis Gombert
15dce81bd1
Merge pull request #396 from GravisZro/cleanup
More clean up
2024-06-04 07:25:15 +00:00
Louis Gombert
69d19efb3e
Merge pull request #419 from winterheart/pxo-online
Reactivating network mtclient (Parallax Online / PXO)
2024-06-04 07:05:04 +00:00
Azamat H. Hackimov
a295b047f0 Fix compilation on Windows 2024-06-03 22:45:51 +03:00
Azamat H. Hackimov
6057694b56 Replace non-functional PXO server with new one
Replacing ut.parallaxonline.com with tracker.pxo.nottheeye.com.
2024-06-03 22:45:51 +03:00
Louis Gombert
6666798165
Merge pull request #414 from winterheart/search-on-init
Fix segfault on missing critical files
2024-06-03 18:30:20 +00:00
Louis Gombert
aa62c0740b
Merge pull request #410 from winterheart/mono-cleanup
Cleanup mono debugging code
2024-06-03 18:23:28 +00:00
Azamat H. Hackimov
7a9f2e2e19 Minor fixes to PXO module
Removing unused headers, code cleanup and enhancements.
2024-06-03 16:20:42 +03:00
Azamat H. Hackimov
6972b649bb Make PXO module buildable and runnable
Fix compilation and runtime errors.
2024-06-03 14:08:45 +03:00
Azamat H. Hackimov
6c5403c232 Make Debug_Log* functions to crossplatform 2024-06-03 01:40:35 +03:00
Azamat H. Hackimov
9416458f9c Cleanup mono debugging code
Remove unused mono debug code.
2024-06-03 01:40:33 +03:00
Azamat H. Hackimov
b37d7b5c4f Fix segfault on missing critical files
If no d3voide1.hog or d3voice2.hog in search path was found, Descent3 fails with segmentation fault after pressing cancel on "Please insert Descent 3 CD" dialogue. Added guard checks which gracefully handle this issue.
2024-06-03 01:19:21 +03:00
Azamat H. Hackimov
2a28c5dd95 Simplify code on search files on init
`CD_inserted` local var is always 0, and some parts of code are unreachable because of it. Related code removed.
Optimizing search loop over file_volumes array.
Removed `-moviedir` option as is only available on DEBUG build and useless in development environment (we can define movies location in many other ways).
Removed `-intro` option as is there a little use to redefine intro.mve location (again, we can control movies location in other ways).
Removed unused headers.
2024-06-03 01:19:21 +03:00
Azamat H. Hackimov
f1a77cfe99 Reactivate mtclient for PXO online support 2024-06-02 23:43:38 +03:00
Azamat H. Hackimov
4795388500
Merge pull request #416 from GravisZro/update/finite
Replace _finite with std::isfinite
2024-06-02 23:26:36 +03:00
Louis Gombert
66923d5bc7
Merge pull request #407 from winterheart/remove-ncurses
Remove ncurses usage dependency
2024-06-02 20:11:39 +00:00
GravisZro
4e599257a0 Replace _finite with std::isfinite
A simple drop in replacement that is multiplatform which means the
defintion in `linux_fix.h` is no longer required.
2024-06-02 14:50:51 -04:00
GravisZro
691dc6487d Remove one unused macro definition and fix another 2024-06-01 22:21:51 -04:00
GravisZro
1c7e3053f2 Replace "PSPATHNAME_LEN" and "MAX_PATH" with "_MAX_PATH" 2024-06-01 22:19:41 -04:00
GravisZro
b889fee6c2 Remove Taoist typedefs 2024-06-01 22:17:44 -04:00
Azamat H. Hackimov
09823f9b40 Cleanup linux console code
Unify all commands into function interface, which simplifies code.
2024-06-02 03:41:50 +03:00
Louis Gombert
97f718047d
Merge pull request #409 from GravisZro/fix/sdlsound
Only close SDL audio if it's open.
2024-06-01 20:54:04 +00:00
Louis Gombert
6d3a4c3e7f
Merge pull request #408 from GravisZro/remove/unusedpredefs
Code cleanup: Add one macro, remove five others
2024-06-01 20:51:41 +00:00
Louis Gombert
638e31864d
Merge pull request #405 from GravisZro/fix/structs
Modernize struct/enum/unions type declarations
2024-06-01 20:02:28 +00:00
Louis Gombert
fd312249bf
Merge pull request #403 from GravisZro/fix/statics
Move global static variables out of headers
2024-06-01 19:57:11 +00:00
GravisZro
d822ae99a7 Only close SDL audio if it's open.
There wasn't anything preventing D3 from trying to close an invalid device id.
2024-05-31 14:13:00 -04:00
GravisZro
bfe52bc983 Add one macro, remove five others
- Add macro PRIMARY_HOG to define the hardcoded hog filename to load.
- Replace instances of "LINUX" with "__LINUX__"
- Remove these macros entirely because they are (now) unused
  - LINUX
  - _REENRANT
  - __32BIT__
- Removed from CMakeFile.txt because they are in linux_fix.h
  - _MAX_PATH=260
  - _MAX_FNAME=256
2024-05-31 12:05:12 -04:00
Azamat H. Hackimov
95caa7b6c3 Remove ncurses enabled console
This type of console is enabled only with `-svgalib` and `-dedicated` options. Since there no svgalib direct support (which is pretty old and too specific to Linux tech), it's better completely remove this code for simplicity and reducing external dependencies.
Removed `-svgalib` option as unused now.
2024-05-31 13:12:28 +03:00
Louis Gombert
5932087645
Merge pull request #400 from Jayman2000/remove-unnecessary-find-package
Remove unnecessary `find_package(OpenGL)`
2024-05-30 20:17:05 +00:00
GravisZro
f7ae658fe2 Modernize struct/enum/unions type declarations 2024-05-30 03:35:17 -04:00