]> 4ch.mooo.com Git - 16.git/blobdiff - src/lib/16_tdef.h
project 16 copyleft update
[16.git] / src / lib / 16_tdef.h
index fb905910af6e3aa7ab23386a3c405f73f91c48a6..239e69dfe309a2b245186677bc0e805ec1cc5884 100755 (executable)
@@ -1,5 +1,5 @@
 /* Project 16 Source Code~\r
- * Copyright (C) 2012-2022 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover\r
+ * Copyright (C) 2012-2023 sparky4 & pngwen & andrius4669 & joncampbell123 & yakui-lover\r
  *\r
  * This file is part of Project 16.\r
  *\r
@@ -54,6 +54,8 @@ typedef struct {
        byte *palette;\r
 } planar_buf_t;\r
 \r
+#ifndef BITMAPT\r
+#define BITMAPT\r
 typedef struct {\r
        byte *data;\r
        word width;\r
@@ -69,6 +71,7 @@ typedef struct {
        word theight;   // height of the tiles\r
        byte *palette;  // palette for the tile set\r
 } tileset_t;\r
+#endif\r
 \r
 //from 16_sprit.h\r
 #ifdef __WATCOMC__\r
@@ -204,6 +207,8 @@ typedef struct{
        sword tileplayerposscreeny;     /* player position on screen */ /* needed for scroll and map system to work accordingly */\r
 } pagetileinfo_t;\r
 \r
+#ifndef PAGET\r
+#define PAGET\r
 typedef struct {\r
        nibble/*word*/ id;      /* the Identification number of the page~ For layering~ */\r
        byte far* data; /* the data for the page */\r
@@ -222,6 +227,7 @@ typedef struct {
 //TODO: find where they are used\r
        sword delta;                    // How much should we shift the page for smooth scrolling\r
 } page_t;\r
+#endif\r
 \r
 //from 16_in\r
 //==========================================================================\r