[prev in list] [next in list] [prev in thread] [next in thread]
List: bzflag-commits
Subject: SF.net SVN: bzflag:[22769] trunk/bzflag/src/bzfs/bzfsAPI.cxx
From: jeffm2501 () users ! sourceforge ! net
Date: 2013-05-26 23:10:12
Message-ID: E1Ugk4t-0004zI-2N () sfs-ml-1 ! v29 ! ch3 ! sourceforge ! com
[Download RAW message or body]
Revision: 22769
http://sourceforge.net/p/bzflag/code/22769
Author: jeffm2501
Date: 2013-05-26 23:10:11 +0000 (Sun, 26 May 2013)
Log Message:
-----------
call the game end message when a game is ended from the API, other plugins may depend \
on it to be notified.
Modified Paths:
--------------
trunk/bzflag/src/bzfs/bzfsAPI.cxx
Modified: trunk/bzflag/src/bzfs/bzfsAPI.cxx
===================================================================
--- trunk/bzflag/src/bzfs/bzfsAPI.cxx 2013-05-25 06:40:52 UTC (rev 22768)
+++ trunk/bzflag/src/bzfs/bzfsAPI.cxx 2013-05-26 23:10:11 UTC (rev 22769)
@@ -3564,6 +3564,12 @@
countdownPauseStart = TimeKeeper::getNullTime();
clOptions->countdownPaused = false;
}
+
+ // fire off a game end event
+ bz_GameStartEndEventData_V1 gameData;
+ gameData.eventType = bz_eGameEndEvent;
+ gameData.duration = clOptions->timeLimit;
+ worldEventManager.callEvents(bz_eGameEndEvent,&gameData);
}
BZF_API bz_eTeamType bz_checkBaseAtPoint ( float pos[3] )
This was sent by the SourceForge.net collaborative development platform, the world's \
largest Open Source development site.
------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
BZFlag-commits mailing list
BZFlag-commits@lists.SourceForge.net
https://lists.SourceForge.net/lists/listinfo/bzflag-commits
irc: #BZFlag @ irc.freenode.net
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic