Anders Jenbo
344712a23b
Use SYSTEMTIME type instead of _SYSTEMTIME struct
7 years ago
Anders Jenbo
d900657201
Compile diablo.cpp as C
7 years ago
Anders Jenbo
86018b174b
Make DirecX usage C compatible
7 years ago
Anders Jenbo
06554e6db8
Make missiles.cpp compile as C ( #531 )
7 years ago
Anders Jenbo
841f5af199
Compile effects.cpp and wave.cpp as C ( #530 )
...
* Correct SFileReadFile signature
* Compile as C
Source/effects.cpp
Source/wave.cpp
* Make diabloui.h C frindly
7 years ago
Robin Eklind
8c73745e82
Compile movie.cpp as C
7 years ago
Anders Jenbo
d0e3835ea1
Clean up gamemenu_enable_single ( #526 )
7 years ago
Anders Jenbo
efec32bcd5
Compile files as C ( #527 )
...
* Compile files as C
* Provide fallback for qmemcpy
Enable C compilation for:
Source/gendung.cpp
Source/inv.cpp
Source/minitext.cpp
Source/pack.cpp
7 years ago
Robin Eklind
8ed5573766
engine: clean up CelDecDatLightEntry and Cel2DecDatLightEntry ( #524 )
...
Now, these functions no longer use references. Instead they
use pointer to pointer. Furthermore, they've been simplified
to for loops, as essentially, the decompiled functions were
unrolled loops (as seen in the memset function).
7 years ago
Anders Jenbo
87ea335ec4
Compile gamemenu.cpp, track.cpp & trigs.cpp as C ( #525 )
...
This enables processing pfile.h as a C header, this adds two minor
warnings to the compile process but should be fine (game works)
7 years ago
Robin Eklind
e915623726
rename SetCursor to SetCursor_ to avoid collision with windows.h
...
Translation done automatically using:
$ find . -type f -name '*.h' | xargs -I '{}' sar -i "([ \t])(SetCursor)[(]" '${1}${2}_(' '{}'
$ find . -type f -name '*.h' | xargs -I '{}' sar -i "([ \t])(SetCursor)[(]" '${1}${2}_(' '{}'
7 years ago
Robin Eklind
a94ac659a7
rename DeleteObject to DeleteObject_ to avoid collision with windows.h
7 years ago
Anders Jenbo
629dfa2083
Compile as c ( #522 )
...
* Reorder lib
This is the orhter that they appear in the exe imports
* Make includes C compatible
cursor.h: SetCursor conflicts with existing function
engine.h: CelDecDatLightEntry and Cel2DecDatLightEntry use by reference
*&
objects.h: DeleteObject conflicts with existing function
* Start compiling select files as C
* Clean up
pfile still emits warnings when parsed as C:
err:msvcrt:demangle_datatype Unknown type @
err:msvcrt:demangle_datatype Unknown type @
7 years ago
Anders Jenbo
db801ea4fd
Clean up MAI_Fireman ( #517 )
7 years ago
Anders Jenbo
024d99fc9e
C compatability from s ( #521 )
7 years ago
Anders Jenbo
b5f69dccdc
C compatability from d-p ( #519 )
7 years ago
Anders Jenbo
47bf82b059
C compatability from a-d ( #518 )
7 years ago
aperturesecurity
62357a25c7
removed more dependancies
7 years ago
Anders Jenbo
4a62a7c678
Code style
7 years ago
aperturesecurity
789aec38de
removed image and font dependancies from SDL now only SDL.h and SDL_Mixer should be needed
7 years ago
Anders Jenbo
fe92bebaba
Clean up MAI_* ( #515 )
...
* Clean up MAI_Bat
* Apply MM_* enums to AI
* Clean up MAI_Fallen
* Unify MAI_* code style
7 years ago
aperturesecurity
e70aabf8eb
Added resizable screen. Game after starting game the mouse wont be allowed to leave screen
7 years ago
aperturesecurity
e30e9fad6b
Fixed part of a menu
7 years ago
aperturesecurity
2060a8ea30
Removed cursor when game starts
7 years ago
Anders Jenbo
43f98614b0
Clean up MAI_Zombie ( #514 )
7 years ago
aperturesecurity
26128adad3
Menu simplified and almost complete
7 years ago
Anders Jenbo
d26d307194
Towners.cpp ( #513 )
...
* Clean up FreeTownerGFX
* Apply talk_id
7 years ago
Anders Jenbo
5bc5da3597
Clean up DeltaLoadLevel
7 years ago
aperturesecurity
a33593c05c
changing menu items
7 years ago
Anders Jenbo
f1c2d3ddb6
Clean up PlrDeadItem
7 years ago
galaxyhaxz
040b4b0cc9
Cleanup game_loop
7 years ago
galaxyhaxz
eceb1c3b5b
Fix tempstr length, add array
7 years ago
galaxyhaxz
c302881060
Fix gszHero
7 years ago
galaxyhaxz
849ec37b70
Fix TBuffer type and buffer_init
7 years ago
Anders Jenbo
cd408cf3ee
Fix multiplayer crashing
...
Fixes #487 again
7 years ago
Anders Jenbo
f917bdbd9b
Clean up delta_put_item
7 years ago
Anders Jenbo
a40db4682b
Clean up DeltaImportJunk
7 years ago
Anders Jenbo
b262d34a5a
Clean up DeltaAddItem
7 years ago
Anders Jenbo
7973fde92f
Clean up DeltaExportJunk
7 years ago
Anders Jenbo
9a56a19c2b
Clean up DeltaExportData
7 years ago
Anders Jenbo
ec60523956
Clean up msg_wait_resync
7 years ago
Anders Jenbo
de1fb3c002
Clean up ParseCmd
7 years ago
Anders Jenbo
bd310ff8d5
Delta data ( #504 )
...
* Clean up DeltaImport*
* Clean up DeltaExportData related functions
7 years ago
Anders Jenbo
69d68254d5
Clean up msg.cpp ( #502 )
...
* Clean up msg_wait_for_turns
* Clean up msg_get_next_packet
* Clean up msg_pre_packet
* Clean up DeltaSaveLevel
* Simple clean ups for msg.cpp
* Clean up NetSendCmdQuest
* Clean up NetSendCmdGItem
* Clean up NetSendCmdGItem2
* Clean up NetSendCmdPItem
* Clean up NetSendCmdChItem
* Clean up NetSendCmdDItem
* Clean up multi_send_packet
* Clean up msg_errorf
* Clean up i_own_level
* Clean up msg_free_packets
7 years ago
Anders Jenbo
dbd69332fa
msg.cpp use sizeof() instead of hardcoded sizes
7 years ago
Anders Jenbo
2a33606bbb
Clean up msg.cpp
...
msg_send_drop_pkt
msg_send_packet
delta_kill_monster
delta_monster_hp
delta_sync_monster
delta_sync_golem
delta_leave_sync
delta_portal_inited
delta_quest_inited
delta_open_portal
Fix On_* bin exact
7 years ago
Anders Jenbo
4aac75e836
Change msg attributes to signed where relevant
...
The variables are either being compared to -1, transfered between values
that are signed or closely related to such. Having them as unsigned has
the potential to break the game, having them signed shoudn't have any
negative effects.
7 years ago
aperturesecurity
9b2f80ed42
added a credits menu
7 years ago
Anders Jenbo
355d78fb84
C declaration ( #500 )
...
* Convert monster.cpp to C
* Convert automap.cpp to C
* Convert codec.cpp to C
7 years ago
Anders Jenbo
0eb47e8b1a
Align automap with PSX
7 years ago