]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix a stupid fteqcc warning
authorRudolf Polzer <divVerent@xonotic.org>
Sun, 26 Jun 2011 17:50:37 +0000 (19:50 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Sun, 26 Jun 2011 17:50:37 +0000 (19:50 +0200)
qcsrc/warpzonelib/server.qc

index 2b2b69888bd0c668e0297b65ddcee18c9e4b7af2..c3bbba4ac1f329b5a72ffb7a42f525b5bce8229b 100644 (file)
@@ -42,6 +42,7 @@ float WarpZone_Teleported_Send(entity to, float sf)
 }
 
 #define WARPZONE_TELEPORT_FIXSOLID(ret) \
+       do \
        { \
                setorigin(player, o1 - player.view_ofs); \
                if(WarpZoneLib_MoveOutOfSolid(player)) \
@@ -55,15 +56,18 @@ float WarpZone_Teleported_Send(entity to, float sf)
                        setorigin(player, o0 - player.view_ofs); \
                        return (ret); \
                } \
-       }
+       } \
+       while(0)
 #define WARPZONE_TELEPORT_DOTELEPORT() \
+       do \
        { \
                WarpZone_RefSys_Add(player, wz); \
                WarpZone_TeleportPlayer(wz, player, o1 - player.view_ofs, a1, v1); \
                WarpZone_StoreProjectileData(player); \
                player.warpzone_teleport_time = time; \
                player.warpzone_teleport_zone = wz; \
-       }
+       } \
+       while(0)
 
 float WarpZone_Teleport(entity wz, entity player, float f0, float f1)
 {