aboutsummaryrefslogtreecommitdiff
path: root/saga/sthread.cpp
AgeCommit message (Collapse)Author
2004-10-21A bunch of mostly panel-related fixes for the ITE intro. Apart from theTorbjörn Andersson
numerous animation glitches, it's looking almost like the real thing now. It's no longer possible to walk away during the intro. This should provide a great incentive to implement the "Escape" feature. ;-) svn-id: r15626
2004-10-19Increased debug level in the name of sanity.Torbjörn Andersson
svn-id: r15613
2004-10-09Initial attempt at fixing the SData problem. I'm still not sure exactly howTorbjörn Andersson
to fix the script "static" area, though. In addition, initialise a few variables, and test for NULL-ness of a few pointers. This fixes a few crashes I saw with yesterday's CVS snapshot. There's still an unexpected scene change in the intro (I think it triggers on Rhene walking too close to the exit), but at least it no longer crashes. svn-id: r15484
2004-10-03A few, mostly untested, fixes to the SAGA script engine:Torbjörn Andersson
* The frame pointer is updated. This won't make any difference since we don't actually *use* the frame pointer yet. * Return values from script functions are handled like in the original now, i.e. the function sets thread->retVal and lets the call instruction push it onto the stack. (There are two call instructions, one that handles return values and one that doesn't, so the script function doesn't know if it should push or not.) * Script return values are handled. None of this makes any noticeable difference to the ITE intro. svn-id: r15393
2004-09-23Replaced the standard stack with a custom-made. In the original SAGA engineTorbjörn Andersson
it appears that scripts are allowed to access the stack like any other memory area, so it's probably important that our stacks behave as closely to the original as possible. I don't know if this implementation does that yet, but it's a start. svn-id: r15240
2004-09-21The TourneySetup script now runs and finishes cleanly. However, this is notTorbjörn Andersson
as exciting as it first sounds, because even before this patch the script would run in its entirety - it just didn't know when to stop. I guess the exciting things don't happen until the next script is triggered (TorneyScene?). I think it will be easier to start fixing the numerous deficiencies (stack handling, SData, missing script functions, etc.) when we have something more concrete to work with. svn-id: r15215
2004-09-19Update the script's program counter in a more sane way. The opening scriptTorbjörn Andersson
runs for much longer now, but - unsurprisingly - it doesn't work yet. svn-id: r15192
2004-08-26add some comments about unimplemented opcodesJonathan Gray
svn-id: r14790
2004-08-22 o Eliminate all structure _tags.Eugene Sandulenko
o Fix RSCFile on MSVC8. o Started fixing script opcodes. svn-id: r14686
2004-08-12Merge SDEBUG_*, SF_* and STHREAD_* into Script class.Eugene Sandulenko
svn-id: r14568
2004-08-12Drop SSTACK_ in favor of common/stack.h implementation.Eugene Sandulenko
svn-id: r14566
2004-08-12Launch scene start script.Eugene Sandulenko
svn-id: r14561
2004-08-10Move CON_* to a class.Eugene Sandulenko
svn-id: r14538
2004-08-03Move TEXT_* to SagaEngine class.Eugene Sandulenko
svn-id: r14450
2004-08-02Fix #include paths.Eugene Sandulenko
svn-id: r14443
2004-08-02Objectize actor.cppEugene Sandulenko
svn-id: r14441
2004-08-01Clean up Script class a bit; add get/set functionsJoost Peters
svn-id: r14428
2004-08-01Made all MemoryReadStream local variables. This plugged a giantic constantEugene Sandulenko
leakage in the engine. svn-id: r14427
2004-08-01create Script class from SCRIPT_* and ScriptModuleJoost Peters
svn-id: r14425
2004-08-01move SDATA_* into seperate classJoost Peters
svn-id: r14424
2004-08-01merge gfx_mod.h into gfx.h and stick functions into a classJonathan Gray
svn-id: r14419
2004-08-01merge reinherit.h into saga.h and gfx_mod.h, note the error loading ↵Jonathan Gray
animations wasn't caused by this commit :) svn-id: r14405
2004-06-27Cleanup for MemoryReadStream; made it match the File-class interfaceMax Horn
svn-id: r14086
2004-05-13Added more stubs from script fucntions, some renames for consistency withEugene Sandulenko
disassembly. svn-id: r13835
2004-05-05Replaced R_printf() with debug() and warning(). There are still a couple ofTorbjörn Andersson
standard printf()s left, though. svn-id: r13791
2004-05-04Move from ys_binread.cpp and ys_binwrite.cpp to MemoryReadStream.Eugene Sandulenko
In fact there were no binary writes at all. svn-id: r13773
2004-05-01All graphics and input now is in OSystem.Eugene Sandulenko
Only timers left. svn-id: r13723
2004-05-01indentPaweł Kołodziejski
svn-id: r13715
2004-04-30Move from custom unsigned types to those provided by main config.hEugene Sandulenko
svn-id: r13687
2004-04-25Fix many warnings; use C++ type system instead of C style typedefs; removed ↵Max Horn
various unused stuff; const correctness; etc. svn-id: r13622
2004-04-12WIP for SAGA engine.Eugene Sandulenko
o text formatting is not consistent with rules, just indent utility is too dumb for that o it does not use OSystem, i.e. it runs on direct SDL calls o it may not even compile on your box o if you enable it, expect zillions of warnings o no sound Now it runs ITE intro as reinherit did svn-id: r13564