[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/network network.c
From: |
address@hidden |
Subject: |
[Stratagus-CVS] stratagus/src/network network.c |
Date: |
7 Feb 2004 07:52:48 +1100 |
CVSROOT: /home/strat
Module name: stratagus
Changes by: <address@hidden> 04/02/07 07:52:48
Modified files:
src/network : network.c
Log message:
Fix critter explosion
Patches:
Index: stratagus/src/network/network.c
diff -u stratagus/src/network/network.c:1.131
stratagus/src/network/network.c:1.132
--- stratagus/src/network/network.c:1.131 Sun Feb 1 15:32:20 2004
+++ stratagus/src/network/network.c Sat Feb 7 07:52:48 2004
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: network.c,v 1.131 2004/02/01 04:32:20 wizzard Exp $
+// $Id: network.c,v 1.132 2004/02/06 20:52:48 nobody_ Exp $
//@{
@@ -915,6 +915,14 @@
// FIXME: ensure it's from the right player
allowed = 1;
break;
+ case MessageCommandDismiss:
+ // Allow to explode critters.
+ if ((UnitSlots[ntohs(nc->Unit)]->Player->Player
== PlayerMax - 1) &&
+
UnitSlots[ntohs(nc->Unit)]->Type->ClicksToExplode) {
+ allowed = 1;
+ break;
+ }
+ // Fall through!
default:
if (UnitSlots[ntohs(nc->Unit)]->Player->Player
== player ||
PlayersTeamed(player,
UnitSlots[ntohs(nc->Unit)]->Player->Player)) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Stratagus-CVS] stratagus/src/network network.c,
address@hidden <=