[Scummvm-cvs-logs] SF.net SVN: scummvm:[45783] scummvm/trunk/engines/tinsel/events.cpp
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Mon Nov 9 23:19:22 CET 2009
Revision: 45783
http://scummvm.svn.sourceforge.net/scummvm/?rev=45783&view=rev
Author: fingolfin
Date: 2009-11-09 22:19:21 +0000 (Mon, 09 Nov 2009)
Log Message:
-----------
TINSEL: Simplifying PolyTinselProcess
Modified Paths:
--------------
scummvm/trunk/engines/tinsel/events.cpp
Modified: scummvm/trunk/engines/tinsel/events.cpp
===================================================================
--- scummvm/trunk/engines/tinsel/events.cpp 2009-11-09 22:18:25 UTC (rev 45782)
+++ scummvm/trunk/engines/tinsel/events.cpp 2009-11-09 22:19:21 UTC (rev 45783)
@@ -605,25 +605,27 @@
void PolygonEvent(CORO_PARAM, HPOLYGON hPoly, TINSEL_EVENT tEvent, int actor, bool bWait,
int myEscape, bool *result) {
CORO_BEGIN_CONTEXT;
- PTP_INIT to;
PPROCESS pProc;
CORO_END_CONTEXT(_ctx);
CORO_BEGIN_CODE(_ctx);
- if (result) *result = false;
- _ctx->to.hPoly = -1;
- _ctx->to.event = tEvent;
- _ctx->to.pic = InitInterpretContext(GS_POLYGON,
+ PTP_INIT to;
+
+ if (result)
+ *result = false;
+ to.hPoly = -1;
+ to.event = tEvent;
+ to.pic = InitInterpretContext(GS_POLYGON,
GetPolyScript(hPoly),
tEvent,
hPoly, // Polygon
actor, // Actor
NULL, // No Object
myEscape);
- if (_ctx->to.pic != NULL) {
- _ctx->pProc = g_scheduler->createProcess(PID_TCODE, PolyTinselProcess, &_ctx->to, sizeof(_ctx->to));
- AttachInterpret(_ctx->to.pic, _ctx->pProc);
+ if (to.pic != NULL) {
+ _ctx->pProc = g_scheduler->createProcess(PID_TCODE, PolyTinselProcess, &to, sizeof(to));
+ AttachInterpret(to.pic, _ctx->pProc);
if (bWait)
CORO_INVOKE_2(WaitInterpret, _ctx->pProc, result);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list