Commit graph

21 commits

Author SHA1 Message Date
Clownacy
a3692d1c40 Add Caret enums 2020-08-05 21:45:59 +01:00
Clownacy
f7a8a260a4 Added OTHER_RECT struct
Unifies the weird not-RECTs
2020-07-08 19:30:11 +01:00
Clownacy
bfc255478c Remove unit-conversion macros 2020-07-08 19:15:11 +01:00
Clownacy
e04f4184f4 Clean-up BossFrog.cpp
Also removed SECONDS_TO_FRAMES because Pixel inconsistently times to
50FPS and 60FPS, making assumptions like this too shaky.
2019-11-17 14:29:25 +00:00
Clownacy
567330cc5b Remove some trailing commas
According to Clang, they're not valid C++98
2019-10-29 12:11:07 +00:00
Clownacy
7bf3109019 Cast X_TO_UNITS and UNITS_TO_X values to int
This shuts up some MSVC warnings about implicitly casting doubles to
ints when the macros' results are assigned to variables.
2019-09-25 17:29:22 +01:00
Clownacy
bc5a9b2d9f These macros produced inaccurate assembly 2019-09-15 18:44:03 +01:00
Gabriel Ravier
9e5e2a0e26
Indented some comments
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2019-09-15 16:05:24 +02:00
Gabriel Ravier
58a02a609c
Defined TILES_TO_UNITS and UNITS_TO_TILES in terms of TILES_TO_PIXELS, PIXELS_TO_TILES, PIXELS_TO_UNITS and UNITS_TO_PIXELS
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2019-09-15 15:58:04 +02:00
Gabriel Ravier
e2c57e6dbc
Alphabetized macros in BossFrog and re-ordered some stuff to go along with Clownacy's coding standards
Also changed NPC_NULL_DELETES_ITSELF to NPC_DAMAGE_TEXT_HOLDER as Fayti pointed out the misnomer

Note to self : Make a PR with coding standards

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2019-09-13 20:35:37 +02:00
Gabriel Ravier
9bef4b1d49
Commented BossFrog entirely
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2019-09-13 18:49:17 +02:00
Clownacy
03e513365b PATH_LENGTH is actually Windows's MAX_PATH
When MAX_PATH isn't available, use FILENAME_MAX. This might be a bad
idea.
2019-08-31 01:44:53 +01:00
Gabriel Ravier
e8875bd051 Redid formatting for files starting with [C-E]
Also fixed potentially erroneous macro MAX_STRIP (would have problems with operation order in operations)
Btw used regex "((//|\;)[^ \t]|(for|while|if|while|do|void|int|bool)\(|(for|while|if|while|do)\ \(.*\)\;|\(\ |\ \)|//\ [a-z])" for this

Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2019-05-07 15:39:59 +02:00
Gabriel Ravier
d854004463 Added .gitattributes for normalisation and normalized a few sources files to LF (from CRLF)
Signed-off-by: Gabriel Ravier <gabravier@gmail.com>
2019-05-03 12:27:11 +02:00
Clownacy
0bb9760d87 Rearranged #includes 2019-02-18 21:30:22 +00:00
cuckydev
6086cccbe4 forakr 2019-02-08 16:41:35 -05:00
cuckydev
4498e5d71a i tried 2019-02-07 20:52:16 -05:00
cuckydev
21f83b6d56 Period 2019-02-06 16:41:37 -05:00
Clownacy
c0120068d3 Added more NPCs, and the TAM TSC command 2019-02-06 20:02:53 +00:00
cuckydev
c84f49f1dc wip 2019-01-16 22:48:21 -05:00
cuckydev
b117a7a1bc
Initial Commit 2019-01-10 21:16:55 -05:00