diff options
author | Torbjörn Andersson | 2005-05-02 05:41:01 +0000 |
---|---|---|
committer | Torbjörn Andersson | 2005-05-02 05:41:01 +0000 |
commit | cd6e22a3b15129a6e474f2752815643a44aff07d (patch) | |
tree | 3c37d25ceaae6fe4594164195a47f17752009c97 /sword2/router.cpp | |
parent | b56824d0cf0e559133f1649291cb1e02fc7fc47b (diff) | |
download | scummvm-rg350-cd6e22a3b15129a6e474f2752815643a44aff07d.tar.gz scummvm-rg350-cd6e22a3b15129a6e474f2752815643a44aff07d.tar.bz2 scummvm-rg350-cd6e22a3b15129a6e474f2752815643a44aff07d.zip |
Cleanup. Most of is simply moves the credits code out of Logic and into
Screen. I've also added an unused "splash screen" function that displays
the image that used to be shown by CacheNewCluster() while copying a data
file from CD to hard disk. ScummVM doesn't do that, but it's a nice image
that I wish we could do something useful with, and it's easier to have the
code here for reference than having to dig through old revisions of the
resource manager.
svn-id: r17894
Diffstat (limited to 'sword2/router.cpp')
-rw-r--r-- | sword2/router.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sword2/router.cpp b/sword2/router.cpp index ef0b81f5a6..de92f28855 100644 --- a/sword2/router.cpp +++ b/sword2/router.cpp @@ -92,7 +92,7 @@ uint8 Router::returnSlotNo(uint32 megaId) { } } -void Router::allocateRouteMem(void) { +void Router::allocateRouteMem() { uint8 slotNo; // Player character always always slot 0, while the other mega @@ -124,20 +124,20 @@ void Router::allocateRouteMem(void) { // megaObject->route_slot_id = slotNo + 1; } -WalkData *Router::getRouteMem(void) { +WalkData *Router::getRouteMem() { uint8 slotNo = returnSlotNo(Logic::_scriptVars[ID]); return (WalkData *) _routeSlots[slotNo]; } -void Router::freeRouteMem(void) { +void Router::freeRouteMem() { uint8 slotNo = returnSlotNo(Logic::_scriptVars[ID]); free(_routeSlots[slotNo]); _routeSlots[slotNo] = NULL; } -void Router::freeAllRouteMem(void) { +void Router::freeAllRouteMem() { for (int i = 0; i < TOTAL_ROUTE_SLOTS; i++) { free(_routeSlots[i]); _routeSlots[i] = NULL; @@ -256,7 +256,7 @@ int32 Router::routeFinder(ObjectMega *ob_mega, ObjectWalkdata *ob_walkdata, int3 return routeFlag; // send back null route } -int32 Router::getRoute(void) { +int32 Router::getRoute() { /********************************************************************* * GetRoute.C extract a path from walk grid * 12 october 94 @@ -2357,7 +2357,7 @@ void Router::setUpWalkGrid(ObjectMega *ob_mega, int32 x, int32 y, int32 dir) { _node[_nNodes].dist = 9999; } -void Router::plotWalkGrid(void) { +void Router::plotWalkGrid() { int32 i; // get walk grid file + extra grid into 'bars' & 'node' arrays @@ -2380,7 +2380,7 @@ void Router::plotCross(int16 x, int16 y, uint8 colour) { _vm->_screen->drawLine(x + 1, y - 1, x - 1, y + 1, colour); } -void Router::loadWalkGrid(void) { +void Router::loadWalkGrid() { WalkGridHeader floorHeader; byte *fPolygrid; uint32 theseBars; @@ -2439,7 +2439,7 @@ void Router::loadWalkGrid(void) { } } -void Router::clearWalkGridList(void) { +void Router::clearWalkGridList() { memset(_walkGridList, 0, sizeof(_walkGridList)); } |