[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Stratagus-CVS] stratagus/src/network commands.c
From: |
address@hidden |
Subject: |
[Stratagus-CVS] stratagus/src/network commands.c |
Date: |
15 Dec 2003 15:24:17 +1100 |
CVSROOT: /home/strat
Module name: stratagus
Changes by: <address@hidden> 03/12/15 15:24:17
Modified files:
src/network : commands.c
Log message:
More clean up
Patches:
Index: stratagus/src/network/commands.c
diff -u stratagus/src/network/commands.c:1.83
stratagus/src/network/commands.c:1.84
--- stratagus/src/network/commands.c:1.83 Sat Dec 13 16:40:23 2003
+++ stratagus/src/network/commands.c Mon Dec 15 15:24:16 2003
@@ -26,7 +26,7 @@
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
// 02111-1307, USA.
//
-// $Id: commands.c,v 1.83 2003/12/13 05:40:23 jsalmon3 Exp $
+// $Id: commands.c,v 1.84 2003/12/15 04:24:16 jsalmon3 Exp $
//@{
@@ -252,7 +252,7 @@
replay->Comment1 = strdup("Generated by Stratagus Version " VERSION "");
replay->Comment2 = strdup("Visit http://Stratagus.Org for more
information");
- replay->Comment3 = strdup("$Id: commands.c,v 1.83 2003/12/13 05:40:23
jsalmon3 Exp $");
+ replay->Comment3 = strdup("$Id: commands.c,v 1.84 2003/12/15 04:24:16
jsalmon3 Exp $");
if (GameSettings.NetGameType == SettingsSinglePlayerGame) {
replay->Type = ReplaySinglePlayer;
@@ -652,7 +652,7 @@
log->Num = -1;
lua_pushnil(l);
- while (lua_next(l, 1) != 0) {
+ while (lua_next(l, 1)) {
value = LuaToString(l, -2);
if (!strcmp(value, "GameCycle")) {
log->GameCycle = LuaToNumber(l, -1);
@@ -1020,7 +1020,7 @@
} else if (!strcmp(action, "cancel-upgrade-to")) {
SendCommandCancelUpgradeTo(UnitSlots[unit]);
} else if (!strcmp(action, "research")) {
- SendCommandResearch(UnitSlots[unit],UpgradeByIdent(val), flags);
+ SendCommandResearch(UnitSlots[unit], UpgradeByIdent(val), flags);
} else if (!strcmp(action, "cancel-research")) {
SendCommandCancelResearch(UnitSlots[unit]);
} else if (!strcmp(action, "spell-cast")) {
@@ -1794,7 +1794,7 @@
case MessageCommandResearch:
CommandLog("research", unit, status, -1, -1, NoUnitP,
Upgrades[x].Ident, -1);
- CommandResearch(unit,Upgrades+x, status);
+ CommandResearch(unit, Upgrades + x, status);
break;
case MessageCommandCancelResearch:
CommandLog("cancel-research", unit, FlushCommands, -1, -1, NoUnitP,
@@ -1812,7 +1812,7 @@
CommandLog("spell-cast", unit, status, x, y, dest, NULL, id);
CommandSpellCast(unit, x, y, dest, SpellTypeById(id), status);
} else {
- CommandLog("auto-spell-cast", unit, status,x, -1, NoUnitP,
NULL, id);
+ CommandLog("auto-spell-cast", unit, status, x, -1, NoUnitP,
NULL, id);
CommandAutoSpellCast(unit, x ? SpellTypeById(id) : NULL);
}
break;
@@ -1857,7 +1857,7 @@
NoUnitP, "crazy", -1);
break;
}
- CommandDiplomacy(arg2,arg3,arg4);
+ CommandDiplomacy(arg2, arg3, arg4);
break;
case ExtendedMessageSharedVision:
if (arg3 == 0) {
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Stratagus-CVS] stratagus/src/network commands.c,
address@hidden <=