[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] rev 2246 - branches/pingus_0_6/src
From: |
address@hidden |
Subject: |
[Pingus-CVS] rev 2246 - branches/pingus_0_6/src |
Date: |
Sun, 11 Apr 2004 11:09:51 +0200 |
Author: torangan
Date: 2004-04-11 11:09:51 +0200 (Sun, 11 Apr 2004)
New Revision: 2246
Modified:
branches/pingus_0_6/src/server.cxx
Log:
Demo recorder shouldn't record invalid action events.
Modified: branches/pingus_0_6/src/server.cxx
===================================================================
--- branches/pingus_0_6/src/server.cxx 2004-04-11 09:08:44 UTC (rev 2245)
+++ branches/pingus_0_6/src/server.cxx 2004-04-11 09:09:51 UTC (rev 2246)
@@ -74,15 +74,14 @@
if (action_holder.pop_action(action))
{
if (!(pingu->request_set_action(action)))
- {
- action_holder.push_action(action);
- }
+ {
+ action_holder.push_action(action);
+ }
+ else if (demo_recorder)
+ {
+
demo_recorder->record_event(ServerEvent::make_pingu_action_event(get_time(),
pingu->get_id(), action));
+ }
}
-
- if (demo_recorder)
-
demo_recorder->record_event(ServerEvent::make_pingu_action_event(get_time(),
-
pingu->get_id(),
- action));
}
bool
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] rev 2246 - branches/pingus_0_6/src,
address@hidden <=