[prev in list] [next in list] [prev in thread] [next in thread] 

List:       atlantik-devel
Subject:    [atlantik-cvs] CVS: kdegames/atlantik/libatlantikclient atlantik_network.cpp,1.55,1.56
From:       kde () office ! kde ! org
Date:       2002-07-28 1:11:46
[Download RAW message or body]

Update of /home/kde/kdegames/atlantik/libatlantikclient
In directory office:/tmp/cvs-serv24582/libatlantikclient

Modified Files:
	atlantik_network.cpp 
Log Message:
hopefully fixing trades for my #kde-freebsd guinea pigs :)

Index: atlantik_network.cpp
===================================================================
RCS file: /home/kde/kdegames/atlantik/libatlantikclient/atlantik_network.cpp,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -d -r1.55 -r1.56
--- atlantik_network.cpp	2002/07/26 06:16:39	1.55
+++ atlantik_network.cpp	2002/07/28 01:11:44	1.56
@@ -507,11 +507,12 @@
 
 					// Emit signal so GUI implementations can create view(s)
 #warning port to atlanticcore and create view there
-					if (b_newPlayer)
-						emit newPlayer(player);
-
 					if (player)
+					{
+						if (b_newPlayer)
+							emit newPlayer(player);
 						player->update();
+					}
 				}
 			}
 			else if (e.tagName() == "estategroupupdate")
@@ -533,11 +534,12 @@
 
 					// Emit signal so GUI implementations can create view(s)
 #warning port to atlanticcore and create view there
-					if (b_newEstateGroup)
-						emit newEstateGroup(estateGroup);
-
 					if (estateGroup)
+					{
+						if (b_newEstateGroup)
+							emit newEstateGroup(estateGroup);
 						estateGroup->update();
+					}
 				}
 			}
 			else if (e.tagName() == "estateupdate")
@@ -627,11 +629,12 @@
 
 					// Emit signal so GUI implementations can create view(s)
 #warning port to atlanticcore and create view there
-					if (b_newEstate)
-						emit newEstate(estate);
-
 					if (estate)
+					{
+						if (b_newEstate)
+							emit newEstate(estate);
 						estate->update();
+					}
 				}
 			}
 			else if (e.tagName() == "tradeupdate")
@@ -758,11 +761,12 @@
 
 					// Emit signal so GUI implementations can create view(s)
 #warning port to atlanticcore and create view there
-					if (b_newTrade)
-						emit newTrade(trade);
-
 					if (trade)
+					{
+						if (b_newTrade)
+							emit newTrade(trade);
 						trade->update();
+					}
 				}
 			}
 			else if (e.tagName() == "auctionupdate")
@@ -811,11 +815,12 @@
 
 					// Emit signal so GUI implementations can create view(s)
 #warning port to atlanticcore and create view there
-					if (b_newAuction)
-						emit newAuction(auction);
-
 					if (auction)
+					{
+						if (b_newAuction)
+							emit newAuction(auction);
 						auction->update();
+					}
 				}
 			}
 			else

_______________________________________________
atlantik-cvs mailing list
atlantik-cvs@mail.kde.org
http://mail.kde.org/mailman/listinfo/atlantik-cvs
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic