]> git.pond.sub.org Git - empserver/commitdiff
(mchr[],m_flags,m_nland): Remove M_UNIT from m_flags in mchr[].
authorRon Koenderink <rkoenderink@yahoo.ca>
Tue, 22 Nov 2005 23:19:59 +0000 (23:19 +0000)
committerRon Koenderink <rkoenderink@yahoo.ca>
Tue, 22 Nov 2005 23:19:59 +0000 (23:19 +0000)
It is not used.

include/ship.h
src/lib/global/init.c
src/lib/global/nsc.c
src/lib/global/ship.c

index e3e1112d55dade458b649c67c1179dadef4f4fa1..e7554441222eeefb311f7097c7523ca53d73f32d 100644 (file)
@@ -174,8 +174,6 @@ struct mchrstr {
 #define M_CHOPPER      bit(16) /* can hold choppers */
 #define M_OILER                bit(17) /* can re-fuel ships */
 #define M_SUPPLY       bit(18) /* Can supply units/sects/ships */
-/* M_UNIT will be automatically set in init_global() if m_nland > 0 */
-#define M_UNIT         bit(19) /* Can carry units */
 #define M_ANTIMISSILE   bit(20)        /* Shoot down missile */
 
 #define getship(n, p) \
index 2d5d9076c0b0bcd951843323be4719f50686c102..3692e7179bb69e2ec43a0cad6801ac4218f12936 100644 (file)
@@ -63,8 +63,6 @@ init_mchr(void)
            mp->m_flags |= M_CHOPPER;
        if (mp->m_nplanes && !(mp->m_flags & M_MSL || mp->m_flags & M_FLY))
            mp->m_flags |= M_MSL;
-       if (mp->m_nland)
-           mp->m_flags |= M_UNIT;
     }
 }
 
index da7d4248962b2426bcae44253663016b2901576d..7082cb982c79ac73eddb44edd033b5de2c507275 100644 (file)
@@ -569,7 +569,6 @@ struct symbol ship_chr_flags[] = {
     {M_CHOPPER, "chopper"},
     {M_OILER, "oiler"},
     {M_SUPPLY, "supply"},
-    {M_UNIT, "unit"},
     {M_ANTIMISSILE, "anti-missile"},
     {0, NULL}
 };
index d10403091f9ced603f2f67eadcf349923bf1e2ee..406c31db043f52adac1acc56ea93eba464f607ff 100644 (file)
@@ -38,7 +38,7 @@
 /*
  * marine characteristics -- ship capabilities descriptions
  * 
- * Note, that you should not set the flags M_XLIGHT, M_UNIT, or M_CHOPPER
+ * Note, that you should not set the flags M_XLIGHT or M_CHOPPER
  * here.  They will be automatically set by init_global() when the server
  * starts if the ship can carry a non-zero amount of those things.
  * Also note that if nplanes > 0 and M_FLY is not set, then M_MSL will