summaryrefslogtreecommitdiff
path: root/src/demo.c
diff options
context:
space:
mode:
authorjohannes <johannes.herman@gmail.com>2024-02-07 19:56:11 +0100
committerjohannes <johannes.herman@gmail.com>2024-02-07 19:56:11 +0100
commit5836b2848bcb58b4415a2c241d398e0be2f92a18 (patch)
tree22b59f023f5524492f37a9169ef6976a09a91c35 /src/demo.c
parent7564a339b0063374410348a0d7446013c901203f (diff)
added source of copied/inspired functions
Diffstat (limited to 'src/demo.c')
-rw-r--r--src/demo.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/demo.c b/src/demo.c
index a176c06..ff940b6 100644
--- a/src/demo.c
+++ b/src/demo.c
@@ -236,7 +236,7 @@ int readdemochunk(FILE *fp, demochunk *chunk, unsigned char ver)
}
else
{
- demochunktype type = (demochunktype) ((chunkhead & CHUNK_NORMAL_TYPE_MASK) >> 5);
+ demochunktype type = (demochunktype)((chunkhead & CHUNK_NORMAL_TYPE_MASK) >> 5);
short size = (chunkhead & CHUNK_NORMAL_SIZE_MASK);
if (size == 30)
@@ -382,8 +382,8 @@ int writedemomap(FILE *fp, demomap *dm, int mapsize, unsigned char ver)
return 1;
}
-/* lifted from
- * https://github.com/ddnet/ddnet/blob/79df5893ff26fa75d67e46f99e58f75b739ac362/src/engine/shared/demo.cpp#L270 */
+/* function is lifted from */
+/* https://github.com/ddnet/ddnet/blob/79df5893ff26fa75d67e46f99e58f75b739ac362/src/engine/shared/demo.cpp#L270 */
int writedemochunkheader(FILE *fp, demochunktype type, int size)
{
unsigned char header[3];