[Scummvm-cvs-logs] scummvm master -> 17711622429c980a0c3a3c549a7b55dbab7a2239

wjp wjp at usecode.org
Thu Oct 17 22:54:35 CEST 2013


This automated email contains information about 734 new commits which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
a2adda516b AVALANCHE: Initial PtoC output.
cc5b8732bb AVALANCHE: Remove #include "ptoc.h" lines from the beginning every .cpp files.
a183d560c1 AVALANCHE: Add standard header.
d33da0a429 Revert "AVALANCHE: Add standard header."
7939ab1f62 AVALANCHE: Add standard header. (Now the right one...)
a3025b8dad AVALANCHE: Add namespace.
38bc20a076 AVALANCHE: Use Artistic Style.
f974bccbb0 AVALANCHE: Remove empty lines with only ";" characters in them.
2c0e16d6e4 AVALANCHE: Hook the engine into ScummVM.
d53f5d9885 AVALANCHE: Add skeleton.
d2009c014f AVALANCHE: Add detection. Some fix in console.h.
17ee13f2c1 AVALANCHE: Start stubbing with bootstrp.cpp.
cf80573799 AVALANCHE: Fix compilation
b916ab6f02 AVALANCHE: Messing around with GameDescription.
b2f62278b6 AVALANCHE: Remove some functions from detection.
1453413d24 AVALANCHE: Fix detection.
a33797b272 AVALANCHE: Partially implement run_avalot().
fa10b10ec7 AVALANCHE: Keep the functions connected to command line arguments and the main menu for later. Minimal cosmetic modifica
3946d0ed92 AVALANCHE: Add class Avalot. Cosmetic modifications.
6d35a794cd AVALANCHE: Getting GYRO to compile.
6317297b39 AVALANCHE: Implement ROOMNUMS.INC.
1ce5e3bc3f AVALANCHE: Add color.h to replace the color constants from the CRT unit of Pascal.
aeff42074a AVALANCHE: Reorganise source files.
178386f1c4 AVALANCHE: Stub gyro2.cpp. Fix readmes.
5750410279 AVALANCHE: Add some detail in debug strings
46849fcc42 AVALANCHE: Start continuously adding parts to Avalot as I proceed with the conversion of the necessary Pascal units.
c79387608b AVALANCHE: Add Scrolls2. Logger is needed to proceed.
dc05ec1964 AVALANCHE: Relocate used sources. (Should have happened sooner.)
a267dc3025 AVALANCHE: Add Logger.
11efe29da8 AVALANCHE: Add Enhanced.
c39434f37e AVALANCHE: Add Lucerna.
7f1a322de4 AVALANCHE: Repair compilation.
ca807d74bf AVALANCHE: Add Visa.
3e48a4e187 AVALANCHE:  Add Celer.
b807337282 AVALANCHE: Add Sequence.
f558eb2e56 AVALANCHE: Add Enid.
1d950021b8 AVALANCHE: Add Pingo.
49e411f557 AVALANCHE: Add Timeout.
ee5fb07c91 AVALANCHE: Gyro: Change constants to variables with initial values to be equal to the Pascal code.
1d88f5c2f9 AVALANCHE: Add a little self-warning.
0a355ea368 AVALANCHE: Add Trippancy.
784a6aa821 AVALANCHE: Change constant into initialized variable according to the Pascal sources.
a9cc1f78b4 AVALANCHE: Gyro: Replace namespace with class.
c2d3c5fcf8 AVALANCHE: Enhanced: Replace namespace with class.
8398250387 AVALANCHE: Repair Enhanced and Gyro.
dd40c1896b AVALANCHE: Instantiate finished classes in the engine.
b7ef84983e AVALANCHE: Pingo: replace namespace with class.
e4c8d82f9d AVALANCHE: Scrolls: replace namespace with class.
140e205227 AVALANCHE: Update the main class.
612582f016 AVALANCHE: Repair Pingo.
44a9dd2083 AVALANCHE: Visa: replace namespace with class.
7623ea79fe AVALANCHE: Celer: replace namespace with class.
3c413c7ccb AVALANCHE: Enid: replace namespace with class.
5ce7e689b4 AVALANCHE: Repair Enhanced, cosmetics in Gyro.
edaba46087 AVALANCHE: Logger: replace namespace with class.
7c43ab471f AVALANCHE: Lucerna: replace namespace with class.
e28d3263dc AVALANCHE: Sequence: replace namespace with class.
adf4a357ce AVALANCHE: Timeout: replace namespace with class.
c9baa8f456 AVALANCHE: Trip: replace namespace with class.
17fe756073 AVALANCHE: Repair class Avalot.
90bc42f5c2 AVALANCHE: Repair compilation.
8ba4050b1f AVALANCHE: Add Acci.
cb9ec866ac AVALANCHE: Repair compilation, minor modifications.
1d11268eb4 AVALANCHE: Reorganise includes.
7c147c920f AVALANCHE: Fix code formatting
63737c3878 Merge branch 'avalanche' of https://github.com/urukgit/scummvm into avalanche
539ce56124 AVALANCHE: Fix some more code formatting
5e2ec51025 AVALANCHE: Add Basher.
8aa251722f AVALANCHE: Add Dropdown.
3fd8a18246 AVALANCHE: Finish stubbing of Lucerna. Cosmetic change in Trip.
712ccac0b2 AVALANCHE: Finish stubbing of Scrolls.
7526af940c AVALANCHE: Scrolls: Repair compilation.
76423aa712 AVALANCHE: Add Closing.
e4e3574b91 AVALANCHE: Finish stubbing of Avalot.
ef1f254b03 AVALANCHE: Finish stubbing Avalot vol. 2.
ae1f189370 AVALANCHE: Change constructor of Scrolls, repair string handling in Lucerna and Scrolls.
e27948a1a5 AVALANCHE: Minor repair in Trip, move initialization of the engine into the constructor.
f47bc39f64 AVALANCHE: Update the description of classes.
8d03232cf8 AVALANCHE: Minor repair.
590f89e90e AVALANCHE: Celer: Implement file handling.
490e66e239 AVALANCHE: Gyro: Implement file handling.
d66e89c888 AVALANCHE: Update module.mk.
218c7c3ffb AVALANCHE: Gyro: change void* to byte*, make memory handling more C++-like.
78befcb24a AVALANCHE: Lucerna: implement load_also().
d27a3e07f7 AVALANCHE: Gyro: expand initialization.
7078b4de14 AVALANCHE: Avalot: repair initialization.
430dcc037f AVALANCHE: Lucerna: Repair load_also().
9a6684b37c AVALANCHE:  Celer: implement load_chunks() further.
617898d42c AVALANCHE: Celer: implement show_one().
397ebad385 AVALANCHE: Minor repairs regarding file handling.
cc5e4bbad0 AVALANCHE: Partly implement load() in Lucerna, change char * to Common::String in parameter lists.
c6ff09a246 AVALANCHE: Lucerna: implement thinkabout(). Modify newpointer() in Gyro.
fcaf659c7a AVALANCHE: Lucerna: implement load_digits().
14dfc468ea AVALANCHE: Lucerna: implement toolbar().
0f2a0cf2a4 AVALANCHE: Pingo: partially implement winning_pic().
755d07a8de AVALANCHE: Scrolls: implement file handling.
8a44a94bb6 AVALANCHE: Celer: implement show_one_at().
f01cbaa4e1 AVALANCHE: Enid: update header.
2d4f710c9c AVALANCHE: Trip: implement triptype::init().
848860a5fb AVALANCHE: Trip: modify trptype::init(), minor modifications in other functions parameter lists.
a394fea15d AVALANCHE: Add a comment to Gyro, remove test line from Avalot.
2c0b694371 AVALANCHE: update file handling in multiple files.
223c2d82e5 AVALANCHE: Implement file handling in Visa.
c90357724f AVALANCHE: Implement Basher's initialization.
11cbacfe9d AVALANCHE: Implement file loadfont() in Scrolls. Move initializations to run(), so loadfont() can access the data files 
c99abdeb61 AVALANCHE: Implement log_epsonroman() in Logger.
4656a7a285 AVALANCHE: Don't call the menu by default.
6b87fc4f45 AVALANCHE: Little revision in Gyro.
0aaffcfb94 AVALANCHE: Add Graph.
096bd2df76 AVALANCHE: Major update in the Engine (include Graph), minor updates in Graph and Lucerna.
d7b8240920 AVALANCHE: Update Graph, leave a comment in Lucerna.
0fc20c25de AVALANCHE: Repair Lucerna.
1bb9d2b996 AVALANCHE: Grap: rename drawToScreen to refreshScreen, add drawBar.
a096ee1957 AVALANCHE: Partially implement Scrolls::state. (Bother with the patterns later.)
fa881567db AVALANCHE: Update Graph.
c18b41b21d AVALANCHE: Lucerna: finish implementation of load().
b4f5642765 AVALANCHE: Revise Lucerna::load().
a1673fe167 AVALANCHE: Lucerna: finish load().
0f8a091597 AVALANCHE: Update Lucerna::load(), update makefile, increase screen height (in Graph).
58dc18a2da AVALANCHE: Move the height-doubling part from Lucerna to Graph.
bc15033c14 AVALANCHE: Remove unnecessary comments from Lucerna::load().
4a373a1925 AVALANCHE: update Avalot.
885a8113bc AVALANCHE: repair Avalot.
9683ced39e AVALANCHE: implement Lucerna::toolbar(), revise Graph::copySurface() and Graph::setPixel(), update Lucerna::load() accor
fa1b5d3f3a AVALANCHE: Update Graph.
1c95316924 AVALANCHE: Implement getsettype::remember().
c8bf87918a AVALANCHE: Repair Scrolls::state().
964374024b AVALANCHE: Add new Graph::readImage(), implement Lucerna::thinkabout() using it and use it in Lucerna::toolbar() as well
251c4b0acb AVALANCHE: Revise Lucerna, remove a blank line in Trip.
66cf00ab11 AVALANCHE: Change the source of data in Graph::readImage() for further use. Change existing use of the function accordin
90788cec11 AVALANCHE: Implement Lucerna::showscore().
b6f42c532e AVALANCHE: Partially implement Lucerna::points(). (No sounds.)
d3ec729c8f AVALANCHE: Add Graph::drawLine().
4292850297 AVALANCHE: Stub Dropdown::lightup().
dd511cfc09 AVALANCHE: Implement Gyro::newgame(), update Avalot::setup() and Avalot::run(), add some comment in gyro2.h.
c46bb2449f AVALANCHE: Add comment in Avalot::run().
293c8f9b7e AVALANCHE: Add class SpriteInfo to graph.h, use it in Trip.
c96ac1664a AVALANCHE: Repair build errors due to the introduction of _info in Trip::triptype.
a2dfb3635f AVALANCHE: Implement/repair multiple functions in Trip.
bcab639266 AVALANCHE: Add Graph::drawSprite().
4fc9de5d46 AVALANCHE: Replace Pingo::copy03() with Graph::refreshScreen().
e5614ef0dc AVALANCHE: Fix Gyro::newgame().
467246c004 AVALANCHE: Add refreshScreen() to every iteration of the main loop in Avalot::run().
e2e979897e AVALANCHE: Update Graph::drawSprite(), update Trip::axendor() accordingly, fix Trip::call_axendors().
c71d4dcc64 AVALANCHE: Lucerna:load() - put the background lower, making space for the toolbar on the top.
c6d2b45df9 AVALANCHE: Implement Lucerna::showrw().
b18ed9a5ff AVALANCHE: Remove Graph::drawLine().
4dc97824e6 AVALANCHE: Incorporate Graph::readImage() into Grap::copySurface(), update Lucerna's functions accordingly. Delete Graph
f8ad6eb650 AVALANCHE: Rename copySurface() to drawPicture(), add some comment to it.
ef77a84c83 AVALANCHE: Trip: repair triptype:init(), remove unnecessary data field from definition.
459a8ce2f5 AVALANCHE: Partially implement Graph::drawSprite().
09877044b3 AVALANCHE: Repair Graph::drawSprite().
097572193f AVALANCHE: Update Graph::drawPicture().
137d334144 AVALANCHE: Finish implementation of Graph::drawSprite().
6f20b8f5a2 AVALANCHE: Graph: change 'becouse' to 'because' in comments...
e70b5167c9 AVALANCHE: Change computing method of picnum in triptype::andexor().
79c6a48bd2 AVALANCHE: Add some blank lines in Trip.
d6f93d06ee AVALANCHE: Move flesh_colours() from Lucerna to Graph. Implement it.
44bf47f75e AVALANCHE: Update Graph::flesh_colours().
a16dc4c558 AVALANCHE: Add comments to Graph::drawSprite().
050c60c192 AVALANCHE: Implement menuset::update().
9970ab90fb AVALANCHE: Dropdown: Repair menuset::update(), implement Dropdown:chalk().
de066939d1 AVALANCHE: Remove warning from menuset::update().
2af413cccf AVALANCHE: Cosmetic correction in Dropdown::chalk().
984b478132 AVALANCHE: Modify comment in Dropdown::chalk().
9e15eee970 AVALANCHE: Modify Avalot::run() to don't exit after a single loop, comment out the error in getsettype::remember() until
5dc6abe87b AVALANCHE: Add event handling.
3058a02ab9 AVALANCHE: Fix commas.
bddc0e5cbf AVALANCHE: Move handleMoveKey() from Avalot to Trip.
e8841fbe5c AVALANCHE: Implement Trip::handleMoveKey(), update Avalot::handleKeyDown().
aed0c42f15 AVALANCHE: Add comments to Avalot:handleKeyDown().
aa0603cf42 AVALANCHE: rename constants to follow our code formatting conventions.
0d6a327f98 AVALANCHE: Remove unnecessary indents from avalanche.cpp.
bc5b3fbb65 AVALANCHE: Rename Graph to Graphics. Update everything accordingly.
043ded8185 AVALANCHE: Implement triptype::walk().
ba581b0b32 AVALANCHE: Fix indents in avalanche.cpp.
8c5ce549e6 AVALANCHE: Change _graphics into a pointer, modify the rest of the code accordingly. Introduce AvalanhceEngine::initiali
cc6197d77f AVALANCHE: Change _avalot into pointer, update everything accordingly.
f035622b14 AVALANCHE: Get rid of parts of the engine I don't use yet.
10ec7e0e0f AVALANCHE: Change _gyro into pointer, update everything accordingly.
ca51bf19c9 AVALANCHE: Change _timeout into pointer, update everything accordingly.
bc9823ad9b AVALANCHE: Change _enhanced into pointer, update everything accordingly.
4d25117135 AVALANCHE: Change _logger into pointer, update everything accordingly.
c0823f3e79 AVALANCHE: Change _pingo into pointer, update everything accordingly.
39dfddff1f AVALANCHE: Change class variables to pointers, update everything accordingly.
03665fac21 AVALANCHE: Graphics: double screen height.
0beae3b95c AVALANCHE: free() the surfaces in Graphics' functions.
e5fb4e3866 AVALANCHE: Cosmetic modifications in triptype::walk().
63fbb1d04f AVALANCHE: Implement Lucerna::find_people().
ab04dd7aa6 AVALANCHE: Cosmetic modification in Gyro.
28b0076e63 AVALANCHE: Celer: add new flavour: ch_natural_image.
502cd7a017 AVALANCHE: Improve Celer::display_it(), update Celer::load_chunks() to work properly with it.
6644905eac AVALANCHE: Fix cycle in Trip::trippancy_link().
9b4c9e496f AVALANCHE: Add Graphics::drawFrame().
63e7c5b3d1 AVALANCHE: Repair array indexes in Timeout and Trip.
06bde8b277 AVALANCHE: Implement Celer::load_chunks().
395b917e94 AVALANCHE: Repair Timeout.
5e257a500b AVALANCHE: Implement Timeout::one_tick().
a955f6acab AVALANCHE: Revise Celer::pics_link() a bit.
37ea01644a AVALANCHE: Replace Gyro::slowdown() with ScummVM's own utilities.
9a26bb502f AVALANCHE: Remove parenthesis and add comment to Avalot::run().
b0d4019cea AVALANCHE: Remove Celer:mdrop().
6e8dec45dd AVALANCHE: Add loadPictureGraphic, loadPictureRow, revise drawPicture in Graphics, update almost everything accordingly.
0a4747d915 AVALANCHE: Update rest of Celer accorded to the revision in Graphics.
efe3a662bf AVALANCHE: Add comments to Graphics.
ff1bc9e5a5 AVALANCHE: Get rid of Lucerna::mblit() and Lucerna::blitfix().
190e37d3f9 AVALANCHE: Remove Graphics::drawPicture_old().
5fe090a38c AVALANCHE: Add comments in Graphics and Trip, repair functions in Trip.
d3ff894ff6 AVALANCHE: Replace call of Basher::keyboard_link() with Avalanche::updateEvents() in Avalot::run().
c9fbfb6d32 AVALANCHE: Remove unnecessary indents from Visa.
de97da2fe6 AVALANCHE: Implement Basher::plottext().
9c96417041 AVALANCHE: Add comments to Basher::plottext().
bda09042b5 AVALANCHE: Rename little[] to characters[] and current to inputText in Gyro.
7d3b69251f AVALANCHE: Minor repairs in Basher.
541f5f9c3b AVALANCHE: Implement Avalot::handleKeyDown() further.
0703085d20 AVALANCHE: Repair Avalot::handleKeyDown().
7c8d415a94 AVALANCHE: Remove comment from Graphics.
341bf679c0 AVALANCHE: Cosmetic repairs in Graphics.
eec48fa42e AVALANCHE: Introduce new class: Parser. Update rest of the code accordingly.
31f8e91444 AVALANCHE: Rename variables in Parser. Add _leftMargin to Parser. Fix _leftMargins in Basher.
df427ba7e8 AVALANCHE: Broaden comment in avalot.h.
825df596e6 AVALANCHE: Add Parser::handleBackspace(). Update Avalot::handleKeyDown() accordingly.
a1a2fa2da8 AVALANCHE: Implement handling of the cursor in Parser.
ad7f8add4d AVALANCHE: Add tryDropdown() and _inputTextBackup to Parser, implement handleReturn(), stub tryDropdown() in Parser.
17b2fb02c0 AVALANCHE: Partially implement Acci::parse(), add Acci::pos(),  Acci::clearwords(), reimplement Acci::wordnum(), impleme
9474e2dc61 AVALANCHE: Revisions in acci2.h and lucerna2.cpp, partially implement Acci::parse() and functions connected to it.
591a4852c4 AVALANCHE: Repair parser, implement Acci::replace(), further implement Acci:parse().
9b9c9d0fa5 AVALANCHE: Implement Acci::do_pronouns() and Acci::displaywhat().
c2ac2fdc87 AVALANCHE: Finish implementation of Acci::parse(), repair Acci::displaywhat() and Acci::words[].
e08980c7a4 AVALANCHE: Repair Acci::person_speaks().
e32110339e AVALANCHE: Move wipeText() from Basher to Parser, implement it. Fix parts of Acci::do_that().
b182fd814e AVALANCHE: Partially implement Acci::stand_up(), repair Acci::parse().
a1f87fdaeb AVALANCHE: Modify Graphics and Lucerna, so the engine saves the background and redraws it every time before a sprite is 
3b11fc1224 AVALANCHE: Repair Celer::load_chunks(), remove background drawing from Graphics::drawSprite().
9855cb8f1f AVALANCHE: Add warning to Acci::do_that(), remove blank lines from Avalot::run(), remove unnecessary cycle from Lucerna:
2857f5aad2 AVALANCHE: Revise Graphics::drawSprite(), repair Trip::apped().
a13d37e5ca AVALANCHE: Implement Trip::checkfeet(), repair Trip::stopwalking(). Repair Acci::stand_up().  Repair Gyro::newgame().
06f86bedb0 AVALANCHE: Add _magics to Graphics, implement Lucerna::draw_also_lines(), update Trip::checkfeet() accordingly.
7800c4735f AVALANCHE: Repair Acci::parse().
2e741241c5 AVALANCHE: Broaden Avalot::handleKeyDown().
6ffcb714af AVALANCHE: Broaden Avalot::handleKeyDown().
5290eb9879 AVALANCHE: Repair Lucerna::draw_also_lines().
d66feb32a0 AVALANCHE: Implement rest of Acci::do_that().
599aa9a063 AVALANCHE: Move pos() from Acci to Parser, update other code accordingly.
544cf37757 AVALANCHE: Move strf() from Avalanche to Gyro.
9660c1a566 AVALANCHE: Add some constatns to Scolls, implement Scrolls::calldrivers(), Scrolls::solidify() and Scrolls::strip().
832a11a2ba AVALANCHE: Repair Scrolls::resetscroll() and Scrolls::calldrivers().
471933a3fd AVALANCHE: Remove comment from Graphics, partially implement Scrolls::drawscroll(), repair Scrolls::solidify(), broaden 
1956ca280b AVALANCHE: Repair Logger::log_scrollchar(), cosmetic corrections in Scrolls and Timeout.
15f6ba8b2a AVALANCHE: Introduce _screen in Graphics.
ba00b2a7d9 AVALANCHE: Mostly cosmetic modifications in Visa, stub Timeout::arkata_shouts() until dixi() works, partially implement 
a971cf3a39 AVALANCHE: Implement Scrolls::say().
532306f8cb AVALANCHE: Introduce AvalancheEngine::getEvent().
bd516f4244 AVALANCHE: Implement Scrolls::say(). Introduce Graphics::_scrolls, implement Scrolls::normscroll() and update Scrolls::d
26b7333137 AVALANCHE: Repair parts of the scrolls system, implement the death of Avalot and almost everything connected to it.
84aac3e49b AVALANCHE: Rework Scrolls::normscroll().
84bf0984b0 AVALANCHE: Introduce Graphics::drawArc(), use it in Scrolls::drawscroll().
c182d28b02 AVALANCHE: Introduce Graphics::drawPieSlice(), use it in Scrolls::drawscroll().
59ff20b32c AVALANCHE: Implement the clock in Lucerna, upgrade Graphics::drawArc() to work in synergy with that.
44ec5b68b5 AVALANCHE: Repair Graphics::drawArc(), update Scrolls::drawscroll() accordingly.
ae2d657dc6 AVALANCHE: Update comments connected to Graphics::drawArc().
ad199c4929 AVALANCHE: Repair Graphics::drawArc().
626d8aa8c1 AVALANCHE: Implement switching between rooms (Trip::fliproom(), Lucerna::enterroom()),  implement drawing multiple sprit
2a6d70cfb8 AVALANCHE: Repair Acci::parse().
1443d8ce16 AVALANCHE: Repair Lucerna::enterroom(), Lucerna::put_geida_at(), broaden Roomnums.
288abffafa AVALANCHE: Repair Visa::unskrimble() and Scrolls::calldrivers().
a41736e698 AVALANCHE: Introduce Graphics::drawTriangle(), use it in Scrolls::bubble(). Modify Graphics::drawPieSlice(), update func
c519ea0aa2 AVALANCHE: Remove unnecessary consts from Graphics.
ee6119d07f AVALANCHE: Repair Timeout::lose_timer().
698dae201a AVALANCHE: Introduce Graphics::drawText(). Rename raw to fontType, move it from Gyro to Graphics. Update the rest of the
6a187a04ee AVALANCHE: Finish implementation of Scrolls::bubble().
960c8b2630 AVALANCHE: Improve comments in Scrolls::bubble().
14076ad0e9 AVALANCHE: Remove unnecessary comments from Avalot::setup().
d8798e978a AVALANCHE: Repair Graphics::drawText() and Scrolls::say().
caed4470f1 AVALANCHE: Implement Acci::personshere(), Visa::talkto(), make control-constants in Scrolls public.
20c2a756b2 AVALANCHE: Add typecasts to Acci::parse(), repair Scrolls::calldrivers() and Acci::personshere().
670c7c4863 AVALANCHE: Repair Scrolls::bubble() and Visa::talkto().
2bbf25e948 AVALANCHE: Repair Scrolls::bubble().
24312c45f8 AVALANCHE: Repair Scrolls::say().
31a165c700 AVALANCHE: Repair constants in Gyro, repair Lucerna::enterroom(), Trip::back_and_forth(), Trip::geida_procs(), Visa::tal
fde5508502 AVALANCHE: Rename variables in Graphics::drawSprite().
ea65a86678 AVALANCHE: Implement Gyro::load_a_mouse(), some cosmetic correction in Gyro.
681fe7029a AVALANCHE: Remove useless parts/comments from Gyro, replace some comments in it.
1f751ff157 AVALANCHE: Stub Gyro::super_off() and Gyro::super_on().
d860bc5925 AVALANCHE: Remove Gyro::on_virtual(), Gyro::off_virtual(), Gyro::super_off(), Gyro::super_on(). Replace their calls with
5e2627542a AVALANCHE: Remove functions connected to mouse handling from Gyro, remove Lucerna::flip_page().
dc1e9022b1 AVALANCHE: Add AvalancheEngine::getMousePos(), remove Gyro::hopto(), implement Scrolls::dodgem() and Scrolls::undodgem()
4430e435d8 AVALANCHE: Upgrade Scrolls::normscroll().
2bcca8a0dd AVALANCHE: Remove multiple definition. (Already defined in Graphics.)
05f3838b16 AVALANCHE: Partially implement Lucerna::checkclick(), upgrade other parts of the code during the process. Repair Gyro::l
27d7ae56a6 AVALANCHE: Repair Lucerna::verte().
84bf98c9e5 AVALANCHE: Repair Avalot::handleKeyDown(), add comments to parser.h.
87159b9639 AVALANCHE: Implement the rest of Lucerna::checkclick() and everything connected to it. (Except sounds.)
6555d7d5db AVALANCHE: Repair Scrolls::drawscroll().
50831c1901 AVALANCHE: Implement Trip::newspeed().
8e03019731 AVALANCHE: Minor repairs in Avalanche and Trip.
c4891ace82 AVALANCHE: Repair Acci::do_that(), remove comments from Lucerna::topcheck().
b591434940 AVALANCHE: Add saving/loading during run time.
99b4b12b1c AVALANCHE: Add AvalancheEngine::synchronize(),   AvalancheEngine::generateSaveFileName(), AvalancheEngine::saveGame().
52c07d08c0 AVALANCHE: AvalancheEngine: Revise synchronize(), saveGame(), loadGameState(). Add loadGame(). Rename generateSaveFileNa
f9047bb83d AVALANCHE: Repair synchronize() and loadGame(), update canSaveGameStateCurrently() and canLoadGameStateCurrently() in Av
aab3930779 AVALANCHE: Implement loading from the Launcher. Upgrade saveGame(), loadGame() in, add expandDate() to AvalancheEngine. 
f8796e720e AVALANCHE: Add thumbnail support and version tracking to the saving/loading system. Repair Trip::trippancy_link().
44f7802777 AVALANCHE: Rename Gyro::reloaded to Gyro::isLoaded. Repair a bug in the original engine regarding timing of animations/s
c43373f7ae AVALANCHE: Implement opening of doors. Rethink a bit the graphics and the timer system to do so.
dbd330bf2f AVALANCHE: Rename special() to openBox() in Acci, implement it.
457d898ff3 AVALANCHE: Upgrade Lucerna::enterroom(). Add r__yourhall to roomnums.h, handle it's cases in Lucerna:enterroom() and Tri
90da6c5e6c AVALANCHE: Repair Acci::do_that(), Gyro::getname(), Lucerna::find_people(), triptype::walkto().
38c51209a4 AVALANCHE: Upgrade Trip::apped(). Update rest of the code to call it and the previously upgraded Celer::show_one() prope
c19b50b3f4 AVALANCHE: Upgrade Trip::infield(), update the rest of the code accordingly. Repair Trip::neardoor(). Introduce Parser::
29f159b3ac AVALANCHE: Implement/repair Acci::do_that() and (almost) everything connected to it.
f4824986ec AVALANCHE: Repair Lucerna::bearing().
f729e9e848 AVALANCHE: Repair Acci::wordnum().
26d2e1bd18 AVALANCHE: Fix array indexes in Acci::do_that(), upgrade Lucerna::enterroom().
6df55520b7 AVALANCHE: Implement Acci::exampers(). Repair Avalot::setup().
762e91218d AVALANCHE: Repair array indexes in Timeout.
f2049db1db AVALANCHE: Repair array indexes in Trip.
e36d90f8b8 AVALANCHE: Repair Lucerna::callverb().
934170b353 AVALANCHE: Implement Acci::inv().
06346339a9 AVALANCHE: Implement Timeout::after_the_shootemup(), repair a lot of array indexes in various places.
338dac4e10 AVALANCHE: Implement Acci::store_interrogation() and all the functions it uses.
f0dbe10cb2 AVALANCHE: Repair exampers(), openBox() and do_that() in Acci. Repair loading from the Launcher.
f7d17fd7b7 AVALANCHE: Partially implement the music room. (Without music.)
f53d998e53 AVALANCHE: Repair Gyro::whereis indexes.
6531ca39b9 AVALANCHE: Various index fixes in Lucerna.
499d176ab1 AVALANCHE: Repair Acci::do_that() and roomnums.h. Some cosmetic repairs here and there.
f95834ca05 AVALANCHE: Repair "entrance hall" room and everything connected to it.
3aa059848a AVALANCHE: Repair the catacombs.
bdde166c49 AVALANCHE: Repair the Oubliette in the catacombs and wrong parameters connected to Geida's follow-function. Repair the s
06d0ce1b0f AVALANCHE: Minor cosmetic fixes.
73048872b2 AVALANCHE: Upgrade show_one() so it can replace show_one_at(), preventing code duplication.
0abeaababb AVALANCHE: Replace the mini-game "Nim" until implementation.
c421426d8a AVALANCHE: Make the game finally completable.
a9e9a8b9af AVALANCHE: Cosmetic and other repairs in Timeout.
4d6573a80e AVALANCHE: Start implementation of the drop-down menu.
5720fa1dba AVALANCHE: Implement drop-down menu. (Only with mouse control yet.)
cf5f150d9b AVALANCHE: Upgrade the drop-down menu.
9e848e8e64 AVALANCHE: Upgrade drop-down menu. (Now it's complete.) Fix Trip::neardoor().
9b7f138659 AVALANCHE: Repair drop-down menu, so the already implemented functions are working.
0afbcf1cf0 AVALANCHE: Rename/refactor avalanche.h/.cpp.
74979869ff AVALANCHE: Rename/refactor Acci. Implement Acci::peopleInRoom().
59317d6ac7 AVALANCHE: Rename/refactor Avalot.
84ae6db893 AVALANCHE: Get rid of Basher. Move everything needed from it to Parser::init().
09ee31e4ce AVALANCHE: Get rid of the rest of Basher.
38ceb705f2 AVALANCHE: Do renaming in Celer.
a6fb557a51 AVALANCHE: Some more renaming and a little bit of refactoring in Celer.
3fe9c6d90b AVALANCHE: Removing the file variable from Celer's member variables.
212391f337 AVALANCHE: Refactor Celer.
4ae897e3a9 AVALANCHE: Repair comments in Celer.
4cf40bc87a AVALANCHE: Rename refreshBackgroundSprites() to updateBackgroundSprites() in Celer.
a2c42df2b2 AVALANCHE: Fix compile errors
458dd5d0cc AVALANCHE: Fix link error using MSVC9
ccba9863eb AVALANCHE: Silent a warning
a8d9978de8 AVALANCHE: Silent a sign mismatch warning, improve loop condition
b38fd85d70 AVALANCHE: Do renaming/refactoring in Closing.
d148d08683 Merge branch 'avalanche' of https://github.com/urukgit/scummvm into avalanche
666d3eecfc AVALANCHE: Replace some British terms by American ones
543c4f59da AVALANCHE: Remove logger
d418b2c50c AVALANCHE: Fix MSVC warnings in lucerna2
cd808484af AVALANCHE: Fix some more MSVC warnings
c3ce7d4840 AVALANCHE: Fix MSVC warnings in trip6
fce3fe8381 AVALANCHE: Fix MSVC warnings in acci2
8e14821306 AVALANCHE: Fix bug in verbOpt()
8c8990368e AVALANCHE: Fix bug in lookAround()
53d9848f66 AVALANCHE: Fix bug in openDoor()
c781727a03 AVALANCHE: Fix bug in giveToSpludwick, add doxygen comment
caeb46f3ce AVALANCHE: Fix bugs in getProc() and giveGeidaTheLute(), add doxygen comment
3820462448 AVALANCHE: Fix bugs in winSequence() and doThat()
8e7921d19d AVALANCHE: USe the default return value in giveToSpludwick()
9c5cc7bba4 AVALANCHE: Add a default value to color in state(), remove dead code
e4b3fc8064 AVALANCHE: Add default value to Direction in updateBackgroundSprites()
ff31d8e521 AVALANCHE: Replace a STUB by a call to updateBackgroundSprites()
fe8e5c7325 AVALANCHE: Fix coding style: ++ and --
d2312e626b AVALANCHE: Review use of brackets in acci2
93a5fadcb8 AVALANCHE: Fix error reported by GCC: extra coma in enum declaraction
3f3757e03f AVALANCHE: Use a class-key when declaring a friend class
bbaa645b6c AVALANCHE: Fix error reported by GCC: extra coma in enum declaraction in acci2
316e84a4d4 AVALANCHE: cleanup acci2.h
41416f0c05 AVALANCHE: Clean up celer2
70aa840f0b AVALANCHE: Fix GCC warnings reported by GCC
6818dd2eb4 AVALANCHE: Fix some more GCC warnings
ad5529b5d2 AVALANCHE: Fix more GCC warnings
d77eafb0db AVALANCHE: Partially do the renaming in Dropdown.
8cb9c3825f Merge branch 'avalanche' of https://github.com/urukgit/scummvm into avalanche
97843d9e94 AVALANCHE: Repair regression in Acci::inventory().
08e8e92e3a AVALANCHE: Fix even more GCC warnings
a952ae3f87 AVALANCHE: Fix some more GCC warnings
247bf3ca26 AVALANCHE: Fix very verbose source of warning
90494e01fd AVALANCHE: Do renaming/refactoring in Acci, Avalanche and Dropdown. Unify drawing of menus' text in Dropdown in a single
15947cec7d AVALANCHE: Get rid of Enhanced. Further renamings and refactoring in Avalanche and Avalot.
c7e78ec6b7 AVALANCHE: Fix some more GCC warnings
b52c873c5b AVALANCHE: Fix GCC warnings
17033bdc2d AVALANCHE: Fix uninitialized variable
d52c410118 AVALANCHE: Fix systematic typo in comments
71af29e979 AVALANCHE: Remove dead code reported by CppCheck
e5cc0fa495 AVALANCHE: Fix more warnings reported by CppCheck
dab2988947 AVALANCHE: Start replacing C-style comments by C++-style
b690c9ad31 AVALANCHE: Finish replacing C-style comments by C++-style
31bd1369d9 AVALANCHE: Add some brackets to improve readability
8011d24ee2 AVALANCHE: Fix warnings reported by GCC
c0d9677979 AVALANCHE: Fix one more GCC warning
0c47dc858a AVALANCHE: Fix GCC warning.
9740287721 AVALANCHE: Fix some memory leak problems.
a698a2a2f9 AVALANCHE: Repair another bunch of memory leaks.
ce95f738be AVALANCHE: Do renaming in Enid. (Keep the refactoring for the implementation of it.)
390ecc6a6b AVALANCHE: Do renaming/refactoring in Graphics.
3de1b45b62 AVALANCHE: Repair memory leaks in Dropdown.
2d99f5bfc6 AVALANCHE: Repair some initialization to silence Valgrind warnings.
63d1d289a5 AVALANCHE: Silence more Valgrind warnings.
3b10b079f7 AVALANCHE: Silence Valgrind warnings.
f3377c67e0 AVALANCHE: Fix initialization of kEdnaId
3f822be0ab AVALANCHE: Silence Valgrind warnings.
77607ab6ed Merge branch 'avalanche' of https://github.com/urukgit/scummvm into avalanche
c1bc8eee64 AVALANCHE: Rename/refactor Colors.
b6306976cf AVALANCHE: Start renaming in Gyro.
82484b139a AVALANCHE: More renaming in Gyro.
dd897be038 AVALANCHE: Identify currently dead code in enid2
56ce2398d8 AVALANCHE: Remove 2 high-ascii characters
95a4ccac51 AVALANCHE: Some renaming in lucerna2
200670d327 AVALANCHE: More renaming in gyro2.h.
f1bac0f193 AVALANCHE: (Hopefully) fix some warnings reported by GCC and Clang
e340767395 AVALANCHE: Move some static arrays to function bodies
c537d2f1e5 AVALANCHE: Comment out some dead code
73afd0d8e1 AVALANCHE: Fix some more warnings
7be84e9d52 AVALANCHE: Fix some more Clang warnings
e859e17e3b AVALANCHE: Janitorial - Remove trailing spaces, fix define names
5d2547c8f0 AVALANCHE: Rename some constants in trip6
cb05ea9bc6 AVALANCHE: Finish renaming/refactoring in Gyro.
cfd7d06539 AVALANCHE: Fix bug due to unsaved changes.
2bed64b447 AVALANCHE: Do renaming/refactoring in Lucerna.
467a7b1cce AVALANCHE: Introduce a new class: Clock.
00a963b840 AVALANCHE: Do renaming/refactoring in Parser.
0fa45b0fd2 AVALANCHE: Do renaming in Pingo.
0ad51df7d9 AVALANCHE: Remove 2 variables from Visa2
9097e80153 AVALANCHE: Minor cosmetic fixes in Lucerna.
d96555406e AVALANCHE: Rename trip into animation, some more renaming
9198b166f7 AVALANCHE: Some more renaming in Animation
c087998a8a AVALANCHE: Do renaming in scrolls2.h.
347d970634 AVALANCHE: Fix Clang warnings
f1e699199b AVALANCHE: Some more renaming in Animation
c158abc313 AVALANCHE: Add some missing brackets in Lucerna
fcd32da865 AVALANCHE: Missing file from previous commit
6383c7397d AVALANCHE: Fix one more Clang warning
5c00d5fe34 AVALANCHE: More renaming, use int16 for loops based on kSpriteNumbMax
f59892b45e AVALANCHE: More renaming in animation
d2b554ab41 AVALANCHE: More renaming in Lucerna. Fix accidentally modified strings in Acci.
e5d014d29d Merge branch 'avalanche' of https://github.com/urukgit/scummvm into avalanche
93013b5c76 AVALANCHE: Do renaming in Sequence.
1847a0ddbf AVALANCHE: Start renaming in Timeout.
3f2ed1c803 AVALANCHE: Everything that is missing from the last commit...
f783f2c28a AVALANCHE: Silent some CppCheck warnings, rename some loop variables
8a4a5b3c56 AVALANCHE: Renaming in timeout2.h
db6fcd5e9b Merge branch 'avalanche' of https://github.com/urukgit/scummvm into avalanche
21ff074fda AVALANCHE: Fix uninitialized variable in TimeOut
26099360a9 AVALANCHE: Renaming/refactoring in Visa.
b9c14ccb08 AVALANCHE: Some more renaming in Timeout. Add some Doxygen comments
1b25defe34 AVALANCHE: Missing files from last commit...
f42f29d8f8 AVALANCHE: Rename Timeout into Timer
aafaaef37f AVALANCHE: Some renaming in Animation.
f7de651560 Merge branch 'avalanche' of https://github.com/urukgit/scummvm into avalanche
8f152c0833 AVALANCHE: Renaming/refactoring in Animation.
3cc438171a AVALANCHE: Review variable scope in Visa2, add some doxygen comments
c0243036a2 AVALANCHE: Renaming/refactoring in Animation.
b8d16e894c AVALANCHE: Merge branch 'avalanche' of https://github.com/urukgit/scummvm into avalanche
55d64e1ed1 AVALANCHE: Add some doxygen comments in Lucerna
b7844c3548 AVALANCHE: More renaming/refactoring in Animation.
0f20e7fe37 Merge branch 'avalanche' of https://github.com/urukgit/scummvm into avalanche
2eb4002e36 AVALANCHE: Check function scope in Animation, set a function private
c6183993f2 AVALANCHE: Merge branch 'avalanche' of https://github.com/urukgit/scummvm into avalanche
e6956a994b AVALANCHE: Change type of kSpriteNumbMax to byte
48f2a79ed2 AVALANCHE: Rename _tr to _anim.
3950c871f2 AVALANCHE: Merge branch 'avalanche' of https://github.com/urukgit/scummvm into avalanche
7df4c94aeb AVALANCHE: Some renaming in Timer and Acci2, add some doxygen comments
599d2eeb06 Merge branch 'master' into avalanche
b60767fce8 AVALANCHE: Do not set pixels directly
78417de0d1 AVALANCHE: Start simplifying String use
f33ba71924 AVALANCHE: Fix bug in Visa2
cb66911ed2 AVALANCHE: Rework more strings in Scroll2
e77db05208 AVALANCHE: Rework some more string uses
f7bce3bede AVALANCHE: Rework some more strings
2d2ce624a9 AVALANCHE: Rework some more strings
524edfcbc3 AVALANCHE: Rework more strings (still WIP)
e12e0eb2ff AVALANCHE: Rework some more strings, identify some dead code in avalanche.cpp
1ca62e51b9 AVALANCHE: refactor the way ControlCharacter enum is accessed
bc64dcf276 AVALANCHE: harmonize the use of constants for kMagic, kProc, kObject, kPeople
1cb0c0ec5e AVALANCHE: harmonize the use of constants for kDir, kDirection, kVerbs
94b98ac5f6 AVALANCHE: Various cleanup
49dbac6a2a AVALANCHE: Some polishing in Acci2
da1a427e79 Merge branch 'master' of https://github.com/urukgit/scummvm into avalanche
2f42e9ce46 AVALANCHE: Identify useless variables and function in Closing2
4c12daf55a AVALANCHE: Polish some more strings
11c496c31b AVALANCHE: Complete 2 comments, get rid of Scrolls::kControlToBuffer in one function (for further discussions)
b936611e03 AVALANCHE: Fix various warnings reported by GCC and/or wjp
65f39c14c9 AVALANCHE: Remove some verbosity related to excessive use of Common::String in Acci2
7fdb5c439e AVALANCHE: Fix bug in scrollModeNormal()
8a59c9c1b2 AVALANCHE: undo previous commit, add comments about kControlNegative and a missing stub
f7c34949db AVALANCHE: Error out when critical files are missing
5e59ade554 AVALANCHE: Fix compilation
59532fd567 AVALANCHE: Fix crash.
44ff5eeafb AVALANCHE: Remove unnecessary error() call.
82e76e7b53 AVALANCHE: Remove DNA structure which was essentially a savegame structure unused in ScummVM
b083878dbe AVALANCHE: Remove duplicated direction enum, move direction to animation class
a773f0eb2b AVALANCHE: Remove some dead/useless code
c288b09ca0 AVALANCHE: Simplify the use of string for displayQuestion()
ef219d5c99 AVALANCHE: Silence clang warning.
7d7e9ef7e6 Merge branch 'avalanche' of https://github.com/urukgit/scummvm into avalanche
b710844971 AVALANCHE: Repair regression introduced when removing DNA.
5be2d50e14 AVALANCHE: Reduce verbosity related to animation sprites
d7c2f49595 AVALANCHE: reduce the verbosity of a forgotten animation sprite
fb86c6db0d AVALANCHE: Janitorial: remove extra space after ! in boolean operations
a506b0b3e4 AVALANCHE: Reduce some more verbosity
010d9f854e AVALANCHE: Remove comment from AvalancheEngine::expandDate. It works as intended, no need to repair.
f7ee139501 AVALANCHE: Reduce verbosity some more
ba05f95bb4 AVALANCHE: Get rid of Visa. Move everything from it to Scrolls.
4979cc5f69 AVALANCHE: Rename Gyro::_dogFoodPos. Add comments to clarify it's function.
7ee6e8699f AVALANCHE: Remove the '2' from the source files' names.
a81b499062 AVALANCHE: Get rid of Enid.
cccc126d15 AVALANCHE: Convert index use from Pascal to C in Bearing()
ecbd87353e AVALANCHE: Convert index use from Pascal to C in walkTo()
ddd7a95737 AVALANCHE: Convert index use from Pascal to C in appearPed()
83ee99a381 AVALANCHE: Convert index use from Pascal to C in putGeidaAt()
d70b856da9 AVALANCHE: Rename room number constans. Repair Lucerna::enterRoom().
98cb1cd52b Merge branch 'avalanche' of https://github.com/urukgit/scummvm into avalanche
eaf6ecb7cd AVALANCHE: Fix indexes used by kQuasipeds (Pascal -> C)
ac49e6d09b AVALANCHE: Get rid of a magic value in kQuasipeds initialization
34acc80d73 AVALANCHE: Get rid of several magic values
982e8c6523 AVALANCHE: Remove hardcoded room number from the initialization of kQuadipeds
18a992856e AVALANCHE: Get rid of some more magic values
ca59642380 AVALANCHE: for consistency, replace fv and ff loop variables by i and j. Remove some commented dead code
b3c1a64aa1 AVALANCHE: Fix multiple bugs.
5de5c3900d AVALANCHE: Repair Acci::exampers().
45dc123b84 AVALANCHE: Rework exampers()
c877ddf411 AVALANCHE: Rework Acci:exampers().
d6be9ed7db AVALANCHE: More index conversion in appearPed
23ba373c91 AVALANCHE: More index conversion in inField()
9d259d0a07 AVALANCHE: fix index in loadMouse, misc cleanup
3f19e7a0fb AVALANCHE: Repair exit condition of the main loop.
5f6fc0de6b AVALANCHE: Remove unnecessary error() call.
fe72db6c85 AVALANCHE: Make Graphics::drawPicture more safe. Fix an index-bug regarding Gyro::_objectList.
7f26871be1 AVALANCHE: Remove dead code
68533445a0 AVALANCHE: Index conversion related to drawBackgroundSprite()
6e08f55160 AVALANCHE: Review all for statements
7790b4cc5b AVALANCHE: Janitorial - Clean up misc style glitches
8be433b960 AVALANCHE: Rename DropDown into Menu, add some access functions
9ba81f6097 AVALANCHE: move some engine init instructions to Gyro
edc1477741 AVALANCHE: Remove index hack used for mouse pointer (Pascal to C conversion)
23b225ca0d AVALANCHE: Add sound class, blip(), playNote() and click()
d26a06a970 AVALANCHE: Remove useless includes
2238db712c AVALANCHE: Remove useless function, add _soundFl
0356040910 AVALANCHE: Remove some STUBs, add calls to stopSound()
21a9de5df2 AVALANCHE: Rename Celer to Background.
31637f1983 AVALANCHE: Cosmetic modifications.
16f5f32376 AVALANCHE: Repair Scrolls::musicalScroll() and Scrolls::store().
5ccff749a5 AVALANCHE: Add minigame: playing the harp.
207335d0f2 AVALANCHE: Repair minigame: Harp.
4b84999a30 AVALANCHE: Another addition regarding the harp game.
95b2e27243 AVALANCHE: A little revision of the harp minigame.
f78de9b382 AVALANCHE: Add check on shouldQuit() in Harp mini-game
bb58813eee AVALANCHE: Remove code used for Demo
f88ca9dc81 AVALANCHE: Remove misc dead or useless code: useless arguments, stubbed ini file reading, etc
b11bf988f4 AVALANCHE: Remove roomnums.h
a7bb292cba AVALANCHE: Remove color.h
6943fcfb03 AVALANCHE: Janitorial - leftover Bristish -> American English
2b63646740 AVALANCHE: Remove some useless/dead code
c7f888de7c AVALANCHE: Remove remaining off and on calls in commented code
39b4d8b71c AVALANCHE: Some cleanup and comment modifications.
c34bc12af2 AVALANCHE: Remove useless code.
8d5ce97ca4 AVALANCHE: Mostly cosmetic modifications in avalot.cpp.
3650f5d6a7 AVALANCHE: More clean up, removement of dead code.
2df1aa6287 AVALANCHE: More clean up, removement of dead code, some rearranging.
2dcdca5711 AVALANCHE: Silence GCC warnings and repair Scrolls::scrollModeNormal().
3b57efaf99 AVALANCHE: Revise Graphics::drawPicture().
897a0d0a61 AVALANCHE: Silence more GCC warnings.
e0b4280a94 AVALANCHE: Change byte to unsigned int in for loops.
ba103fd5dd AVALANCHE: Some polishing in Animation
d82975fc38 AVALANCHE: Add an assert in flipRoom(), fix an issue in post-STU functions
628c5bb515 AVALANCHE: Remove comment. (Answer: It is.)
350d622324 AVALANCHE: rename scrolls to dialogs
a80af5326e AVALANCHE: Merge Acci and Parser
183f10e4a0 AVALANCHE: Simplify Sequence::firstShow().
ed7e71d226 AVALANCHE: Some revision in Sequence.
89471e76d1 AVALANCHE: More revision in Sequence.
4b4f07a7f6 AVALANCHE: Merge Gyro, Lucerna and Avalot
45ad88b73b AVALANCHE: uncomment some sound code, code cleanup
66fe0b2ebc AVALANCHE: Remove useless comments.
79a961c89d AVALANCHE: Move some variables, fix savegame counter increment when saving
9450faf150 AVALANCHE: Implement Clock::chime().
2ffcd492be AVALANCHE: Implement Avalot::zoomOut().
03f6a56e20 AVALANCHE: Remove comment, replace character.
302e74cac1 AVALANCHE: Fix GCC warning
863709ca57 AVALANCHE: Move some variables
061c06c128 AVALANCHE: (hopefully) fix a GCC warning
61eb94e5c8 AVALANCHE: Use struct for consistency in Avalot
02caaa5735 AVALANCHE: Optimize Animation::updateSpeed().
cbe9c151aa AVALANCHE: Refactor some variables. This breaks savegame compatibility
f4e37939c7 AVALANCHE: Move 2 enums out of Avalot classes, set private some parser variables
0b7de38dc1 AVALANCHE: Use Room enum instead of byte in misc place
3ae30372bc AVALANCHE: Repair bug regarding uninitialized direction in Avalot. Some renaming in Animation.
b3f6ce975f AVALANCHE: Use People enum as a type for several variables, modify functions accordingly
b4a81fc2ac AVALANCHE: Use enum for verbs
929dcd42f5 AVALANCHE: Reduce verbosity in Background, remove a useless variable
5637987bd7 AVALANCHE: Simplify loadMouse()
1b1655d0c8 AVALANCHE: use nullptr for empty pointers
890eed446c AVALANCHE: rename a parameter, remove a useless (unitialized) variable, disable some menu entries
6cd9bd141c AVALANCHE: Move some variables to Animation, break savegame compatibility
90c6e6a689 AVALANCHE: Janitorial - Use ++ and -- when possible
8efaa45425 AVALANCHE: Partially implement (there are still missing features: icon, keyboard control) the last missing type of scrol
df3fe7b0ec AVALANCHE: Objectify Sequence. This commit breaks savegames.
03cae64498 AVALANCHE: Fix bug in Sequence.
dc3471bc09 AVALANCHE: Rename Sequence functions
75cbbda822 AVALANCHE: More function deduplication, remove a magic value
e166f6fc44 AVALANCHE: Move a couple of variables to Sequence, more private variables
08883a807f AVALANCHE: Merge Avalot and AvalancheEngine
64f799773e AVALANCHE: Misc minor polishing
d7230fe856 AVALANCHE: Remove a couple of unused variables
649fa6e5f0 AVALANCHE: Use the Color enum, remove some magic values, identify some dead variables
75258758ef AVALANCHE: Move Zoom to Graphics
00e5a4830b AVALANCHE: Move background loading to Graphics
7a8d252ddb AVALANCHE: Move Digits and Directions to Graphics
7d66cdf417 AVALANCHE: Move mouse cursor display functions to Graphics
726fa64bbf AVALANCHE: Use an enum for the Mouse cursor identifier
fdbcb5f785 AVALANCHE: Move some more functions to Graphics
0edb0e0434 AVALANCHE: Set the Magic surface as private, some associated rework
6a7326ec26 AVALANCHE: More rework on Graphic code
ef8b661c3d AVALANCHE: Partially move drawScroll to Graphics
1af03774cc AVALANCHE: Add some more graphic functions
ffbe4646c1 AVALANCHE: move some more functions to Graphics
063bc8d8c9 AVALANCHE: Scrolls is now set to private
de12f46db5 AVALANCHE: Rename Graphics to avoid confusion, add drawBackgroundSprite(), set _background private
6b41b38049 AVALANCHE: Move code from Menu to Graphics
1c9ac623fa AVALANCHE: Rework calcHand, move another function to Graphics
4464409d73 AVALANCHE: Set drawArc private
bea6980529 AVALANCHE: Move debug display of magic lines to debugger
24bca9d927 AVALANCHE: Silent warnings reported by wjp
55a3af61c9 AVALANCHE: Fix more gcc warnings reported by wjp
ec41600795 AVALANCHE: Rename getFlag(), change _roomTime to uint32
c2da192e7f AVALANCHE: Remove bytefields, which are set but never used
53f6c2f693 AVALANCHE: Implement keyboard control in Dialogs::scrollModeDialogue().
b160a156c1 AVALANCHE: Little refactoring in background
98b5fe757f AVALANCHE: Remove various dead variables and associated code
9b8566ae18 AVALANCHE: Move several variables to make them private
6c11712373 AVALANCHE: More refactoring
15acaa1a77 AVALANCHE: Move _scroll and _scrollNum to Dialogs. Remove a useless variable
bc4a8f8671 AVALANCHE: _scrollNum is now a C index
a06bbb4fe7 AVALANCHE: Rename _scrollNum to improve readibility
63f43aa959 AVALANCHE: Move some more variables out of Avalanche
bfb28c7a39 AVALANCHE: Move drawSign() from Dialogs to Graphics. Implement it.
8408fa46c7 AVALANCHE: Implement Dialogs::displayQuestion(), repair setSeed() and getRandomNumber() calls.
bb8157772c AVALANCHE: Rename getIcon() to drawIcon(), move it to Graphics from Dialogs, implement it. Repair Dialogs::scrollModeDia
f9a5eb4629 AVALANCHE: Set private some more variables
ce50d86987 AVALANCHE: Remove useless variable, move variables to dialogs
ae45671973 AVALANCHE: More work on variables
199ba0ddf4 AVALANCHE: Remove verbosity related to the use of Magics enum
c9432b8467 AVALANCHE: more work on variables
5a4bd0d837 AVALANCHE: some more work on variables
546e911af9 AVALANCHE: Use Doxygen comments in Animation
4b93e25435 AVALANCHE: Repair shadowed variable.
8652224e58 AVALANCHE: Move ControlCharacter enum to enums
9093b2c258 AVALANCHE: Use Doxygen comments in Dialogs, set private some members
efe6236e7b AVALANCHE: Make _surface private
26626125d9 AVALANCHE: Use Doxygen comments in Graphics
2d8fa4fdad AVALANCHE: Set some variables private in Menu
a6bdec5ca5 AVALANCHE: Don't refresh screen after every event in scroll mode
97f26f6794 AVALANCHE: Use memcpy in refreshScreen
9a4d1683c9 AVALANCHE: Remove code commented in the original but not in the engine.
49960992ca AVALANCHE: Fix naming convention, reduce the scope of a couple of variables
9b9462bcee AVALANCHE: Check | occurrence as pointed by LordHoto
19cc272763 AVALANCHE: Remove s_engine
650613f5ca AVALANCHE: Use MKTAG for signature. This breaks prior savegames.
493c02ae22 AVALANCHE: Use ConfMan short name
89559e07a3 AVALANCHE: Remove file variable from AvalancheEngine
300859aa43 AVALANCHE: Fix static array names
1cbe175a74 AVALANCHE: Fix naming conventions in getItem()
221faca286 AVALANCHE: Fix ifndef check in header files
0ec40a5f80 AVALANCHE: Add static to 2 array definitions in closing
72d1f58733 AVALANCHE: Fix savegame naming. This breaks previous savegames
c53917ec64 AVALANCHE: Add indentation on REGISTER_PLUGIN_* lines
b0a498c1e5 Merge branch 'avalanche' of https://github.com/urukgit/scummvm into avalanche
304ab6da15 AVALANCHE: Start cleaning includes - remove useless include in header files
a357dc4d0c AVALANCHE: Cleaning includes - remove useless includes in cpp files
eeabd8a0dd AVALANCHE: Answer a couple of comments made by LordHoto
03ca6ef76f AVALANCHE: Fix bug introduced in badc727883c14d13702fc61a0a6912a3d61ce9a4
d3cd7e237a AVALANCHE: Change disposeAfterUse value in Sound handler as suggested by LordHoto
b6d6c17727 AVALANCHE: Replace static strings by static char*
1844dcf05c AVALANCHE: Remove a missed useless include
bf41366fd7 AVALANCHE: Fix error not reported by MSVC
0f42dd4511 AVALANCHE: Use floats instead of double. Use M_PI where it is possible.
61983d027a AVALANCHE: Add a comment to Dialogs::stripTrailingSpaces().
fed8546444 AVALANCHE: Update credit files.
14dee780e0 AVALANCHE: Get rid of FP in Parser::totalTime().
ac231eb838 AVALANCHE: Rework totalTime()
6216430428 AVALANCHE: Rework bearing()
b7f7644cc6 AVALANCHE: Fix potential integer overflow
c99061e7c5 AVALANCHE: Fix time output
a246dbad26 AVALANCHE: Fix parser bug when pressing F5
a30cc19ca8 AVALANCHE: Fix two other broken verb usages
8430288fef AVALANCHE: Hook some more function keys
31b01f0d11 AVALANCHE: Add save/load code
77c10447c3 AVALANCHE: Repair credits.h
7b11be0a92 AVALANCHE: Fix savegame patterns
c36adb83e2 AVALANCHE: Fix savegames list
10b4495b51 AVALANCHE: Hook some more function keys
eebbdfbfb3 AVALANCHE: Add code for Shift-F10
0bfe150dca AVALANCHE: Fix coding conventions in Graphics
cf36706b98 AVALANCHE: Remove empty case in verb handling, clarify output when the opcode is unhandled
b0255c9406 AVALANCHE: Implement fadeIn and fadeOut (dusk and dawn)
72e55fab70 AVALANCHE: Implement Bleep(), improve one comment
f76284a95e AVALANCHE: Polish 'File' menu
d202d898da AVALANCHE: Remove code duplicate in runMenuWith()
aba6b02b5b AVALANCHE: Fix two blocking loops not checking shouldQuit()
ccebfc78fd AVALANCHE: Remove useless check and move some comments in Sequence
46c5bfa508 AVALANCHE: Move some variables around
0deb94c1b8 AVALANCHE: Move some parser functions to Dialogs. Improve some comments
1a40c8c5d2 AVALANCHE: Move/Improve some comments in parser
91e70ce2a8 AVALANCHE: Modifiy AnimationType initialization, add private Animation pointer
609846ab8a AVALANCHE: Reduce verbosity in Animation and AnimationType
cb54243763 AVALANCHE: Remove GraphicManager::fleshColors(), move everything from it to GraphicManager::init().
2c09933641 AVALANCHE: Remove StatType, reduce verbosity some more
652331a3a9 AVALANCHE: Remove some extra parenthesis in Animation
597690ae9d AVALANCHE: Fix memory corruption in background (drawpicture) blitting
6437179de3 AVALANCHE: Get rid of SpriteInfo
1f943c0362 AVALANCHE: Fix crash when entering inn, add safeguards
f24267874e AVALANCHE: Fix iteration in Dialogs::talkTo().
964fd22e4a AVALANCHE: Fix crash on "With" after loading from Launcher.
96ae25eca9 AVALANCHE: Remove a couple of useless variables from Animation. This breaks savegames.
b82a5e6a8b AVALANCHE: Rework AvalancheEngine::bearing(), repair Background::update().
ecb1bf69b9 AVALANCHE: Repair parameters for calling zoomOut().
06f94c1085 AVALANCHE: Remove 3 useless variables in Animation
5f180a06ba AVALANCHE: Rework animation init/remove some more
5f0361c03a AVALANCHE: Move Bubble pos to Dialogs, make them private
1c3fcf22a1 AVALANCHE: Some more refactoring
38b842ba71 AVALANCHE: callDialogDriver, displayText, unSkrimble, doTheBubble string cleanup
748ba2475a AVALANCHE: Fix broken xml entity in credits
1771162242 Merge branch 'avalanche'


Commit: a2adda516bdf790651283201a666f253a8bfcc49
    https://github.com/scummvm/scummvm/commit/a2adda516bdf790651283201a666f253a8bfcc49
Author: uruk (koppirnyo at gmail.com)
Date: 2013-06-17T01:38:38-07:00

Commit Message:
AVALANCHE: Initial PtoC output.

Changed paths:
  A engines/avalanche/1stoff.cpp
  A engines/avalanche/access.cpp
  A engines/avalanche/access.h
  A engines/avalanche/acci.cpp
  A engines/avalanche/acci.h
  A engines/avalanche/also.cpp
  A engines/avalanche/andexor.cpp
  A engines/avalanche/andexor2.cpp
  A engines/avalanche/andextst.cpp
  A engines/avalanche/arch.cpp
  A engines/avalanche/arch.h
  A engines/avalanche/avalot9.cpp
  A engines/avalanche/avbkgrnd.cpp
  A engines/avalanche/avmenu.cpp
  A engines/avalanche/avvyans.cpp
  A engines/avalanche/avvyans2.cpp
  A engines/avalanche/avvymonk.cpp
  A engines/avalanche/bakchunk.cpp
  A engines/avalanche/basher.cpp
  A engines/avalanche/basher.h
  A engines/avalanche/bootstrp.cpp
  A engines/avalanche/cadburys.cpp
  A engines/avalanche/cadburys.h
  A engines/avalanche/celer.cpp
  A engines/avalanche/celer.h
  A engines/avalanche/ch_egats.cpp
  A engines/avalanche/charmap.cpp
  A engines/avalanche/chunker.cpp
  A engines/avalanche/chunkxf1.cpp
  A engines/avalanche/chunkxf2.cpp
  A engines/avalanche/chunkxf3.cpp
  A engines/avalanche/chunkxf4.cpp
  A engines/avalanche/chunkxf5.cpp
  A engines/avalanche/chunkxf6.cpp
  A engines/avalanche/chunkxf7.cpp
  A engines/avalanche/chunkxf8.cpp
  A engines/avalanche/chunkxf9.cpp
  A engines/avalanche/chunkxfa.cpp
  A engines/avalanche/chunkxfb.cpp
  A engines/avalanche/chunkxfc.cpp
  A engines/avalanche/chunkxfd.cpp
  A engines/avalanche/chunkxfe.cpp
  A engines/avalanche/chunkxff.cpp
  A engines/avalanche/chunkxfg.cpp
  A engines/avalanche/chunkxfh.cpp
  A engines/avalanche/chunkxfi.cpp
  A engines/avalanche/chunkxfj.cpp
  A engines/avalanche/chunkxfk.cpp
  A engines/avalanche/chunkxfl.cpp
  A engines/avalanche/clock.cpp
  A engines/avalanche/closing.cpp
  A engines/avalanche/closing.h
  A engines/avalanche/convert.cpp
  A engines/avalanche/convmous.cpp
  A engines/avalanche/credits.cpp
  A engines/avalanche/displtxt.cpp
  A engines/avalanche/dropdown.cpp
  A engines/avalanche/dropdown.h
  A engines/avalanche/dwidth.cpp
  A engines/avalanche/edhead.cpp
  A engines/avalanche/edna.cpp
  A engines/avalanche/enhanced.cpp
  A engines/avalanche/enhanced.h
  A engines/avalanche/enid.cpp
  A engines/avalanche/enid.h
  A engines/avalanche/filer.cpp
  A engines/avalanche/fileunit.cpp
  A engines/avalanche/fileunit.h
  A engines/avalanche/filing.cpp
  A engines/avalanche/folktemp.cpp
  A engines/avalanche/fontslid.cpp
  A engines/avalanche/frere.cpp
  A engines/avalanche/g-room.cpp
  A engines/avalanche/golden.cpp
  A engines/avalanche/gyro.cpp
  A engines/avalanche/gyro.h
  A engines/avalanche/help.cpp
  A engines/avalanche/help2.cpp
  A engines/avalanche/helpbak.cpp
  A engines/avalanche/helpbak.h
  A engines/avalanche/helper.cpp
  A engines/avalanche/helper.h
  A engines/avalanche/hibits.cpp
  A engines/avalanche/highs.cpp
  A engines/avalanche/highs.h
  A engines/avalanche/hiz.cpp
  A engines/avalanche/incline.cpp
  A engines/avalanche/incline.h
  A engines/avalanche/initxf.cpp
  A engines/avalanche/inputtes.cpp
  A engines/avalanche/intro.cpp
  A engines/avalanche/ints.cpp
  A engines/avalanche/joysetup.cpp
  A engines/avalanche/joystick.cpp
  A engines/avalanche/joystick.h
  A engines/avalanche/loading.cpp
  A engines/avalanche/logger.cpp
  A engines/avalanche/logger.h
  A engines/avalanche/lucerna.cpp
  A engines/avalanche/lucerna.h
  A engines/avalanche/magic2.cpp
  A engines/avalanche/magidraw.cpp
  A engines/avalanche/magishuf.cpp
  A engines/avalanche/make!.cpp
  A engines/avalanche/makeregi.cpp
  A engines/avalanche/makesez.cpp
  A engines/avalanche/makevmou.cpp
  A engines/avalanche/menuxf.cpp
  A engines/avalanche/minstran.cpp
  A engines/avalanche/newsprit.cpp
  A engines/avalanche/nim.cpp
  A engines/avalanche/nimdraw.cpp
  A engines/avalanche/nimunit.cpp
  A engines/avalanche/nimunit.h
  A engines/avalanche/oldfiler.cpp
  A engines/avalanche/oldhighs.cpp
  A engines/avalanche/oldincln.cpp
  A engines/avalanche/oldincln.h
  A engines/avalanche/oldtrip.cpp
  A engines/avalanche/oldtrip.h
  A engines/avalanche/omtest.cpp
  A engines/avalanche/oopmenu.cpp
  A engines/avalanche/oopmenu.h
  A engines/avalanche/overlap.cpp
  A engines/avalanche/overscro.cpp
  A engines/avalanche/particle.cpp
  A engines/avalanche/pictemp.cpp
  A engines/avalanche/pictemp2.cpp
  A engines/avalanche/pingo.cpp
  A engines/avalanche/pingo.h
  A engines/avalanche/plottest.cpp
  A engines/avalanche/preview1.cpp
  A engines/avalanche/qintro.cpp
  A engines/avalanche/qstars.cpp
  A engines/avalanche/rawupd.cpp
  A engines/avalanche/readsez.cpp
  A engines/avalanche/reginam.cpp
  A engines/avalanche/sackb1.cpp
  A engines/avalanche/sackb1.h
  A engines/avalanche/sackb3.cpp
  A engines/avalanche/sackblas.cpp
  A engines/avalanche/saving.cpp
  A engines/avalanche/scr_1.cpp
  A engines/avalanche/scr_2.cpp
  A engines/avalanche/scr_3.cpp
  A engines/avalanche/scr_4.cpp
  A engines/avalanche/scr_5.cpp
  A engines/avalanche/scr_9.cpp
  A engines/avalanche/scrolls.cpp
  A engines/avalanche/scrolls.h
  A engines/avalanche/sequence.cpp
  A engines/avalanche/sequence.h
  A engines/avalanche/setup.cpp
  A engines/avalanche/seu.cpp
  A engines/avalanche/seu_avvy.cpp
  A engines/avalanche/sez.cpp
  A engines/avalanche/sezedit.cpp
  A engines/avalanche/sezunit.cpp
  A engines/avalanche/sezunit.h
  A engines/avalanche/sezxfr.cpp
  A engines/avalanche/shell1.cpp
  A engines/avalanche/shell2.cpp
  A engines/avalanche/slope.cpp
  A engines/avalanche/spread.cpp
  A engines/avalanche/spread2.cpp
  A engines/avalanche/squish.cpp
  A engines/avalanche/ss_blank.cpp
  A engines/avalanche/ss_clock.cpp
  A engines/avalanche/stars.cpp
  A engines/avalanche/status.cpp
  A engines/avalanche/sticks.cpp
  A engines/avalanche/sticks.h
  A engines/avalanche/sunrise.cpp
  A engines/avalanche/tempo.cpp
  A engines/avalanche/test.cpp
  A engines/avalanche/test2.cpp
  A engines/avalanche/testblit.cpp
  A engines/avalanche/testcard.cpp
  A engines/avalanche/testenh.cpp
  A engines/avalanche/timeout.cpp
  A engines/avalanche/timeout.h
  A engines/avalanche/travel.cpp
  A engines/avalanche/trip.cpp
  A engines/avalanche/trip.h
  A engines/avalanche/trip3.cpp
  A engines/avalanche/trip3.h
  A engines/avalanche/trip42.cpp
  A engines/avalanche/trip42.h
  A engines/avalanche/trip5.cpp
  A engines/avalanche/trip5.h
  A engines/avalanche/trip5tst.cpp
  A engines/avalanche/trip5xf.cpp
  A engines/avalanche/tripoop.cpp
  A engines/avalanche/ttmenuxf.cpp
  A engines/avalanche/unsquish.cpp
  A engines/avalanche/viewdocs.cpp
  A engines/avalanche/visa.cpp
  A engines/avalanche/visa.h
  A engines/avalanche/visatest.cpp
  A engines/avalanche/waver.cpp
  A engines/avalanche/xf_gover.cpp
  A engines/avalanche/xf_help.cpp
  A engines/avalanche/xf_visa.cpp
  A engines/avalanche/xfbutton.cpp
  A engines/avalanche/xfghost.cpp
  A engines/avalanche/zapdraw.cpp



diff --git a/engines/avalanche/1stoff.cpp b/engines/avalanche/1stoff.cpp
new file mode 100644
index 0000000..99198b4
--- /dev/null
+++ b/engines/avalanche/1stoff.cpp
@@ -0,0 +1,57 @@
+#include "ptoc.h"
+
+
+/*#include "Crt.h"*/
+/*#include "Dos.h"*/
+
+
+matrix<1,7,1,3,byte> cols;
+byte fv;
+
+void adjust()
+{
+ registers r;
+;
+ {;
+  ax=0x1012;
+  bx=1;
+  cx=2;
+  es=seg(cols);
+  dx=ofs(cols);
+
+ }
+
+ intr(0x10,r);
+}
+
+int main(int argc, const char* argv[])
+{pio_initialize(argc, argv);
+;
+ textattr=0;
+ clrscr;
+
+ fillchar(cols,sizeof(cols),'\0');
+ adjust();
+
+ gotoxy(29,10); textattr=1; output << "Thorsoft of Letchworth";
+ gotoxy(36,12); textattr=2; output << "presents";
+
+ for( fv=1; fv <= 77; fv ++)
+ {;
+  delay(77);
+  if (fv<64)  fillchar(cols[1],3,chr(fv));
+  if (fv>14)  fillchar(cols[2],3,chr(fv-14));
+  adjust();
+ }
+
+ delay(100);
+
+ for( fv=63; fv >= 1; fv --)
+ {;
+  fillchar(cols,sizeof(cols),chr(fv));
+  delay(37);
+  adjust();
+ }
+
+return EXIT_SUCCESS;
+}
\ No newline at end of file
diff --git a/engines/avalanche/access.cpp b/engines/avalanche/access.cpp
new file mode 100644
index 0000000..37c9649
--- /dev/null
+++ b/engines/avalanche/access.cpp
@@ -0,0 +1,170 @@
+#include "ptoc.h"
+
+/*
+  ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
+  Ûß  ÛÛ  Û  Û Ü Û  Ûßß ßÜ   Û      Û  Û  Û  Û  Û ÛÜÛ  ßßßÜ  Û  ÛÛ  Ûßß Û
+  ß   ß ß  ßß   ßß  ßßß   ß  ß      ß  ß  ß ßßß ß  ßß  ßßß   ß  ß ß ßßß ßßß
+
+                 ACCESS           The temporary Sez handler. */
+
+#define __access_implementation__
+
+
+#include "access.h"
+
+
+/*#include "Gyro.h"*/
+/*#include "Scrolls.h"*/
+/*#include "Acci.h"*/
+/*#include "Trip5.h"*/
+/*#include "Lucerna.h"*/
+
+
+boolean int_say_went_ok;
+
+void int_say(string filename, boolean bubble)
+ /* Internal use ONLY! */
+{
+    untyped_file f;
+;
+ /*$I-*/
+ assign(f,filename);
+ reset(f,1);
+ if (ioresult!=0) 
+ {;
+  int_say_went_ok=false;
+  return;
+ }
+ bufsize=filesize(f);
+ blockread(f,buffer,bufsize);
+ if (bubble) 
+ {;
+  bufsize += 1;
+  buffer[bufsize]='\2';
+ }
+ close(f);
+ /*$I+*/
+
+ calldrivers;
+
+ int_say_went_ok=true;
+}
+
+void dixi(char p, byte n)
+{; exit(153);
+ int_say(string('s')+p+strf(n)+".raw",false);
+}
+
+void talkto(byte whom)
+{
+ byte fv;
+ boolean no_matches;
+; exit(153);
+ if (person==pardon) 
+ {;
+  person=chr(subjnumber);
+  subjnumber=0;
+ }
+
+ switch (chr(whom)) {
+  case pspludwick:
+
+    if ((dna.lustie_is_asleep) & (~ dna.obj[potion])) 
+    {;
+     dixi('q',68);
+     dna.obj[potion]=true;
+     objectlist; points(3); return;
+    } else
+    {;
+     if (dna.talked_to_crapulus) 
+      switch (dna.given2spludwick) { /* Spludwick - what does he need? */
+         /* 0 - let it through to use normal routine. */
+         case RANGE_2(1,2): {;
+                display(string("Can you get me ")+
+                 get_better(spludwick_order[dna.given2spludwick])+", please?"+
+                  "\232\2");
+                return;
+               }
+               break;
+         case 3: {;
+             dixi('q',30); /* need any help with the game? */
+             return;
+            }
+            break;
+       }
+     else dixi('q',42); /* Haven't talked to Crapulus. Go and talk to him. */
+    }
+    break;
+
+  case pibythneth: if (dna.givenbadgetoiby) 
+              {;
+               dixi('q',33); /* Thanks a lot! */
+               return; /* And leave the proc. */
+              }
+              break; /* Or... just continue, 'cos he hasn't got it. */
+  case pdogfood: if (dna.wonnim) 
+            {;     /* We've won the game. */
+             dixi('q',6); /* "I'm Not Playing!" */
+             return; /* Zap back. */
+            }
+            break;
+  case payles: if (~ dna.ayles_is_awake) 
+          {;
+           dixi('q',43); /* He's fast asleep! */
+           return;
+          }
+          break;
+  case pgeida: if (dna.geida_given_potion) 
+           dna.geida_follows=true; else
+          {;
+           dixi('u',17);
+           return;
+          }
+          break;
+ }
+
+ if (whom>149)  whom -= 149;
+
+ no_matches=true;
+ for( fv=1; fv <= numtr; fv ++)
+  if (tr[fv].a.accinum==whom) 
+  {;
+   display(string('\23')+chr(fv+48)+'\4');
+   no_matches=false;
+   flush();
+  }
+
+ if (no_matches)  display("\23\23\4");
+
+ if (subjnumber==0)   /* For the moment... later we'll parse "say". */
+  int_say(string("ss")+strf(whom)+".raw",true);
+ else
+ {;
+  int_say(string("ss")+strf(whom)+'-'+strf(subjnumber)+".raw",true);
+  if (! int_say_went_ok)      /* File not found! */
+   dixi('n',whom);
+ }
+
+ switch (chr(whom+149)) {
+  case pcrapulus:
+     {;     /* Crapulus: get the badge - first time only */
+      dna.obj[badge]=true;
+      objectlist;
+      dixi('q',1); /* Circular from Cardiff. */
+      dna.talked_to_crapulus=true;
+
+      whereis[pcrapulus]=177;  /* Crapulus walks off. */
+
+      tr[2].vanishifstill=true;
+      tr[2].walkto(4); /* Walks away. */
+
+      points(2);
+     }
+     break;
+
+  case payles: dixi('q',44); break; /* Can you get me a pen? */
+
+ }
+}
+
+
diff --git a/engines/avalanche/access.h b/engines/avalanche/access.h
new file mode 100644
index 0000000..825deeb
--- /dev/null
+++ b/engines/avalanche/access.h
@@ -0,0 +1,9 @@
+#ifndef __access_h__
+#define __access_h__
+
+
+void dixi(char p, byte n);
+
+void talkto(byte whom);
+
+#endif
diff --git a/engines/avalanche/acci.cpp b/engines/avalanche/acci.cpp
new file mode 100644
index 0000000..86fac18
--- /dev/null
+++ b/engines/avalanche/acci.cpp
@@ -0,0 +1,1671 @@
+#include "ptoc.h"
+
+/*  $D-*/
+/*
+  ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
+  Ûß  ÛÛ  Û  Û Ü Û  Ûßß ßÜ   Û      Û  Û  Û  Û  Û ÛÜÛ  ßßßÜ  Û  ÛÛ  Ûßß Û
+  ß   ß ß  ßß   ßß  ßßß   ß  ß      ß  ß  ß ßßß ß  ßß  ßßß   ß  ß ß ßßß ßßß
+
+                 ACCIDENCE II     The parser. */
+#define __acci_implementation__
+
+
+/*$V-*/
+
+#include "acci.h"
+
+/*#include "Gyro.h"*/
+/*#include "Lucerna.h"*/
+/*#include "Scrolls.h"*/
+/*#include "Pingo.h"*/
+/*#include "Trip5.h"*/
+/*#include "Visa.h"*/
+/*#include "Enid.h"*/
+/*#include "NimUnit.h"*/
+/*#include "Timeout.h"*/
+/*#include "Celer.h"*/
+/*#include "Highs.h"*/
+/*#include "Helper.h"*/
+/*#include "Sequence.h"*/
+
+
+byte fv;
+
+string wordnum(string x);
+static char whatsit; 
+static word fv; 
+static boolean gotcha;
+
+static void checkword(string& x) /* Checks word "fv". */
+{
+ {
+  vocab& with = words[fv]; 
+
+  if ((with.w==x) || ((copy(with.w,1,length(x))==x) && ! gotcha))
+        whatsit=chr(with.n);
+  if (with.w==x)  gotcha=true;
+ }
+}
+
+string wordnum(string x)
+
+{
+ string wordnum_result;
+ if (x=="")  { wordnum_result=""; return wordnum_result; }
+ whatsit=pardon; gotcha=false;
+ for( fv=nowords; fv >= 1; fv --) checkword(x);
+ wordnum_result=whatsit;
+ return wordnum_result;
+}
+
+void replace(string old1,string new1)
+{
+    byte q;
+
+ q=pos(old1,thats);
+ while (q!=0) 
+ {
+  thats=copy(thats,1,q-1)+new1+copy(thats,q+length(old1),255);
+  q=pos(old1,thats);
+ }
+}
+
+/*procedure ninetydump;
+var f:file; y:integer; bit:byte; a:byte absolute $A000:800;
+begin
+ off;
+ assign(f,'avvydump.avd');
+ rewrite(f,1);
+ blockwrite(f,dna,177); { just anything }
+ for bit:=0 to 3 do
+ begin
+  port[$3c4]:=2; port[$3ce]:=4; port[$3C5]:=1 shl bit; port[$3CF]:=bit;
+  blockwrite(f,a,12080);
+ end;
+ close(f); on;
+ display('Dumped.');
+end;*/
+
+string rank()
+{
+    byte fv;
+
+ string rank_result;
+ for( fv=1; fv <= 8; fv ++)
+  if ((dna.score>=ranks[fv].score)
+   && (dna.score<ranks[fv+1].score)) 
+   {
+    rank_result=ranks[fv].title;
+    return rank_result;
+   }
+ return rank_result;
+}
+
+string totaltime()
+{
+      const real ticks_in_1_sec = (real)(65535)/3600;
+ word h,m,s; varying_string<70> a;
+
+  /* There are 65535 clock ticks in a second,
+    1092.25 in a minute, and
+    65535 in an hour. */
+ string totaltime_result;
+ h=trunc(dna.total_time/ticks_in_1_sec);  /* No. of seconds. */
+ m=h % 3600; h=h / 3600;
+ s=m % 60;   m=m / 60;
+
+ a="You've been playing for ";
+
+ if (h>0)  a=a+strf(h)+" hours, ";
+ if ((m>0) || (h!=0))  a=a+strf(m)+" minutes and ";
+ a=a+strf(s)+" seconds.";
+
+ totaltime_result=a;
+ return totaltime_result;
+}
+
+void cheatparse(string codes);
+static word num; 
+static integer e;
+
+static void number(string& codes)
+{
+ val(codes,num,e);
+}
+
+void cheatparse(string codes)
+{
+    char cmd;integer se,sx,sy;
+
+ if (~ cheat) 
+ {     /* put them off the scent! */
+  display("Have you gone dotty\??!");
+  return;
+ }
+ cmd=upcase(codes[2]); Delete(codes,1,2);  /* strip header */
+ display("\6Ninety: \22\4");
+ switch (cmd) {
+  case 'R': {
+        number(codes); if (e!=0)  return;
+        display(string("room swap to ")+codes+'.');
+        fliproom(num,1);
+       }
+       break;
+  case 'Z': { zonk; display("Zonk OK!"); } break;
+  case 'W': { wobble; display("Ow my head!"); } break;
+  case 'A': {
+        tr[1].done;
+        tr[1].init(1,true);
+        dna.user_moves_avvy=true;
+        alive=true;
+        display("Reincat.");
+       }
+       break;
+  case 'B': {
+        sx=tr[1].x;
+        sy=tr[1].y;
+        se=tr[1].face;
+        delavvy;
+        number(codes);
+        {
+         void& with = tr[1]; 
+
+         done;
+         init(num,true);
+         display(string("Become ")+codes+':'+"\r\r"+a.name+'\15'+a.comment);
+         appear(sx,sy,se);
+        }
+       }
+       break;
+/*  'D': ninetydump;*/
+  case 'G': play_nim; break;
+  case '±': display("\232\25"); break;
+  default: display("unknown code!");
+ }
+}
+
+void punctustrip(string& x)          /* Strips punctuation from x. */
+{
+      const varying_string<32> punct = "~`!@#$%^&*()_+-={}[]:\"|;'\\,./<>?";
+    byte fv,p;
+
+ for( fv=1; fv <= 32; fv ++)
+  do {
+   p=pos(punct[fv-1],x);
+   if (p==0)  flush(); /* <<< The first time I've ever used it! */
+   Delete(x,p,1);
+  } while (!false);
+}
+
+boolean do_pronouns();
+static boolean ambiguous;
+
+static void displaywhat(char ch, boolean animate) /* << it's an adjective! */
+{
+    byte ff; string z;
+
+ if (ch==pardon) 
+ {
+  ambiguous=true;
+  if (animate)  display("Whom?"); else display("What?");
+ } else
+ {
+  if (animate)  display(string("{ ")+getname(ch)+" }");
+   else
+   {
+     z=get_better(ch);
+     if (z!="")  display(string("{ ")+z+" }");
+   }
+ }
+}
+
+boolean do_pronouns()
+{
+    byte fv;
+
+ boolean do_pronouns_result;
+ ambiguous=false;
+ for( fv=1; fv <= length(thats); fv ++)
+  switch (thats[fv]) {
+   case '\310': {
+          displaywhat(him,true);
+          thats[fv]=him;
+         }
+         break;
+   case '\311': {
+          displaywhat(her,true);
+          thats[fv]=her;
+         }
+         break;
+   case '\312': {
+          displaywhat(it,false);
+          thats[fv]=it;
+         }
+         break;
+  }
+ do_pronouns_result=ambiguous;
+ return do_pronouns_result;
+}
+
+void store_interrogation(byte interrogation);
+
+
+static void lowercase()
+{
+    byte fv;
+
+ for( fv=1; fv <= length(current); fv ++)
+  if (set::of(range('A','Z'), eos).has(current[fv])) 
+   current[fv] += 32;
+}
+
+
+
+static void propernouns()
+{
+    byte fv;
+
+ lowercase();
+ for( fv=2; fv <= length(current)-1; fv ++)
+  if (current[fv]==' ') 
+   current[fv+1]=upcase(current[fv+1]);
+ current[1]=upcase(current[1]);
+}
+
+
+
+static void sayit() /* This makes Avalot say the response. */
+{
+    string x;
+
+ x=current; x[1]=upcase(x[1]);
+ display(string("\231")+x+'.'+'\2'+'\23'+'2');
+}
+
+void store_interrogation(byte interrogation)
+{
+    byte fv;
+
+
+ if (current=="")  return;
+
+ /* Strip current: */
+ while ((current[1]==' ') && (current!=""))  Delete(current,1,1);
+ while ((current[length(current)]==' ') && (current!=""))  current[0] -= 1;
+
+ lose_timer(reason_cardiffsurvey); /* if you want to use any other timer,
+  put this into the case statement. */
+  switch (interrogation) {
+   case 1: {
+       lowercase(); sayit();
+       like2drink=current;
+       dna.cardiff_things=2;
+      }
+      break;
+   case 2: {
+       propernouns(); sayit();
+       favourite_song=current;
+       dna.cardiff_things=3;
+      }
+      break;
+   case 3: {
+       propernouns(); sayit();
+       worst_place_on_earth=current;
+       dna.cardiff_things=4;
+      }
+      break;
+   case 4: {
+       lowercase(); sayit();
+       fillchar(spare_evening,sizeof(spare_evening),'\261');
+       spare_evening=current;
+       dixi('z',5); /* His closing statement... */
+       tr[2].walkto(4); /* The end of the drawbridge */
+       tr[2].vanishifstill=true;  /* Then go away! */
+       magics[2].op=nix;
+       dna.cardiff_things=5;
+      }
+      break;
+
+   case 99: store_high(current); break;
+  }
+ if (interrogation<4)  cardiff_survey;
+}
+
+void clearwords()
+{
+ fillchar(realwords,sizeof(realwords),'\0');
+}
+
+void parse()
+{
+    byte n,fv,ff; string c,cc,thisword; varying_string<1> answer; boolean notfound;
+
+ /* first parsing - word identification */
+
+ thats=""; c=current+'\40'; n=1; polite=false;
+ verb=pardon; thing=pardon; thing2=pardon; person=pardon;
+ clearwords();
+ if (current[1]=='.') 
+ {     /* a cheat mode attempt */
+  cheatparse(current); thats=nowt; return;
+ }    /* not our department! Otherwise... */
+
+ /* Are we being interrogated right now? */
+
+ if (interrogation>0) 
+ {
+  store_interrogation(interrogation);
+  weirdword=true;
+  return;
+ }
+
+ cc=c; for( fv=1; fv <= length(c); fv ++) c[fv]=upcase(c[fv]);
+ while (c!="") 
+ {
+   while ((c[1]=='\40') && (c!="")) 
+     { Delete(c,1,1); Delete(cc,1,1); }
+  thisword=copy(c,1,pos("\40",c)-1);
+  realwords[n]=copy(cc,1,pos("\40",cc)-1);
+  punctustrip(c);
+
+  notfound=true;
+
+  if (thisword!="") 
+  {
+   for( ff=1; ff <= 30; ff ++)
+   {     /* Check Also, FIRST! */
+    if (pos(string(',')+thisword,also[ff][0])>0) 
+    {
+     thats=thats+chr(99+ff);
+     notfound=false;
+    }
+   }
+  }
+
+  if (notfound) 
+  {
+   answer=wordnum(thisword);
+   if (answer==pardon) 
+   {
+    notfound=true;
+    thats=thats+pardon;
+   } else
+    thats=thats+wordnum(thisword);
+   n += 1;
+  }
+  Delete(c,1,pos("\40",c)); Delete(cc,1,pos("\40",cc));
+ }
+
+ if (pos("\376",thats)>0)  unknown=realwords[pos("\376",thats)]; else unknown=""; replace("\377",""); /* zap noise words */
+ replace(string('\15')+'\342',"\1"); /* "look at" = "examine" */
+ replace(string('\15')+'\344',"\1"); /* "look in" = "examine" */
+ replace(string('\4')+'\343',"\21"); /* "get up" = "stand" */
+ replace(string('\4')+'\347',"\21"); /* "get down" = "stand"... well, why not? */
+ replace(string('\22')+'\344',"\2"); /* "go in" = "open [door]" */
+ replace(string('\34')+'\345',"\375"); /* "P' off" is a swear word */
+ replace(string('\4')+'\6',"\6"); /* "Take inventory" (remember Colossal Adventure?) */
+ replace(string('\50')+'\350',"\25"); /* "put on" = "don" */
+ replace(string('\4')+'\345',"\24"); /* "take off" = "doff" */
+
+             /* Words that could mean more than one person */
+ {
+  if (room==r__nottspub)  replace("\314","\244"); /* Barman = Port */
+   else replace("\314","\232");                   /* Barman = Malagauche */
+  switch (room) {
+   case r__aylesoffice: replace("\313","\243"); break;        /* Monk = Ayles */
+   case r__musicroom: replace("\313","\246"); break;          /* Monk = Jacques */
+   default: replace("\313","\242");                   /* Monk = Ibythneth */
+  }
+ }
+
+ if (do_pronouns()) 
+ {
+  weirdword=true;
+  thats=nowt;
+  return;
+ }
+
+ /* second parsing - accidence */
+
+ subject=""; subjnumber=0;   /* Find subject of conversation. */
+ for( fv=1; fv <= 11; fv ++)
+  if (set::of('`','\'', eos).has(realwords[fv][1])) 
+  {
+   subjnumber=ord(thats[fv]);
+   thats[fv]=moved;
+   flush(); /* Only the second time I've used that! */
+  }
+ if (subjnumber==0)   /* Still not found. */
+  for( fv=1; fv <= 10; fv ++)
+   if (thats[fv]=='\374')  /* the word is "about", or something similar */
+   {
+    subjnumber=ord(thats[fv+1]);
+    thats[fv+1]='\0';
+    flush(); /* ...Third! */
+   }
+ if (subjnumber==0)   /* STILL not found! Must be the word after "say". */
+  for( fv=1; fv <= 10; fv ++)
+   if ((thats[fv]=='\7') && ! (set::of('\0',range('\341','\345'), eos).has(thats[fv+1]))) 
+   {     /* SAY not followed by a preposition */
+    subjnumber=ord(thats[fv+1]);
+    thats[fv+1]='\0';
+    flush(); /* ...Fourth! */
+   }
+
+ for( fv=length(thats); fv >= 1; fv --) /* Reverse order- so first'll be used */
+  switch (thats[fv]) {
+   case '\1' ... '\61':case '\375':case '\371': verb=thats[fv]; break;
+   case '\62' ... '\225': { thing2=thing; thing=thats[fv]; } break;
+   case '\226' ... '\307': person=thats[fv]; break;
+   case '\373': polite=true; break;
+  }
+
+ if ((unknown!="") && !
+  (set::of(vb_exam,vb_talk,vb_save,vb_load,vb_dir, eos).has(verb))) 
+ {
+  display(string("Sorry, but I have no idea what `")+unknown+
+    "\" means. Can you rephrase it?");
+  weirdword=true;
+ } else weirdword=false;
+ if (thats=="")  thats=nowt;
+
+ if (thing!=pardon)  it=thing;
+ if (person!=pardon) 
+ {
+  if (person<'\257')  him=person; else her=person;
+ }
+}
+
+void examobj()     /* Examine a standard object-thing */
+{
+ if (thing!=thinks)  thinkabout(thing,a_thing);
+  switch (thing) {
+   case wine : switch (winestate) {
+         /* 4 is perfect wine. 0 is not holding the wine. */
+           case 1: dixi('t',1); break; /* Normal examine wine scroll */
+           case 2: dixi('d',6); break; /* Bad wine */
+           case 3: dixi('d',7); break; /* Vinegar */
+          }
+          break;
+   case onion: if (rotten_onion) 
+           dixi('q',21); /* Yucky onion. */
+          else
+           dixi('t',18);
+           break;        /* Normal onion scroll */
+  default:
+   dixi('t',ord(thing)); /* <<< Ordinarily */
+  }
+}
+
+boolean personshere()         /* Person equivalent of "holding" */
+{
+ boolean personshere_result;
+ if ((person==pardon) || (person=='\0')
+   || (whereis[person]==dna.room))  personshere_result=true;
+ else {
+  if (person<'\257')  display("H\4"); else display("Sh\4");
+  display("e isn't around at the moment.");
+  personshere_result=false;
+ }
+ return personshere_result;
+}
+
+void exampers()
+{
+ if (personshere()) 
+ {
+  if (thing!=thinks)  thinkabout(person,a_person);
+  person -= 149;
+   switch (person) { /* Special cases */
+    case '\13': if (wonnim) 
+         {
+          dixi('Q',8); /* "I'm Not Playing!" */
+          return;
+         }
+         break;
+    case '\11': if (lustie_is_asleep) 
+        { dixi('Q',65);     /* He's asleep. (65! Wow!) */ return; }
+        break;
+   }
+   /* Otherwise... */ dixi('p',ord(person));
+ }    /* And afterwards... */
+ switch (person) {
+  case '\16': if (~ dna.ayles_is_awake)  dixi('Q',13); break; /* u.f.s.? */
+ }
+}
+
+boolean holding()
+{
+ boolean holding_result;
+ if (set::of(range('\63','\143'), eos).has(thing))  { holding_result=true; return holding_result; } /* Also */
+ holding_result=false;
+ if (thing>'\144')  display("Be reasonable!"); else
+  if (~ dna.obj[thing])      /* verbs that need "thing" to be in the inventory */
+   display("You're not holding it, Avvy."); else
+    holding_result=true;
+ return holding_result;
+}
+
+void examine();
+
+static void special(boolean before)
+{
+ switch (dna.room) {
+  case r__yours: switch (thing) {
+             case '\66': if (before)  show_one(5); else show_one(6); break;
+            }
+            break;
+ }
+}
+
+void examine()
+{
+ /* Examine. EITHER it's an object OR it's an Also OR it's a person OR
+    it's something else. */
+ if ((person==pardon) && (thing!=pardon)) 
+ {
+  if (holding()) 
+   switch (thing) { /* remember it's been Slipped- ie subtract 49 */
+       case '\1' ... '\61' : examobj(); break; /* Standard object */
+     case '\62' ... '\144' : {
+                  special(true);
+                  display(also[ord(thing)-50][1]); /* Also thing */
+                  special(false);
+                 }
+                 break;
+   }
+ } else
+  if (person!=pardon)  exampers();
+   else display("It's just as it looks on the picture.");  /* don't know- guess */
+}
+
+void inv()     /* the time-honoured command... */
+{
+    char fv; byte q;
+
+ q=0; display(string("You're carrying ")+'\4');
+ {
+  for( fv='\1'; fv <= numobjs; fv ++)
+   if (obj[fv]) 
+   {
+    q += 1; if (q==carrying)  display(string("and ")+'\4');
+    display(get_better(fv)+'\4');
+    if (fv==wearing)  display(string(", which you're wearing")+'\4');
+     if (q<carrying)  display(string(", ")+'\4');
+   }
+  if (wearing==nowt)  display("...\r\r...and you're stark naked!"); else
+   display('.');
+ }
+}
+
+void swallow()     /* Eat something. */
+{
+ switch (thing) {
+  case wine: switch (dna.winestate) {
+         /* 4 is perfect */
+          case 1: {
+              if (dna.teetotal)  { dixi('D',6); return; }
+              dixi('U',1); wobble; dixi('U',2);
+              dna.obj[wine]=false; objectlist;
+              have_a_drink();
+             }
+             break;
+          case 2:case 3: dixi('d',8); break; /* You can't drink it! */
+         }
+         break;
+  case potion: { background(4); dixi('U',3); gameover; background(0); } break;
+  case ink: dixi('U',4); break;
+  case chastity: dixi('U',5); break;
+  case mushroom: {
+             dixi('U',6);
+             gameover;
+            }
+            break;
+  case onion: if (dna.rotten_onion)  dixi('U',11);
+         else {
+          dixi('U',8);
+          dna.obj[onion]=false;
+          objectlist;
+         }
+         break;
+  default:
+    if (set::of(r__argentpub,r__nottspub, eos).has(dna.room)) 
+      display("Try BUYing things before you drink them!");
+    else
+      display("The taste of it makes you retch!");
+         /* Constant- leave this one */
+ }
+}
+
+void others()
+ /* This lists the other people in the room. */
+{
+ char fv;
+ byte num_people,this_person,here;
+
+
+ num_people=0;
+ this_person=0;
+ here=dna.room;
+
+ for( fv='\227'; fv <= '\262'; fv ++) /* Start at 151 so we don't list Avvy himself! */
+  if (whereis[fv]==here) 
+   num_people += 1;
+
+ /* If nobody's here, we can cut out straight away. */
+
+ if (num_people==0)  return; /* Leave the procedure. */
+
+ for( fv='\227'; fv <= '\262'; fv ++)
+  if (whereis[fv]==here) 
+  {
+   this_person += 1;
+   if (this_person==1)   /* First on the list. */
+    display(getname(fv)+'\4'); else
+    if (this_person<num_people)    /* The middle... */
+     display(string(", ")+getname(fv)+'\4'); else
+      display(string(" and ")+getname(fv)+'\4'); /* The end. */
+  }
+
+ if (num_people==1)  display(" is\4"); else display(" are\4");
+
+ display(" here."); /* End and display it. */
+}
+
+void lookaround()
+/* This is called when you say "look." */
+{
+ display(also[0][1]);
+ switch (dna.room) {
+  case r__spludwicks: if (dna.avaricius_talk>0)  dixi('q',23); else others(); break;
+  case r__robins: {
+              if (dna.tied_up)  dixi('q',38);
+              if (dna.mushroom_growing)  dixi('q',55);
+             }
+             break;
+  case r__insidecardiffcastle: if (~ dna.taken_pen)  dixi('q',49); break;
+  case r__lustiesroom: if (dna.lustie_is_asleep)  dixi('q',65); break;
+  case r__catacombs: switch (dna.cat_y*256+dna.cat_x) {
+                 case 258 : dixi('q',80); break; /* Inside art gallery */
+                 case 514 : dixi('q',81); break; /* Outside ditto */
+                 case 260 : dixi('q',82); break; /* Outside Geida's room. */
+                }
+                break;
+  default: others();
+ }
+}
+
+void opendoor()     /* so whaddya THINK this does?! */
+{
+    byte fv;
+
+ switch (dna.room) {   /* Special cases. */
+   case r__yours: if (infield(2)) 
+             {     /* Opening the box. */
+              thing='\66'; /* The box. */ person=pardon;
+              examine();
+              return;
+             }
+             break;
+   case r__spludwicks: if (thing=='\75')  {
+                    dixi('q',85);
+                    return;
+                  }
+                  break;
+ }
+
+
+ if ((~ dna.user_moves_avvy) & (dna.room!=r__lusties))
+        return; /* No doors can open if you can't move Avvy. */
+ for( fv=9; fv <= 15; fv ++)
+  if (infield(fv)) 
+  {
+   { void& with = portals[fv]; 
+    switch (op) {
+     case exclaim: { tr[1].bounce; dixi('x',data); } break;
+     case transport: fliproom(hi(data),lo(data)); break;
+     case unfinished: {
+                  tr[1].bounce;
+                  display("\7Sorry.\3\rThis place is not available yet!");
+                 }
+                 break;
+     case special: call_special(data); break;
+     case mopendoor: open_the_door(hi(data),lo(data),fv); break;
+    }}
+    return;
+   }
+ if (dna.room==r__map) 
+  display(string("Avvy, you can complete the whole game without ever going ")+
+                 "to anywhere other than Argent, Birmingham, Cardiff, "+
+                 "Nottingham and Norwich.");
+ else display("Door? What door?");
+}
+
+void putproc();
+
+
+static void silly()
+{
+ display("Don't be silly!");
+}
+
+void putproc()     /* Called when you call vb_put. */
+{
+    char temp;
+
+
+ if (! holding())  return;
+ thing2 -= 49;   /* Slip the second object */
+ temp=thing; thing=thing2; if (! holding())  return;
+ thing=temp;
+
+ /* Thing is the thing which you're putting in. Thing2 is where you're
+   putting it. */
+             /* Convenience thing. */
+  switch (thing2) {
+   case wine: if (thing==onion) 
+         {
+          if (dna.rotten_onion) 
+          display(string("That's a bit like shutting the stable door after the ")+
+                   "horse has bolted!");
+          else {     /* Put onion into wine? */
+           if (dna.winestate!=3) 
+            display("\6Oignon au vin\22 is a bit too strong for your tastes!");
+           else {     /* Put onion into vinegar! Yes! */
+            onion_in_vinegar=true;
+            points(7);
+            dixi('u',9);
+           }
+          }
+         } else silly();
+         break;
+
+    case '\66': if (room==1)  /* Put something into the box. */
+         {
+          if (box_contents!=nowt) 
+           display(string("There's something in the box already, Avvy. Try taking")+
+            " that out first.");
+          else
+           switch (thing) {
+            case money: display("You'd better keep some ready cash on you!"); break;
+            case bell: display("That's a silly place to keep a bell."); break;
+            case bodkin: display("But you might need it!"); break;
+            case onion: display("Just give it to Spludwick, Avvy!"); break;
+            default:
+            {     /* Put the object into the box... */
+             if (wearing==thing) 
+              display(string("You'd better take ")+get_better(thing)+" off first!");
+             else
+             {
+              show_one(5); /* Open box. */
+              box_contents=thing;
+              dna.obj[thing]=false;
+              objectlist;
+              display("OK, it's in the box.");
+              show_one(6); /* Shut box. */
+             }
+            }
+           }
+         } else silly();
+         break;
+
+   default: silly();
+  }
+}
+
+boolean give2spludwick();
+
+ /* The result of this fn is whether or not he says "Hey, thanks!" */
+static void not_in_order()
+{
+ display(string("Sorry, I need the ingredients in the right order for this potion.")+
+  " What I need next is "+
+   get_better(spludwick_order[dna.given2spludwick])+".\232\2");
+}
+
+
+
+static void go_to_cauldron()
+{
+   tr[2].call_eachstep=false;  /* Stops Geida_Procs. */
+   set_up_timer(1,procspludwick_goes_to_cauldron,reason_spludwalk);
+   tr[2].walkto(2);
+}
+
+boolean give2spludwick()
+
+{
+ boolean give2spludwick_result;
+ {
+
+  give2spludwick_result=false;
+
+  if (spludwick_order[given2spludwick]!=thing) 
+  {
+   not_in_order();
+   return give2spludwick_result;
+  }
+
+  switch (thing) {
+   case onion:
+    {
+     obj[onion]=false;
+     if (rotten_onion) 
+      dixi('q',22);
+     else {
+      given2spludwick += 1;
+      dixi('q',20);
+      go_to_cauldron();
+      points(3);
+     }
+     objectlist;
+    }
+    break;
+   case ink: {
+         obj[ink]=false;
+         objectlist;
+         given2spludwick += 1;
+         dixi('q',24);
+         go_to_cauldron();
+         points(3);
+        }
+        break;
+   case mushroom: {
+              obj[mushroom]=false;
+              dixi('q',25);
+              points(5);
+              given2spludwick += 1;
+              go_to_cauldron();
+              obj[potion]=true;
+              objectlist;
+             }
+             break;
+   default: give2spludwick_result=true;
+  }
+ }
+ return give2spludwick_result;
+}
+
+void have_a_drink()
+{
+ {
+  alcohol += 1;
+  if (alcohol==5) 
+  {
+   obj[key]=true;  /* Get the key. */
+   teetotal=true;
+   avvy_is_awake=false;
+   avvy_in_bed=true;
+   objectlist;
+   dusk;
+   hang_around_for_a_while;
+   fliproom(1,1);
+   background(14);
+   new_game_for_trippancy; /* Not really */
+  }
+ }
+}
+
+void cardiff_climbing()
+{
+ if (dna.standing_on_dais) 
+ {     /* Clamber up. */
+  display("You climb down, back onto the floor.");
+  dna.standing_on_dais=false;
+  apped(1,3);
+ } else
+ {     /* Clamber down. */
+  if (infield(1)) 
+  {
+    display("You clamber up onto the dais.");
+    dna.standing_on_dais=true;
+    apped(1,2);
+  } else
+    display("Get a bit closer, Avvy.");
+ }
+}
+
+void stand_up();
+
+  /* Called when you ask Avvy to stand. */
+static void already()
+{
+ display("You're already standing!");
+}
+
+void stand_up()
+{
+  switch (dna.room) {
+   case r__yours: /* Avvy isn't asleep. */
+              if (avvy_in_bed)    /* But he's in bed. */
+              {
+               if (teetotal) 
+               {
+                dixi('d',12);
+                background(0);
+                dixi('d',14);
+               }
+               tr[1].visible=true;
+               user_moves_avvy=true;
+               apped(1,2);
+               dna.rw=left;
+               show_one(4); /* Picture of empty pillow. */
+               points(1);
+               avvy_in_bed=false;
+               lose_timer(reason_arkata_shouts);
+              } else already();
+              break;
+
+    case r__insidecardiffcastle: cardiff_climbing(); break;
+
+    case r__nottspub: if (sitting_in_pub)  {
+                  show_one(4); /* Not sitting down. */
+                  tr[1].visible=true;  /* But standing up. */
+                  apped(1,4); /* And walking away. */
+                  sitting_in_pub=false;  /* Really not sitting down. */
+                  user_moves_avvy=true;  /* And ambulant. */
+                 } else already();
+                 break;
+   default: already();
+  }
+}
+
+void getproc(char thing)
+{
+  switch (room) {
+   case r__yours:
+     if (infield(2)) 
+     {
+      if (box_contents==thing) 
+      {
+       show_one(5);
+       display("OK, I've got it.");
+       obj[thing]=true; objectlist;
+       box_contents=nowt;
+       show_one(6);
+      } else
+       display(string("I can't see ")+get_better(thing)+" in the box.");
+     } else dixi('q',57);
+     break;
+  case r__insidecardiffcastle:
+    switch (thing) {
+     case pen:
+     {
+      if (infield(2)) 
+      {     /* Standing on the dais. */
+
+       if (dna.taken_pen) 
+        display("It's not there, Avvy.");
+       else
+       {     /* OK: we're taking the pen, and it's there. */
+        show_one(4); /* No pen there now. */
+        call_special(3); /* Zap! */
+        dna.taken_pen=true;
+        dna.obj[pen]=true;
+        objectlist;
+        display("Taken.");
+       }
+      } else if (dna.standing_on_dais)  dixi('q',53); else dixi('q',51);
+     }
+     break;
+      case bolt: dixi('q',52); break;
+     default: dixi('q',57);
+    }
+    break;
+  case r__robins: if ((thing==mushroom) & (infield(1)) & (dna.mushroom_growing))
+                  {
+              show_one(3);
+              display("Got it!");
+              dna.mushroom_growing=false;
+              dna.taken_mushroom=true;
+              dna.obj[mushroom]=true;
+              objectlist;
+              points(3);
+             } else dixi('q',57);
+             break;
+  default: dixi('q',57);
+ }
+}
+
+void give_geida_the_lute()
+{
+ {
+  if (room!=r__lustiesroom) 
+  {
+   display("Not yet. Try later!\232\2");
+   return;
+  }
+  dna.obj[lute]=false;
+  objectlist;
+  dixi('q',64); /* She plays it. */
+
+   /* And the rest has been moved to Timeout... under give_lute_to_Geida. */
+
+  set_up_timer(1,procgive_lute_to_geida,reason_geida_sings);
+  back_to_bootstrap(4);
+ }
+}
+
+void play_harp()
+{
+ if (infield(7)) 
+  musical_scroll;
+ else display("Get a bit closer to it, Avvy!");
+}
+
+void winsequence()
+{
+ dixi('q',78);
+ first_show(7); then_show(8); then_show(9);
+ start_to_close;
+ set_up_timer(30,procwinning,reason_winning);
+}
+
+void person_speaks()
+{
+    boolean found; byte fv; char cfv;
+
+
+  if ((person==pardon) || (person=='\0')) 
+  {
+   if ((him==pardon) || (whereis[him]!=dna.room))  person=her;
+    else person=him;
+  }
+
+  if (whereis[person]!=dna.room) 
+  {
+   display("\231\4"); /* Avvy himself! */
+   return;
+  }
+
+  found=false;  /* The person we're looking for's code is in Person. */
+
+  for( fv=1; fv <= numtr; fv ++)
+   if (tr[fv].quick & (chr(tr[fv].a.accinum+149)==person)) 
+   {
+    display(string('\23')+chr(fv+48)+'\4');
+    found=true;
+   }
+
+  if (! found) 
+    for( fv=10; fv <= 25; fv ++)
+     { void& with = quasipeds[fv]; 
+     if ((who==person) && (room==dna.room)) 
+     {
+      display(string('\23')+chr(fv+55)+'\4');
+     }}
+}
+
+void do_that();
+
+static void heythanks()
+{
+  person_speaks();
+  display("Hey, thanks!\2(But now, you've lost it!)");
+  dna.obj[thing]=false;
+}
+
+void do_that()
+{
+      const array<'\63','\72',varying_string<6> > booze = {{"Bitter","GIED","Whisky","Cider","","","","Mead"}};
+    byte fv,ff; integer sx,sy; boolean ok;
+
+
+ if (thats==nowt)  { thats=""; return; }
+ if (weirdword)  return;
+ if (thing<'\310')  thing -= 49;   /* "Slip" */
+
+ if ((~ alive) &
+  ! (set::of(vb_load,vb_save,vb_quit,vb_info,vb_help,vb_larrypass,
+     vb_phaon,vb_boss,vb_cheat,vb_restart,vb_dir,vb_score,
+     vb_highscores,vb_smartalec, eos).has(verb)))
+       {
+        display(string("You're dead, so don't talk. What are you, a ghost ")+
+         "or something? Try restarting, or restoring a saved game!"); return;
+       }
+
+ if ((~ dna.avvy_is_awake) &
+  ! (set::of(vb_load,vb_save,vb_quit,vb_info,vb_help,vb_larrypass,
+     vb_phaon,vb_boss,vb_cheat,vb_restart,vb_dir,vb_die,vb_score,
+     vb_highscores,vb_smartalec,vb_expletive,vb_wake, eos).has(verb)))
+       {
+        display("Talking in your sleep? Try waking up!"); return;
+       }
+
+
+ switch (verb) {
+  case vb_exam: examine(); break;
+  case vb_open: opendoor(); break;
+  case vb_pause: display(string("Game paused.")+'\3'+'\15'+'\15'+"Press Enter, Esc, or click "+
+             "the mouse on the `O.K.\" box to continue.");
+             break;
+  case vb_get: {
+           if (thing!=pardon) 
+           {     /* Legitimate try to pick something up. */
+            if (dna.carrying>=maxobjs)  display("You can't carry any more!");
+            else getproc(thing);
+
+           } else
+           {     /* Not... ditto. */
+            if (person!=pardon) 
+             display("You can't sweep folk off their feet!"); else
+            display("I assure you, you don't need it.");
+           }
+          }
+          break;
+  case vb_drop: display(string("Two years ago you dropped a florin in the street. Three days ")+
+       "later it was gone! So now you never leave ANYTHING lying around. OK?");
+       break;
+/*       begin dna.obj[thing]:=false; objectlist; end;*/
+  case vb_inv: inv(); break;
+  case vb_talk:  if (person==pardon) 
+            {
+              if (subjnumber==99)   /* They typed "say password". */
+                display("Yes, but what \6is\22 the password?");
+              else if (set::of(range(1,49),253,249, eos).has(subjnumber)) 
+              {
+                Delete(thats,1,1);
+                move(realwords[2],realwords[1],sizeof(realwords)-sizeof(realwords[1]));
+                verb=chr(subjnumber);
+                do_that(); return;
+              } else
+              {
+                person=chr(subjnumber); subjnumber=0;
+                if (set::of(pardon,'\0', eos).has(person))  display("Talk to whom?");
+                 else if (personshere())  talkto(ord(person));
+              }
+            } else if (person==pardon)  display("Talk to whom?");
+            else if (personshere())  talkto(ord(person));
+            break;
+
+  case vb_give: if (holding()) 
+           {
+            if (person==pardon)  display("Give to whom?"); else
+            if (personshere()) 
+            {
+             switch (thing) {
+              case money : display("You can't bring yourself to give away your moneybag."); break;
+              case bodkin:case bell:case clothes:case habit :
+                    display("Don't give it away, it might be useful!");
+                    break;
+              default: switch (person) {
+                      case pcrapulus: switch (thing) {
+                                 case wine: {
+                                        display("Crapulus grabs the wine and gulps it down.");
+                                        dna.obj[wine]=false;
+                                       }
+                                       break;
+                                 default: heythanks();
+                                }
+                                break;
+                     case pcwytalot: if (set::of(crossbow,bolt, eos).has(thing)) 
+                                 display(string("You might be able to influence ")+
+                                 "Cwytalot more if you used it!");
+                                else heythanks();
+                                break;
+                     case pspludwick: if (give2spludwick())  heythanks(); break;
+                     case pibythneth: if (thing==badge) 
+                                 {
+                                  dixi('q',32); /* Thanks! Wow! */
+                                  points(3);
+                                  dna.obj[badge]=false;
+                                  dna.obj[habit]=true;
+                                  dna.givenbadgetoiby=true;
+                                  show_one(8); show_one(9);
+                                 } else heythanks();
+                                 break;
+                     case payles: if (dna.ayles_is_awake) 
+                             {
+                               if (thing==pen) 
+                               {
+                                dna.obj[pen]=false;
+                                dixi('q',54);
+                                dna.obj[ink]=true;
+                                dna.given_pen_to_ayles=true;
+                                objectlist;
+                                points(2);
+                               } else heythanks();
+                             } else
+                               display("But he's asleep!");
+                               break;
+                     case pgeida: switch (thing) {
+                              case potion : {
+                                        dna.obj[potion]=false;
+                                        dixi('u',16); /* She drinks it. */
+                                        points(2);
+                                        dna.geida_given_potion=true;
+                                        objectlist;
+                                       }
+                                       break;
+                              case lute: give_geida_the_lute(); break;
+                              default: heythanks();
+                             }
+                             break;
+                     case parkata: switch (thing) {
+                              case potion: if (dna.geida_given_potion) 
+                                       winsequence();
+                                      else dixi('q',77);
+                                      break;             /* That Geida woman! */
+                              default: heythanks();
+                             }
+                             break;
+                    default: heythanks();
+                   }
+             }
+            }
+            objectlist; /* Just in case... */
+           }
+           break;
+
+  case vb_eat:case vb_drink: if (holding())  swallow(); break;
+  case vb_load: edna_load(realwords[2]); break;
+  case vb_save: if (alive)  edna_save(realwords[2]);
+           else display("It's a bit late now to save your game!");
+           break;
+  case vb_pay: display("No money need change hands."); break;
+  case vb_look: lookaround(); break;
+  case vb_break: display("Vandalism is prohibited within this game!"); break;
+  case vb_quit: { /* quit */
+            if (demo) 
+            {
+             dixi('q',31);
+             close(demofile);
+             exit(0); /* Change this later!!! */
+            }
+        if (! polite)  display("How about a `please\", Avvy?"); else
+         if (ask("\23C\26Do you really want to quit?"))  lmo=true;
+       }
+       break;
+  case vb_go: display("Just use the arrow keys to walk there."); break;
+  case vb_info: {
+            aboutscroll=true;
+/*            display('Thorsoft of Letchworth presents:'+^c+^m+^m+
+             'The medi‘val descendant of'+^m+
+             'Denarius Avaricius Sextus'+^m+'in:'+
+             ^m+^m+'LORD AVALOT D''ARGENT'+
+             ^m+'version '+vernum+^m+^m+'Copyright ï '
+             +copyright+', Mark, Mike and Thomas Thurman.');*/
+             display(string("\r\r\r\r\r\r\r")+"LORD AVALOT D'ARGENT"+"\3\r"+
+              "The medi‘val descendant of"+'\15'+
+              "Denarius Avaricius Sextus"+
+              '\15'+'\15'+"version "+vernum+'\15'+'\15'+"Copyright ï "
+              +copyright+", Mark, Mike and Thomas Thurman."+'\23'+'Y'+'\26');
+             aboutscroll=false;
+           }
+           break;
+  case vb_undress: if (dna.wearing==nowt)  display("You're already stark naked!");
+               else
+            if (dna.avvys_in_the_cupboard) 
+            {
+             display(string("You take off ")+get_better(dna.wearing)+'.');
+             dna.wearing=nowt; objectlist;
+            } else
+            display("Hadn't you better find somewhere more private, Avvy?");
+            break;
+  case vb_wear: if (holding()) 
+       {     /* wear something */
+        switch (thing) {
+         case chastity: display("Hey, what kind of a weirdo are you\??!"); break;
+         case clothes:case habit: { /* Change this! */
+                         if (dna.wearing!=nowt) 
+                         {
+                          if (dna.wearing==thing) 
+                            display("You're already wearing that.");
+                          else
+                            display(string("You'll be rather warm wearing two ")+
+                           "sets of clothes!");
+                          return;
+                         } else
+                         dna.wearing=thing; objectlist;
+                         if (thing==habit)  fv=3; else fv=0;
+                         { void& with = tr[1]; 
+                          if (whichsprite!=fv) 
+                          {
+                           sx=tr[1].x; sy=tr[1].y;
+                           done;
+                           init(fv,true);
+                           appear(sx,sy,left);
+                           tr[1].visible=false;
+                          }}
+                        }
+                        break;
+         default: display(what);
+        }
+       }
+       break;
+  case vb_play: if (thing==pardon) 
+            switch (dna.room) { /* They just typed "play"... */
+             case r__argentpub: play_nim; break; /* ...in the pub, => play Nim. */
+             case r__musicroom: play_harp(); break;
+            }
+           else if (holding()) 
+           {
+            switch (thing) {
+             case lute : {
+                     dixi('U',7);
+                     if (whereis[pcwytalot]==dna.room)  dixi('U',10);
+                     if (whereis[pdulustie]==dna.room)  dixi('U',15);
+                    }
+                    break;
+             case '\64' : if (dna.room==r__musicroom)  play_harp();
+                    else display(what);
+                    break;
+             case '\67' : if (dna.room==r__argentpub)  play_nim;
+                    else display(what);
+                    break;
+             default: display(what);
+            }
+           }
+           break;
+  case vb_ring: if (holding()) 
+       {
+        if (thing==bell) 
+        {
+         display("Ding, dong, ding, dong, ding, dong, ding, dong...");
+         if ((dna.ringing_bells) & (flagset('B'))) 
+          display("(Are you trying to join in, Avvy\?\?!)");
+        } else display(what);
+       }
+       break;
+  case vb_help: boot_help; break;
+  case vb_larrypass: display("Wrong game!"); break;
+  case vb_phaon: display("Hello, Phaon!"); break;
+  case vb_boss: bosskey; break;
+  case vb_pee: if (flagset('P')) 
+          {
+           display("Hmm, I don't think anyone will notice...");
+           set_up_timer(4,procurinate,reason_gototoilet);
+          } else display("It would be \6VERY\22 unwise to do that here, Avvy!");
+          break;
+  case vb_cheat: {
+             display(string('\6')+"Cheat mode now enabled.");
+             cheat=true;
+            }
+            break;
+  case vb_magic: if (dna.avaricius_talk>0) 
+             dixi('q',19);
+            else {
+             if ((dna.room==12) & (infield(2))) 
+             {     /* Avaricius appears! */
+              dixi('q',17);
+              if (whereis['\227']==12) 
+               dixi('q',18);
+              else
+              {
+               tr[2].init(1,false); /* Avaricius */
+               apped(2,4);
+               tr[2].walkto(5);
+               tr[2].call_eachstep=true;
+               tr[2].eachstep=procback_and_forth;
+               dna.avaricius_talk=14;
+               set_up_timer(177,procavaricius_talks,reason_avariciustalks);
+              }
+             } else display("Nothing appears to happen...");
+            }
+            break;
+  case vb_smartalec: display("Listen, smart alec, that was just rhetoric."); break;
+  case vb_expletive: {
+         switch (swore) {
+          case 0: display(string("Avvy! Do you mind? There might be kids playing!\r\r")+
+              "(I shouldn't say it again, if I were you!)");
+              break;
+          case 1: display(string("You hear a distant rumble of thunder. Must you always ")+
+              "do things I tell you not to?\r\rDon't do it again!");
+              break;
+         default:
+          {
+           zonk;
+           display(string("A crack of lightning shoots from the sky, ")+
+            "and fries you.\r\r(`Such is the anger of the gods, Avvy!\")");
+           gameover;
+          }
+         }
+         swore += 1;
+        }
+        break;
+  case vb_listen: if ((dna.ringing_bells) & (flagset('B'))) 
+              display(string("All other noise is drowned out by the ringing of ")+
+                       "the bells.");
+             else
+              if (listen=="") 
+               display("You can't hear anything much at the moment, Avvy.");
+                else display(listen);
+                break;
+  case vb_buy: {
+           /* What are they trying to buy? */
+           switch (dna.room) {
+            case r__argentpub: if (infield(6)) 
+                {     /* We're in a pub, and near the bar. */
+                 switch (thing) {
+                  case '\63':case '\65':case '\66':case '\72': { /* Beer, whisky, cider or mead */
+                            if (dna.malagauche==177)   /* Already getting us one. */
+                              { dixi('D',15); return; }
+                            if (dna.teetotal)  { dixi('D',6); return; }
+                            if (dna.alcohol==0)  points(3);
+                            show_one(12);
+                            display(booze[thing]+", please.\231\2");
+                            dna.drinking=thing;
+
+                            show_one(10);
+                            dna.malagauche=177;
+                            set_up_timer(27,procbuydrinks,reason_drinks);
+                           }
+                           break;
+                  case '\64': examine(); break; /* We have a right one here- buy Pepsi??! */
+                  case wine: if (dna.obj[wine])  /* We've already got the wine! */
+                          dixi('D',2); /* 1 bottle's shufishent! */
+                         else {
+                          if (dna.malagauche==177)   /* Already getting us one. */
+                            { dixi('D',15); return; }
+                          if (dna.carrying>=maxobjs) 
+                             { display("Your hands are full."); return; }
+                          show_one(12); display("Wine, please.\231\2");
+                          if (dna.alcohol==0)  points(3);
+                          show_one(10);
+                          dna.malagauche=177;
+
+                          set_up_timer(27,procbuywine,reason_drinks);
+                         }
+                         break;
+                 }
+                } else dixi('D',5);
+                break;                /* Go to the bar! */
+
+            case r__outsideducks: if (infield(6)) 
+             {
+              if (thing==onion) 
+              {
+               if (dna.obj[onion]) 
+                dixi('D',10); /* not planning to juggle with the things! */
+               else
+               if (dna.carrying>=maxobjs) 
+                  display("Before you ask, you remember that your hands are full.");
+               else
+               {
+                if (dna.bought_onion) 
+                 dixi('D',11); else
+                  { dixi('D',9); points(3); }
+                pennycheck(3); /* It costs thruppence. */
+                dna.obj[onion]=true;
+                objectlist;
+                dna.bought_onion=true;
+                dna.rotten_onion=false;  /* It's OK when it leaves the stall! */
+                dna.onion_in_vinegar=false;
+               }
+              } else dixi('D',0);
+             } else dixi('D',0);
+             break;
+
+             case r__nottspub: dixi('n',15); break; /* Can't sell to southerners. */
+            default: dixi('D',0); /* Can't buy that. */
+           }
+          }
+          break;
+  case vb_attack: {
+              if ((dna.room==r__brummieroad) &&
+               ((person=='\235') || (thing==crossbow) || (thing==bolt))
+               && (whereis['\235']==dna.room)) 
+              {
+               switch (ord(dna.obj[bolt])+ord(dna.obj[crossbow])*2) {
+                /* 0 = neither, 1 = only bolt, 2 = only crossbow,
+                  3 = both. */
+                case 0: {
+                    dixi('Q',10);
+                    display("(At the very least, don't use your bare hands!)");
+                   }
+                   break;
+                case 1: display(string("Attack him with only a crossbow bolt? Are you ")+
+                    "planning on playing darts?!");
+                    break;
+                case 2: display(string("Come on, Avvy! You're not going to get very far ")+
+                     "with only a crossbow!");
+                     break;
+                case 3: {
+                    dixi('Q',11);
+                    dna.cwytalot_gone=true;
+                    dna.obj[bolt]=false; dna.obj[crossbow]=false;
+                    objectlist;
+                    magics[12].op=nix;
+                    points(7);
+                    tr[2].walkto(2);
+                    tr[2].vanishifstill=true;
+                    tr[2].call_eachstep=false;
+                    whereis['\235']=177;
+                   }
+                   break;
+                default: dixi('Q',10); /* Please try not to be so violent! */
+               }
+              } else dixi('Q',10);
+             }
+             break;
+  case vb_password: if (dna.room!=r__bridge) 
+                dixi('Q',12); else
+               {
+                ok=true;
+                for( ff=1; ff <= length(thats); ff ++)
+                 for( fv=1; fv <= length(words[dna.pass_num+first_password].w); fv ++)
+                  if (words[dna.pass_num+first_password].w[fv] !=
+                          upcase(realwords[ff][fv]))
+                        ok=false;
+                if (ok) 
+                {
+                 if (dna.drawbridge_open!=0) 
+                   display("Contrary to your expectations, the drawbridge fails to close again.");
+                 else
+                 {
+                    points(4);
+                    display("The drawbridge opens!");
+                    set_up_timer(7,procopen_drawbridge,reason_drawbridgefalls);
+                    dna.drawbridge_open=1;
+                 }
+                } else dixi('Q',12);
+               }
+               break;
+   case vb_dir: dir(realwords[2]); break;
+   case vb_die: gameover; break;
+   case vb_score: display(string("Your score is ")+strf(dna.score)+",\3\rout of a "+
+                      "possible 128.\r\rThis gives you a rank of "+rank()+
+                      ".\r\r"+totaltime());
+                      break;
+   case vb_put: putproc(); break;
+   case vb_stand: stand_up(); break;
+
+   case vb_kiss: if (person==pardon)
+                   display("Kiss whom?");
+            else if (personshere()) 
+            switch (person) {
+             case '\226' ... '\256': display("Hey, what kind of a weirdo are you??"); break;
+             case parkata: dixi('U',12); break;
+             case pgeida: dixi('U',13); break;
+             case pwisewoman: dixi('U',14); break;
+             default: dixi('U',5); /* You WHAT? */
+            }
+            break;
+
+   case vb_climb: if (dna.room==r__insidecardiffcastle)  cardiff_climbing();
+             else /* In the wrong room! */
+              display("Not with your head for heights, Avvy!");
+              break;
+
+   case vb_jump: {
+             set_up_timer(1,procjump,reason_jumping);
+             dna.user_moves_avvy=false;
+            }
+            break;
+
+   case vb_highscores: show_highs; break;
+
+   case vb_wake: if (personshere()) 
+              switch (person) {
+               case pardon:case pavalot:case '\0': if (~ avvy_is_awake) 
+                    {
+                     avvy_is_awake=true;
+                     points(1);
+                     avvy_in_bed=true;
+                     show_one(3); /* Picture of Avvy, awake in bed. */
+                     if (teetotal)  dixi('d',13);
+                    } else display("You're already awake, Avvy!");
+                    break;
+               case payles: if (~ ayles_is_awake)  display("You can't seem to wake him by yourself."); break;
+               case pjacques: display(string("Brother Jacques, Brother Jacques, are you asleep?\231\2")+
+                          "Hmmm... that doesn't seem to do any good...");
+                          break;
+               default: display("It's difficult to awaken people who aren't asleep...!");
+              }
+              break;
+
+   case vb_sit: if (dna.room==r__nottspub) 
+           {
+            if (dna.sitting_in_pub) 
+             display("You're already sitting!");
+            else
+            {
+             tr[1].walkto(4); /* Move Avvy to the place, and sit him down. */
+             set_up_timer(1,procavvy_sit_down,reason_sitting_down);
+            }
+           } else
+           {     /* Default doodah. */
+            dusk;
+            hang_around_for_a_while;
+            dawn;
+            display("A few hours later...\20nothing much has happened...");
+           }
+           break;
+
+   case vb_restart: if (ask("Restart game and lose changes?"))  {
+                dusk;
+                newgame;
+                dawn;
+               }
+               break;
+
+  case pardon: display("Hey, a verb would be helpful!"); break;
+
+  case vb_hello: { person_speaks(); display("Hello.\2"); } break;
+  case vb_thanks: { person_speaks(); display("That's OK.\2"); } break;
+  default: display(string('\7')+"Parser bug!");
+ }
+}
+
+void verbopt(char n, string& answer, char& anskey)
+{
+ switch (n) {
+   case vb_exam: { answer="Examine"; anskey='x'; } break; /* the ubiqutous one */
+   /* vb_give isn't dealt with by this procedure, but by ddm__with */
+  case vb_drink: { answer="Drink";   anskey='D'; } break;
+  case vb_wear:  { answer="Wear";    anskey='W'; } break;
+  case vb_ring:  { answer="Ring";    anskey='R'; } break; /* only the bell! */
+  case vb_play:  { answer="Play";    anskey='P'; } break;
+  case vb_eat:   { answer="Eat";     anskey='E'; } break;
+  default:      { answer="? Unknown!"; anskey='?'; }      /* Bug! */
+ }
+}
+
+class unit_acci_initialize {
+  public: unit_acci_initialize();
+};
+static unit_acci_initialize acci_constructor;
+
+unit_acci_initialize::unit_acci_initialize() {
+ weirdword=false;
+}
diff --git a/engines/avalanche/acci.h b/engines/avalanche/acci.h
new file mode 100644
index 0000000..f9d1265
--- /dev/null
+++ b/engines/avalanche/acci.h
@@ -0,0 +1,223 @@
+#ifndef __acci_h__
+#define __acci_h__
+
+
+/* verb codes */
+const char vb_exam = '\1'; const char vb_open = '\2'; const char vb_pause = '\3'; const char vb_get = '\4'; const char vb_drop = '\5';
+const char vb_inv = '\6'; const char vb_talk = '\7'; const char vb_give = '\10'; const char vb_drink = '\11'; const char vb_load = '\12';
+const char vb_save = '\13'; const char vb_pay = '\14'; const char vb_look = '\15'; const char vb_break = '\16'; const char vb_quit = '\17';
+const char vb_sit = '\20'; const char vb_stand = '\21'; const char vb_go = '\22'; const char vb_info = '\23'; const char vb_undress = '\24';
+const char vb_wear = '\25'; const char vb_play = '\26'; const char vb_ring = '\27'; const char vb_help = '\30';
+const char vb_larrypass = '\31'; const char vb_phaon = '\32'; const char vb_boss = '\33'; const char vb_pee = '\34';
+const char vb_cheat = '\35'; const char vb_magic = '\36'; const char vb_restart = '\37'; const char vb_eat = '\40';
+const char vb_listen = '\41'; const char vb_buy = '\42'; const char vb_attack = '\43'; const char vb_password = '\44';
+const char vb_dir = '\45'; const char vb_die = '\46'; const char vb_score = '\47'; const char vb_put = '\50';
+const char vb_kiss = '\51'; const char vb_climb = '\52'; const char vb_jump = '\53'; const char vb_highscores = '\54';
+const char vb_wake = '\55'; const char vb_hello = '\56'; const char vb_thanks = '\57';
+
+const char vb_smartalec = '\371'; const char vb_expletive = '\375';
+
+const char pardon = '\376'; /* =didn't understand / wasn't given. */
+
+struct vocab {
+         byte n; varying_string<11> w;
+};
+
+struct ranktype {
+            word score; varying_string<12> title;
+};
+
+
+const integer nowords = 277; /* how many words does the parser know? */
+const char nowt = '\372';
+const char moved = '\0'; /* This word was moved. (Usually because it was the subject of
+  conversation.) */
+
+const integer first_password = 89; /* Words[first_password] should equal "TIROS". */
+
+const array<1,nowords,vocab> words = 
+
+/* Verbs, 1-49 */
+{{{1, "EXAMINE"},   {1, "READ"},      {1, "XAM"},                  /* short */
+ {2, "OPEN"},      {2, "LEAVE"},     {2, "UNLOCK"},
+ {3, "PAUSE"},     {47, "TA"},            /* Early to avoid Take and Talk. */
+ {4, "TAKE"},      {4, "GET"},       {4, "PICK"},
+ {5, "DROP"},      {6, "INVENTORY"}, {7, "TALK"},
+ {7, "SAY"},       {7, "ASK"},
+ {8, "GIVE"},      {9, "DRINK"},     {9, "IMBIBE"},
+ {9, "DRAIN"},     {10, "LOAD"},      {10, "RESTORE"},
+ {11, "SAVE"},      {12, "BRIBE"},     {12, "PAY"},
+ {13, "LOOK"},      {14, "BREAK"},     {15, "QUIT"},
+ {15, "EXIT"},      {16, "SIT"},       {16, "SLEEP"},
+ {17, "STAND"},
+
+ {18, "GO"},        {19, "INFO"},      {20, "UNDRESS"},
+ {20, "DOFF"},
+ {21, "DRESS"},     {21, "WEAR"},      {21, "DON"},
+ {22, "PLAY"},
+ {22, "STRUM"},     {23, "RING"},      {24, "HELP"},
+ {25, "KENDAL"},    {26, "CAPYBARA"},  {27, "BOSS"},
+ {255,"NINET"},     /* block for NINETY */
+ {28, "URINATE"},   {28, "MINGITE"},   {29, "NINETY"},
+ {30,"ABRACADABRA"},{30, "PLUGH"},     {30, "XYZZY"},
+ {30, "HOCUS"},     {30, "POCUS"},     {30, "IZZY"},
+ {30, "WIZZY"},     {30, "PLOVER"},
+ {30,"MELENKURION"},{30, "ZORTON"},    {30, "BLERBI"},
+ {30, "THURB"},     {30, "SNOEZE"},    {30, "SAMOHT"},
+ {30, "NOSIDE"},    {30, "PHUGGG"},    {30, "KNERL"},
+ {30, "MAGIC"},     {30, "KLAETU"},    {30, "VODEL"},
+ {30, "BONESCROLLS"},{30, "RADOF"},
+
+ {31, "RESTART"},
+ {32, "SWALLOW"},   {32, "EAT"},       {33, "LISTEN"},
+ {33, "HEAR"},      {34, "BUY"},       {34, "PURCHASE"},
+ {34, "ORDER"},     {34, "DEMAND"},
+ {35, "ATTACK"},    {35, "HIT"},       {35, "KILL"},
+ {35, "PUNCH"},     {35, "KICK"},      {35, "SHOOT"},
+ {35, "FIRE"},
+
+ /* Passwords, 36: */
+
+ {36, "TIROS"},     {36, "WORDY"},     {36, "STACK"},
+ {36, "SHADOW"},    {36, "OWL"},       {36, "ACORN"},
+ {36, "DOMESDAY"},  {36, "FLOPPY"},    {36, "DIODE"},
+ {36, "FIELD"},     {36, "COWSLIP"},   {36, "OSBYTE"},
+ {36, "OSCLI"},     {36, "TIMBER"},    {36, "ADVAL"},
+ {36, "NEUTRON"},   {36, "POSITRON"},  {36, "ELECTRON"},
+ {36, "CIRCUIT"},   {36, "AURUM"},     {36, "PETRIFY"},
+ {36, "EBBY"},      {36, "CATAPULT"},  {36, "GAMERS"},
+ {36, "FUDGE"},     {36, "CANDLE"},    {36, "BEEB"},
+ {36, "MICRO"},     {36, "SESAME"},    {36, "LORDSHIP"},
+
+ {37, "DIR"},       {37, "LS"},        {38, "DIE"},
+ {39, "SCORE"},
+ {40, "PUT"},       {40, "INSERT"},    {41, "KISS"},
+ {41, "SNOG"},      {41, "CUDDLE"},    {42, "CLIMB"},
+ {42, "CLAMBER"},   {43, "JUMP"},      {44, "HIGHSCORES"},
+ {44, "HISCORES"},  {45, "WAKEN"},     {45, "AWAKEN"},
+ {46, "HELLO"},     {46, "HI"},        {46, "YO"},
+ {47, "THANKS"},       /* = 47, "ta", which was defined earlier. */
+
+
+/* Nouns - Objects: 50-100. */
+
+ {50, "WINE"},      {50, "BOOZE"},    {50,"NASTY"},
+ {50, "VINEGAR"},   {51, "MONEYBAG"},
+ {51, "BAG"},       {51, "CASH"},     {51,"DOSH"},
+ {51, "WALLET"},
+ {52, "BODKIN"},    {52, "DAGGER"},   {53,"POTION"},
+ {54, "CHASTITY"},  {54, "BELT"},     {55,"BOLT"},
+ {55, "ARROW"},     {55, "DART"},
+ {56, "CROSSBOW"},  {56, "BOW"},      {57,"LUTE"},
+ {58, "PILGRIM"},   {58, "BADGE"},    {59,"MUSHROOMS"},
+ {59, "TOADSTOOLS"},{60, "KEY"},      {61,"BELL"},
+ {62, "PRESCRIPT"}, {62, "SCROLL"},   {62,"MESSAGE"},
+ {63, "PEN"},       {63, "QUILL"},    {64,"INK"},
+ {64, "INKPOT"},    {65, "CLOTHES"},  {66,"HABIT"},
+ {66, "DISGUISE"},  {67, "ONION"},
+
+ {99,"PASSWORD"},
+
+/* Objects from Also are placed between 101 and 131. */
+
+/* Nouns - People - Male, 150-174 */
+ {150, "AVVY"},      {150,"AVALOT"},    {150,"YOURSELF"},
+ {150, "ME"},        {150,"MYSELF"},    {151,"SPLUDWICK"},
+ {151, "THOMAS"},    {151,"ALCHEMIST"}, {151,"CHEMIST"},
+ {152, "CRAPULUS"},  {152,"SERF"},      {152,"SLAVE"},
+ {158, "DU"},      /* <<< Put in early for Baron DU Lustie to save confusion with Duck & Duke.*/
+ {152, "CRAPPY"},    {153,"DUCK"},      {153,"DOCTOR"},
+ {154, "MALAGAUCHE"},
+ {155, "FRIAR"},     {155,"TUCK"},      {156,"ROBIN"},
+ {156, "HOOD"},      {157,"CWYTALOT"},  {157,"GUARD"},
+ {157, "BRIDGEKEEP"},{158,"BARON"},     {158,"LUSTIE"},
+ {159, "DUKE"},      {159,"GRACE"},     {160,"DOGFOOD"},
+ {160, "MINSTREL"},  {161,"TRADER"},    {161,"SHOPKEEPER"},
+ {161,"STALLHOLDER"},
+ {162, "PILGRIM"},   {162,"IBYTHNETH"}, {163,"ABBOT"},
+ {163, "AYLES"},     {164,"PORT"},      {165,"SPURGE"},
+ {166, "JACQUES"},   {166,"SLEEPER"},   {166,"RINGER"},
+
+/* Nouns- People - Female: 175-199 */
+ {175, "WIFE"},      {175,"ARKATA"},    {176,"GEDALODAVA"},
+ {176, "GEIDA"},     {176,"PRINCESS"},  {178,"WISE"},
+ {178, "WITCH"},
+
+/* Pronouns, 200-224 */
+ {200, "HIM"},       {200,"MAN"},       {200,"GUY"},
+ {200, "DUDE"},      {200,"CHAP"},      {200,"FELLOW"},
+ {201, "HER"},       {201,"GIRL"},      {201,"WOMAN"},
+ {202, "IT"},        {202,"THING"},
+
+ {203,"MONK"},       {204,"BARMAN"},    {204,"BARTENDER"},
+
+/* Prepositions, 225-249 */
+ {225, "TO"},        {226,"AT"},        {227,"UP"},
+ {228, "INTO"},      {228,"INSIDE"},    {229,"OFF"},
+ {230, "UP"},        {231,"DOWN"},      {232,"ON"},
+
+
+/* Please, 251 */
+ {251, "PLEASE"},
+
+/* About, 252 */
+ {252, "ABOUT"}, {252, "CONCERNING"},
+
+/* Swear words, 253 */
+       /*              I M P O R T A N T    M E S S A G E
+
+          DO *NOT* READ THE LINES BELOW IF YOU ARE OF A SENSITIVE
+          DISPOSITION. THOMAS IS *NOT* RESPONSIBLE FOR THEM.
+          GOODNESS KNOWS WHO WROTE THEM.
+          READ THEM AT YOUR OWN RISK. BETTER STILL, DON'T READ THEM.
+          WHY ARE YOU SNOOPING AROUND IN MY PROGRAM, ANYWAY? */
+
+ {253, "SHIT"},      {28 ,"PISS"},    {28 ,"PEE"},
+ {253, "FART"},      {253,"FUCK"},    {253,"BALLS"},
+ {253, "BLAST"},     {253,"BUGGER"},  {253,"KNICKERS"},
+ {253, "BLOODY"},    {253,"HELL"},    {253,"DAMN"},
+ {253, "SMEG"},
+   /* and other even ruder words. You didn't read them, did you? Good. */
+
+/* Answer-back smart-alec words, 249 */
+ {249, "YES"},       {249,"NO"},        {249,"BECAUSE"},
+
+/* Noise words, 255 */
+ {255, "THE"},       {255,'A'},         {255,"NOW"},
+ {255, "SOME"},      {255,"AND"},       {255,"THAT"},
+ {255, "POCUS"},     {255,"HIS"},       
+ {255, "THIS"},      {255,"SENTINEL"}}};        /* for "Ken SENT Me" */
+
+const char what[] = "That's not possible!";
+
+const array<1,9,ranktype> ranks = 
+{{{0, "Beginner"},    {10, "Novice"},
+{20, "Improving"},   {35, "Not bad"},
+{50, "Passable"},    {65, "Good"},
+{80, "Experienced"}, {108, "The BEST!"},
+{maxint, "copyright'93"}}};
+
+
+#ifdef __acci_implementation__
+#undef EXTERN
+#define EXTERN
+#endif
+
+EXTERN varying_string<11> thats;
+EXTERN varying_string<20> unknown;
+EXTERN array<1,11,varying_string<20> > realwords;
+EXTERN char verb,person,thing,thing2;
+EXTERN boolean polite;
+#undef EXTERN
+#define EXTERN extern
+
+
+void clearwords();
+void parse();
+void lookaround();
+void opendoor();
+void do_that();
+void verbopt(char n, string& answer, char& anskey);
+void have_a_drink();
+
+#endif
diff --git a/engines/avalanche/also.cpp b/engines/avalanche/also.cpp
new file mode 100644
index 0000000..17853e6
--- /dev/null
+++ b/engines/avalanche/also.cpp
@@ -0,0 +1,1028 @@
+#include "ptoc.h"
+
+
+#include "graph.h"
+/*#include "Rodent.h"*/
+/*#include "Crt.h"*/
+
+/*$R+,V-*/
+
+typedef matrix<0,255,0,15,byte> fonttype;
+
+class fieldtype {
+public:
+             integer x1,y1,x2,y2;
+};
+
+class linetype : public fieldtype {
+public:
+            byte col;
+};
+
+struct pedtype {
+           integer x,y; byte dir;
+};
+
+struct magictype {
+             byte op; /* one of the operations */
+             word data; /* data for them */
+};
+
+const integer numlines = 50; const integer up = 0; const integer right = 1; const integer down = 2; const integer left = 3; const integer ur = 4; const integer dr = 5; const integer dl = 6; const integer ul = 7;
+const integer still = 8;
+
+const integer nay = maxint;
+
+/* Magic commands are */
+
+/*N*/ const integer nix = 0; /* ignore it if this line is touched */
+/*B*/ const integer bounce = 1; /* bounce off this line */
+/*E*/ const integer exclaim = 2; /* put up a chain of scrolls */
+/*T*/ const integer transport = 3; /* enter new room */
+/*U*/ const integer unfinished = 4; /* unfinished connection */
+/*S*/ const integer special = 5; /* special call */
+/*O*/ const integer opendoor = 6; /* slowly opening door. */
+
+integer gd,gm;
+array<1,numlines,linetype> lines;
+array<1,numlines,fieldtype> fields;
+boolean do1;
+byte current;
+string n;
+matrix<0,29,1,2,string> names;
+file<fonttype> f;
+fonttype skinny;
+byte tx,ty;
+matrix<0,79,0,22,char> chars;
+byte cursorflash;
+array<1,15,pedtype> peds;
+array<1,15,magictype> magics;
+array<9,15,magictype> portals;
+varying_string<26> flags;
+string listen;
+
+const graphcursmasktype crosshairs = 
+{ 
+    ((63551,63807,63807,63807,61727,257,897,32765,897,257,61727,63807,63807,63807,63551,65535),
+     (4368,21140,8840,53910,640,640,31868,33026,31868,640,640,53910,8840,21140,4368,0)),
+               7,
+               7};
+
+const graphcursmasktype hook = 
+{ 
+    ((32831,32831,49279,49279,57599,61695,61471,61447,63491,57089,36801,32771,49159,57375,63743,65535),
+     (0,16256,7936,7936,3584,1536,1792,2016,248,28,8220,12344,8160,1792,0,0)),
+               2,
+               9};
+
+const graphcursmasktype tthand = 
+{ 
+    ((62463,57855,57855,57855,57471,49167,32769,0,0,0,0,32768,49152,57344,61441,61443),
+     (3072,4608,4608,4608,4992,12912,21070,36937,36873,36865,32769,16385,8193,4097,2050,4092)),
+               4,
+               0};
+
+string strf(longint x)
+{
+    string q;
+string strf_result;
+;
+ str(x,q); strf_result=q;
+return strf_result;
+}
+
+void glimpse(byte ret)       /* glimpse of screen 3 */
+{
+    char sink;
+;
+ hidemousecursor; setvisualpage(3); setcrtpagenumber(3); showmousecursor;
+ do {; } while (!(~ anymousekeypressed));
+ do {; } while (!anymousekeypressed);
+ hidemousecursor; setvisualpage(ret); setcrtpagenumber(ret); showmousecursor;
+ while (keypressed())  sink=readkey();
+}
+
+void newline(byte t, integer p,integer q,integer r,integer s, byte c)
+{;
+ {
+ linetype& with = lines[t]; 
+ ;
+  x1=p; y1=q; x2=r; y2=s; with.col=c;
+ }
+}
+
+void newfield(byte t, integer p,integer q,integer r,integer s)
+{; {
+                         fieldtype& with = fields[t];  ; with.x1=p; with.y1=q; with.x2=r; with.y2=s; } }
+
+void drawped(byte p)
+{;
+ { pedtype& with = peds[p]; 
+  if (with.dir<177) 
+  {;
+   setcolor(p); circle(with.x,with.y,5); moveto(with.x,with.y);
+   switch (with.dir) {
+    case up:   linerel(0,-5); break;  case down:  linerel(0,5); break;
+    case left: linerel(-7,0); break;  case right: linerel(7,0); break;
+    case ul:   linerel(-7,-5); break; case dl:    linerel(-7, 5); break;
+    case ur:   linerel( 7,-5); break; case dr:    linerel( 7, 5); break;
+   }
+  }}
+}
+
+void drawup()
+{
+    byte fv;
+;
+ cleardevice();
+ for( fv=1; fv <= numlines; fv ++)
+  { linetype& with = lines[fv]; 
+   if (x1!=nay) 
+   {;
+    setcolor(with.col);
+    line(x1,y1,x2,y2);
+   }}
+ for( fv=1; fv <= numlines; fv ++)
+  { fieldtype& with = fields[fv]; 
+   if (with.x1!=nay) 
+   {;
+    setcolor(fv);
+    rectangle(with.x1,with.y1,with.x2,with.y2);
+   }}
+ for( fv=1; fv <= 15; fv ++) drawped(fv);
+}
+
+void addped()
+{
+    byte n,fv;
+;
+ n=0; do { n += 1; } while (!((n==16) || (peds[n].dir==177)));
+ setcrtpagenumber(0); setactivepage(0); setvisualpage(0);
+ drawup(); setgraphicscursor(tthand); showmousecursor;
+ do {
+  if (rightmousekeypressed)  return;
+  if (keypressed())  glimpse(0);
+ } while (!leftmousekeypressed);
+ hidemousecursor;
+ {
+ pedtype& with = peds[n]; 
+ ;
+  with.x=mousex; with.y=mousey;
+ }
+ cleardevice(); setfillstyle(6,9); for( fv=1; fv <= 3; fv ++) bar(200*fv,0,200*fv,200);
+ for( fv=1; fv <= 2; fv ++) bar(0,60*fv,640,60*fv);
+ showmousecursor;
+ do { if (rightmousekeypressed)  return; } while (!leftmousekeypressed);
+ hidemousecursor;
+ { pedtype& with = peds[n]; 
+  switch (((mousex / 200)*10)+(mousey / 60)) {
+   case 0: with.dir=ul; break;   case 10: with.dir=up; break;    case 20: with.dir=ur; break;
+   case 1: with.dir=left; break; case 11: with.dir=still; break; case 21: with.dir=right; break;
+   case 2: with.dir=dl; break;   case 12: with.dir=down; break;  case 22: with.dir=dr; break;
+  }}
+}
+
+void addline(byte ccc)
+{
+    byte fv;
+;
+ do {
+  for( fv=1; fv <= numlines; fv ++)
+   { linetype& with = lines[fv]; 
+    if (x1==nay) 
+    {;
+     x1=fv*17; x2=x1; y1=200; y2=190; with.col=ccc;
+     return; /* bad style! */
+    }}
+ } while (!false);
+}
+
+byte colour()
+{
+    byte fv;
+byte colour_result;
+;
+ setactivepage(0); setvisualpage(0); setcrtpagenumber(0);
+ outtextxy(0,0,"Select a colour, please...");
+ for( fv=1; fv <= 15; fv ++)
+ {;
+  setfillstyle(1,fv);
+  bar(fv*40,27,39+fv*40,200);
+ }
+ showmousecursor;
+ do {
+  if (rightmousekeypressed)  {; hidemousecursor; return colour_result; }
+  if (keypressed())  glimpse(2);
+ } while (!leftmousekeypressed);
+ hidemousecursor;
+ colour_result=getpixel(mousex,mousey); cleardevice();
+return colour_result;
+}
+
+void addfield()
+{
+    byte fv; boolean ok;
+;
+ do {
+  fv=colour();
+  ok=fields[fv].x1==nay;
+  if (! ok)  output << '\7';
+ } while (!ok);
+ {
+ fieldtype& with = fields[fv]; 
+ ;
+  with.x1=300+fv*17; with.x2=with.x1+1; with.y1=200; with.y2=177;
+ }
+}
+
+byte checkline()
+{
+    byte fv,ans;
+byte checkline_result;
+;
+ setgraphicscursor(crosshairs);
+ setcrtpagenumber(0); setactivepage(0); setvisualpage(0); drawup();
+ do {
+  showmousecursor;
+  do {
+   if (rightmousekeypressed)  {; checkline_result=255; return checkline_result; }
+   if (keypressed())  glimpse(0);
+  } while (!leftmousekeypressed);
+  hidemousecursor;
+  setactivepage(1); ans=177;
+  for( fv=1; fv <= numlines; fv ++) /*  */
+  {;
+   { linetype& with = lines[fv]; 
+    if (x1!=nay) 
+    {;
+     setcolor( 9); line(x1,y1,x2,y2);
+     if (getpixel(mousex,mousey)==9)  ans=fv;
+     setcolor( 0); line(x1,y1,x2,y2);
+    }}
+   { fieldtype& with = fields[fv]; 
+    if (with.x1!=nay) 
+    {;
+     setcolor( 9); rectangle(with.x1,with.y1,with.x2,with.y2);
+     if (getpixel(mousex,mousey)==9)  ans=fv+100;
+     setcolor( 0); rectangle(with.x1,with.y1,with.x2,with.y2);
+    }}
+  }
+  setactivepage(0);
+ } while (!(ans!=177));
+ checkline_result=ans;
+return checkline_result;
+}
+
+void chooseside();
+static boolean itsaline; 
+
+static void plotline()
+{;
+ if (itsaline) 
+  { linetype& with = lines[gd]; 
+   if (do1)  line(mousex,mousey,x2,y2); else
+    line(x1,y1,mousex,mousey);}
+ else
+  { fieldtype& with = fields[gd]; 
+   if (do1)  rectangle(mousex,mousey,with.x2,with.y2); else
+    rectangle(with.x1,with.y1,mousex,mousey);}
+}
+
+void chooseside()
+{
+    byte clicol,savelcol;fieldtype current; integer temp;
+;
+ do {
+  gd=checkline(); itsaline=gd<100;
+  if (gd==255)  {; hidemousecursor; return; }
+  if (! itsaline)  gd -= 100;
+  setactivepage(2); setvisualpage(2); cleardevice();
+  setgraphicscursor(tthand); setcrtpagenumber(2);
+  if (itsaline) 
+  {;
+   current=lines[gd];
+   savelcol=lines[gd].col;
+  } else current=fields[gd];
+  {;
+   setcolor(9);
+   if (itsaline)  line(current.x1,current.y1,current.x2,current.y2); else rectangle(current.x1,current.y1,current.x2,current.y2);
+    setcolor(9);
+    setfillstyle(1,red);   bar(current.x1-3,current.y1-3,current.x1+3,current.y1+3);
+    setfillstyle(1,green); bar(current.x2-3,current.y2-3,current.x2+3,current.y2+3);
+   do {; } while (!(~ anymousekeypressed));
+   clicol=177; showmousecursor;
+  do {
+   if (anymousekeypressed) 
+   {;
+    hidemousecursor;
+    clicol=getpixel(mousex,mousey);
+    showmousecursor;
+   }
+   if (rightmousekeypressed) 
+    {; hidemousecursor; return; }
+   if (keypressed())  glimpse(2);
+  } while (!(set::of(red,green, eos).has(clicol)));
+  do1=clicol==red; hidemousecursor;
+  setgraphicscursor(hook); setcrtpagenumber(0);
+  setactivepage(0); setvisualpage(0); setcolor(0);
+  if (itsaline) 
+  {
+                     linetype& with1 = lines[gd];  ; line(current.x1,current.y1,current.x2,current.y2); setcolor(with1.col); } else
+  {
+                     fieldtype& with1 = fields[gd];  ; rectangle(with1.x1,with1.y1,with1.x2,with1.y2); setcolor(gd); }
+  setwritemode(xorput);
+  while (~ anymousekeypressed) 
+  {;
+   plotline();
+   showmousecursor; delay(1); hidemousecursor;
+   plotline();
+   if (rightmousekeypressed)  {; hidemousecursor; return; }
+   if (keypressed())  glimpse(0);
+  }
+  /* update "current" rec */
+  if (do1)  {; current.x1=mousex; current.y1=mousey; }
+   else {; current.x2=mousex; current.y2=mousey; }
+  if (! itsaline) 
+  {;
+   if (current.x1>current.x2)  {; temp=current.x2; current.x2=current.x1; current.x1=temp; }
+   if (current.y1>current.y2)  {; temp=current.y2; current.y2=current.y1; current.y1=temp; }
+  }
+  /* copy "current" to line/field */
+  if (itsaline) 
+   {
+   linetype& with1 = lines[gd]; 
+   ;
+    current.x1=current.x1; current.x2=current.x2; current.y1=current.y1; current.y2=current.y2;
+    with1.col=savelcol;
+   } else fields[gd]=current;
+ }
+ setwritemode(0);
+ } while (!false);
+}
+
+void delped()
+{;
+ setcrtpagenumber(0); setactivepage(0); setvisualpage(0);
+ drawup(); setgraphicscursor(tthand); showmousecursor;
+ do {; } while (!leftmousekeypressed); peds[colour()].dir=177;
+}
+
+byte menu();
+
+static void say(byte y, string x)
+{;
+ setfillstyle(1,y);
+ bar(0,y*17,100,y*17+15); outtextxy(123,y*17,x);
+}
+
+byte menu()
+{
+    byte clicol;
+byte menu_result;
+;
+  setcolor(15); settextstyle(0,0,2); clicol=0; setgraphicscursor(tthand);
+  setvisualpage(2); setactivepage(2); setcrtpagenumber(2); cleardevice();
+  say(3,"Move lines around");
+  say(4,"Add a new line");
+  say(5,"Delete a line");
+  say(6,"Add a ped");
+  say(7,"Delete a ped");
+  say(8,"Add a field");
+  say(10,"Return to Also.");
+  showmousecursor;
+  do {
+   if (leftmousekeypressed) 
+   {;
+    hidemousecursor;
+    clicol=getpixel(mousex,mousey);
+    showmousecursor;
+   }
+   if (rightmousekeypressed)  {; hidemousecursor; return menu_result; }
+   if (keypressed())  glimpse(2);
+  } while (!(clicol>0));
+  do {; } while (!(~ anymousekeypressed));
+  hidemousecursor;
+  menu_result=clicol;
+return menu_result;
+}
+
+void removeline()
+{;
+ gd=checkline(); if (gd==255)  {; hidemousecursor; return; }
+ if (gd>100) 
+  fields[gd-100].x1=nay;
+ else lines[gd].x1=nay;  /* cancels it out */
+ cleardevice(); drawup();
+}
+
+void lino()
+{;
+ resetmouse;
+ do {
+  switch (menu()) {
+   case 3: chooseside(); break;
+   case 4: addline(colour()); break;
+   case 5: removeline(); break;
+   case 6: addped(); break;
+   case 7: delped(); break;
+   case 8: addfield(); break;
+  case 10: return; break;
+  }
+ } while (!false);
+}
+
+void loadscreen()     /* load2 */
+{
+ byte a /*absolute $A000:246560*/;
+ byte bit;
+ untyped_file f;
+;
+ setactivepage(3); setvisualpage(3);
+ assign(f,string("c:\\avalot\\place")+n+".avd"); reset(f,1); seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a,12080);
+ }
+ close(f);
+ setvisualpage(0);
+ outtextxy(0,190,"Look carefully, and then press any key...");
+ setactivepage(0);
+}
+
+void ctrlsout(string& x)          /* Replace real ctrls with caret codes */
+{
+    byte fv; string xx;
+;
+ xx="";
+ for( fv=1; fv <= length(x); fv ++)
+  if (x[fv]>'\37')  xx=xx+x[fv]; else xx=xx+'^'+chr(ord(x[fv])+64);
+ x=xx;
+}
+
+void ctrlsin(string& x)          /* Opposite of ctrlsout */
+{
+    byte fv; string xx; boolean ctrlwas;
+;
+ xx=""; ctrlwas=false;
+ for( fv=1; fv <= length(x); fv ++)
+  if (ctrlwas)    /* last char was a caret */
+   {;
+    xx=xx+chr(ord(upcase(x[fv]))-64);
+    ctrlwas=false;
+   }
+  else
+  {;     /* last char wasn't a caret... */
+   if (x[fv]=='^')  ctrlwas=true; else  /* ...but this one is */
+    xx=xx+x[fv];  /* ...but this one isn't */
+  }
+ x=xx;
+}
+
+void flipover()     /* temp view other screen */
+{
+    char r;
+;
+ setvisualpage(3); r=readkey(); setvisualpage(0);
+}
+
+void plotchar(byte x,byte y, char n)
+{
+    byte fv;
+;
+ if (chars[x][y]==n)  return;
+ for( fv=0; fv <= 15; fv ++)
+  mem[0xa000*y*1200+(fv+3)*80+x]=skinny[ord(n)][fv];
+ chars[x][y]=n;
+}
+
+void cursor()
+{
+    byte fv;
+;
+ cursorflash += 1;
+ switch (cursorflash) {
+  case 1:case 127: for( fv=12; fv <= 14; fv ++)
+          mem[0xa000*ty*1200+(3+fv)*80+tx]=~(mem[0xa000*ty*1200+(3+fv)*80+tx]);
+          break;
+  case 255: cursorflash=0; break;
+ }
+}
+
+void losecursor()
+{;
+ if (cursorflash<127)  {; cursorflash=126; cursor(); }
+ cursorflash=0;
+}
+
+void gwrite(string x)
+{
+    byte fv;
+;
+ for( fv=1; fv <= length(x); fv ++)
+ {;
+  plotchar(tx,ty,x[fv]);
+  tx += 1;
+  if (tx==80)  {; ty += 1; tx=0; }
+ }
+}
+
+string typein(string x)
+{
+      const char marker = '\2';
+    byte p; char r;
+string typein_result;
+;
+ setvisualpage(0); setactivepage(0); cleardevice();
+ settextstyle(0,0,1); setcolor(15);
+ outtextxy( 0,  0,"Press TAB to see the room...");
+ outtextxy( 0, 20,"You may use any of these Control Codes:");
+ outtextxy(30, 30,"Anywhere: ^M = new line, ^P = new scroll, |1 fix to speaker 1.");
+ outtextxy(90, 40,"^B = new bubble");
+ outtextxy(30, 50,"At end of line: ^C = centre line, ^L = left justify.");
+ outtextxy(30, 60,"At end of scroll: ^D = Don't add automatic ^P here.");
+ outtextxy( 0, 80,"(Use by typing in (eg for ^P) ^ then P, not Ctrl-P.)");
+ p=0; ctrlsout(x); fillchar(chars,sizeof(chars),'\40');
+ do {
+  tx=0; ty=6; gwrite(x+'\4'+'\40');
+  tx=(p % 80); ty=(p / 80)+6;
+  while (! keypressed())  {; delay(1); cursor(); } losecursor();
+  r=readkey();
+  switch (r) {
+   case '\10': if (p>0)  {; x=copy(x,1,p-1)+copy(x,p+1,255); p -= 1; } break; /* backspace */
+   case '\11': flipover(); break;
+   case '\40' ... '\377': {; x=copy(x,1,p)+r+copy(x,p+1,255); p += 1; } break;
+   case '\0': switch (readkey()) { /* extd. keystroke */
+        case 'G': p=0; break; /* Home */
+        case 'K': if (p>0)  p -= 1; break; /* left */
+        case 'M': if (p<length(x))  p += 1; break; /* right */
+        case 'H': if (p>80)  p -= 80; break; /* up */
+        case 'P': if (p<length(x)-80)  p += 80; break; /* down */
+        case 'O': p=length(x); break; /* End */
+        case 'S': x=copy(x,1,p)+copy(x,p+2,255); break; /* Del */
+       }
+       break;
+  }
+ } while (!(r=='\15'));
+ ctrlsin(x); typein_result=x;
+return typein_result;
+}
+
+byte typeno(string title)
+{
+ varying_string<2> x; char r; integer e; word p;
+byte typeno_result;
+;
+ cleardevice(); x="000";
+ settextstyle(0,0,3); setcolor(9); outtextxy(0,0,title);
+ setfillstyle(1,0); setcolor(10); fillchar(chars,sizeof(chars),'\40');
+ do {
+  bar(100,100,150,125);
+  outtextxy(100,100,x);
+  do { r=readkey(); } while (!(set::of(range('0','9'),'\33','\15', eos).has(r)));
+  if (r=='\33')  {; typeno_result=255; return typeno_result; }
+  if (r!='\15')  x=string(x[2])+r;
+ } while (!(r=='\15'));
+ val(x,p,e); typeno_result=p;
+return typeno_result;
+}
+
+void showallnames()
+{
+    byte fv; varying_string<2> s; char r;
+;
+ settextstyle(0,0,2); cleardevice(); setcolor(13); outtextxy(0,0,"Descriptions start...");
+ settextstyle(0,0,1); setcolor(7);
+ for( fv=1; fv <= 29; fv ++)
+ {;
+  str(fv,2,s);
+  outtextxy((fv / 15)*320,((fv % 15)*10)+30,s+'='+copy(names[fv][1],0,33));
+ }
+ setcolor(15); outtextxy(500,190,"Press any key...");
+ r=readkey();
+}
+
+void showallassoc();
+
+
+static void saascreen()
+{;
+ settextstyle(0,0,2); cleardevice(); setcolor(10); outtextxy(0,0,"Everything...");
+ settextstyle(0,0,1); setcolor(2);
+ outtextxy(17,20,"(Format: <number> : <start of names> : <start of desc.>)");
+}
+
+void showallassoc()
+{
+    byte fv; varying_string<2> s; char r;
+
+;
+ saascreen();
+ for( fv=1; fv <= 30; fv ++)
+ {;
+  str(fv-1,2,s);
+  outtextxy(0,(((fv-1) % 10)*10)+30,
+   s+':'+copy(names[fv-1][1],1,7)+':'+copy(names[fv-1][2],1,70));
+  if ((fv % 10)==0)  {; r=readkey(); saascreen(); }
+ }
+ setcolor(15); outtextxy(500,190,"Press any key...");
+ r=readkey();
+}
+
+void clear()
+{
+    byte fv;
+;
+ fillchar(names ,sizeof(names ),  '\0');
+ for( fv=1; fv <= numlines; fv ++) {; lines[fv].x1=nay; fields[fv].x1=nay; }
+ fillchar(peds  ,sizeof(peds  ),'\261');
+}
+
+void scramble();
+
+static void scram1(string& x)
+{
+    byte fz;
+;
+ for( fz=1; fz <= length(x); fz ++)
+  x[fz]=chr(ord(x[fz]) ^ 177);
+}
+
+void scramble()     /* Works both ways. */
+{
+    byte fv,ff;
+;
+ for( fv=0; fv <= 29; fv ++)
+  for( ff=1; ff <= 2; ff ++)
+   scram1(names[fv][ff]);
+ scram1(listen);
+ scram1(flags);
+}
+
+void save()
+{
+    string x; untyped_file f; byte minnames,minlines,minpeds,minfields,fv,ff;
+;
+ minnames =0; for( fv=0; fv <= 29; fv ++) if (names[fv][1]!="")     minnames =fv;
+ minlines =0; for( fv=1; fv <= numlines; fv ++)
+                if (lines[fv].x1!=nay)   minlines =fv;
+ minpeds  =0; for( fv=1; fv <= 15; fv ++) if (peds[fv].dir<177)    minpeds  =fv;
+ minfields=0; for( fv=1; fv <= 30; fv ++) if (fields[fv].x1!=nay)  minfields=fv;
+ assign(f,string("c:\\avalot\\also")+n+".avd");
+ rewrite(f,1);
+ x=string("This is an Also .AVD file, which belongs to AVALOT.EXE. Its contents")+
+ '\15'+'\12'+"are subject to copyright, so there. Have fun!"+'\32'+" *Minstrel* ";
+ blockwrite(f,x[1],128);
+ scramble();
+ blockwrite(f,minnames,1);
+ for( fv=0; fv <= minnames; fv ++)
+  for( ff=1; ff <= 2; ff ++)
+   blockwrite(f,names[fv][ff],length(names[fv][ff])+1);
+ blockwrite(f,minlines,1);
+ blockwrite(f,lines,sizeof(lines[1])*minlines);
+ blockwrite(f,minpeds,1);
+ blockwrite(f,peds,sizeof(peds[1])*minpeds);
+ blockwrite(f,minfields,1);
+ blockwrite(f,fields,sizeof(fields[1])*minfields);
+ blockwrite(f,magics,sizeof(magics));
+ blockwrite(f,portals,sizeof(portals));
+ blockwrite(f,flags,sizeof(flags));
+ blockwrite(f,listen[0],1);
+ blockwrite(f,listen[1],length(listen));
+ close(f);
+ scramble();
+}
+
+void load();
+static untyped_file f; 
+
+
+static string nextstring()
+{
+    byte l; string x;
+string nextstring_result;
+;
+ x=""; blockread(f,l,1); blockread(f,x[1],l); x[0]=chr(l); nextstring_result=x;
+return nextstring_result;
+}
+
+void load()
+{
+            byte minnames,minlines,minpeds,minfields; byte ff,fv;
+
+;
+ clear();
+ assign(f,string("c:\\avalot\\also")+n+".avd");
+/*$I-*/ reset(f,1); /*$I+*/ if (ioresult!=0)  return; /* no Also file */
+ seek(f,128); blockread(f,minnames,1);
+ for( fv=0; fv <= minnames; fv ++)
+  for( ff=1; ff <= 2; ff ++)
+   names[fv][ff]=nextstring();
+ blockread(f,minlines,1);
+ blockread(f,lines,sizeof(lines[1])*minlines);
+ blockread(f,minpeds,1);
+ blockread(f,peds,sizeof(peds[1])*minpeds);
+ blockread(f,minfields,1);
+ blockread(f,fields,sizeof(fields[1])*minfields);
+ blockread(f,magics,sizeof(magics));
+ blockread(f,portals,sizeof(portals));
+ blockread(f,flags,sizeof(flags));
+ blockread(f,listen[0],1);
+ blockread(f,listen[1],length(listen));
+ close(f);
+ scramble();
+}
+
+void editmagics();
+const array<1,15,char> codes = "123456789ABCDEF";
+
+static integer y;
+
+
+static void display()
+{
+    byte fv;
+;
+ cleardevice();
+ settextstyle(0,0,2); setcolor(15); outtextxy(0,0,"Magics.");
+ settextstyle(0,0,1);
+ for( fv=1; fv <= 15; fv ++)
+ {;
+  y=23+fv*10;
+  setcolor(fv); outtextxy(100,y,string('$')+codes[fv-1]);
+  {
+  magictype& with = magics[fv]; 
+  ;
+   switch (with.op) {
+    case nix: {; setcolor(8); outtextxy(140,y,"Nix"); } break;
+    case bounce: {; setcolor(10); outtextxy(143,y,"Bounce!"); } break;
+    case exclaim: {;
+              setcolor(14); outtextxy(143,y,string("Exclaim: ")+strf(with.data));
+             }
+             break;
+    case transport: {;
+                setcolor(12);
+                outtextxy(143,y,string("Transport to ")+strf(hi(with.data))+
+                 ", ped "+strf(lo(with.data)));
+               }
+               break;
+    case unfinished: {;
+                 setcolor(15); outtextxy(143,y,"*** UNFINISHED! ***");
+                }
+                break;
+    case special: {;
+              setcolor(6); outtextxy(143,y,string("Special call no. ")+strf(with.data));
+             }
+             break;
+    case opendoor: {;
+               setcolor(11);
+               outtextxy(143,y,string("Opening door to ")+strf(hi(with.data))+
+                ", ped "+strf(lo(with.data)));
+              }
+              break;
+   }
+  }
+ }
+ outtextxy(177,190,"Which do you want to change\? (Esc=Exit) $");
+}
+
+
+
+static word ask(string x)
+{
+    string q; word thomaswashere; integer e;
+word ask_result;
+;
+ cleardevice();
+ setcolor(10); settextstyle(0,0,3); outtextxy(0,100,x);
+ do {
+  input >> q >> NL; val(q,thomaswashere,e);
+ } while (!(e==0)); ask_result=thomaswashere;
+return ask_result;
+}
+
+void editmagics()
+{
+ char r,rr; byte p;
+
+;
+ do {
+  display();
+  do {
+   r=upcase(readkey());
+   if (r=='\33')  return;
+   p=pos(r,codes);  /* which are we editing? */
+  } while (!(p>0)); /* it must BE there... */
+  setcolor(p); cleardevice();
+  outtextxy(177,17,string("Editing magic $")+r+'.');
+  outtextxy(0,30,"New operation ( (N)ix, (B)ounce, (E)xclaim, (T)ransport, (U)nfinished),");
+  outtextxy(30,40,"(S)pecial, (O)pening Door?");
+  do { rr=upcase(readkey()); } while (!(set::of('N','B','E','T','U','S','O','\33', eos).has(rr)));
+  { magictype& with = magics[p]; 
+   switch (rr) {
+    case '\33': return; break; /* cancelling code */
+    case 'N': with.op=nix; break;
+    case 'B': with.op=bounce; break;
+    case 'E': {; with.op=exclaim; with.data=ask("Which scroll?"); } break;
+    case 'T': {; with.op=transport; with.data=ask("Ped no.?")+ask("Whither?")*256; } break;
+    case 'U': with.op=unfinished; break;
+    case 'S': {; with.op=special; with.data=ask("Which call?"); } break;
+    case 'O': {; with.op=opendoor; with.data=ask("Ped no.?")+ask("Whither?")*256; } break;
+   }}
+ } while (!false);
+}
+
+void editportals();
+const array<9,15,char> codes1 = "9ABCDEF";
+
+static integer y2;
+
+
+static void display1()
+{
+    byte fv;
+;
+ cleardevice();
+ settextstyle(0,0,2); setcolor(15); outtextxy(0,0,"Portals.");
+ settextstyle(0,0,1);
+ for( fv=9; fv <= 15; fv ++)
+ {;
+  y2=fv*10-53;
+  setcolor(fv); outtextxy(100,y2,string('$')+codes1[fv-1]);
+  {
+  magictype& with = portals[fv]; 
+  ;
+   switch (with.op) {
+    case nix: {; setcolor(8); outtextxy(140,y2,"Nix"); } break;
+    case exclaim: {;
+              setcolor(14); outtextxy(143,y2,string("Exclaim: ")+strf(with.data));
+             }
+             break;
+    case transport: {;
+                setcolor(12);
+                outtextxy(143,y2,string("Transport to ")+strf(hi(with.data))+
+                 ", ped "+strf(lo(with.data)));
+               }
+               break;
+    case unfinished: {;
+                 setcolor(15); outtextxy(143,y2,"*** UNFINISHED! ***");
+                }
+                break;
+    case special: {;
+              setcolor(6); outtextxy(143,y2,string("Special call no. ")+strf(with.data));
+             }
+             break;
+    case opendoor: {;
+               setcolor(11);
+               outtextxy(143,y2,string("Opening door to ")+strf(hi(with.data))+
+                ", ped "+strf(lo(with.data)));
+              }
+              break;
+   }
+  }
+ }
+ outtextxy(177,190,"Which do you want to change\? (Esc=Exit) $");
+}
+
+
+
+static word ask1(string x)
+{
+    string q; word thomaswashere; integer e;
+word ask1_result;
+;
+ cleardevice();
+ setcolor(10); settextstyle(0,0,3); outtextxy(0,100,x);
+ do {
+  input >> q >> NL; val(q,thomaswashere,e);
+ } while (!(e==0)); ask1_result=thomaswashere;
+return ask1_result;
+}
+
+void editportals()     /* much t'same as editmagics */
+{
+ char r,rr; byte p;
+
+;
+ do {
+  display1();
+  do {
+   r=upcase(readkey());
+   if (r=='\33')  return;
+   p=pos(r,codes1); /* which are we editing? */
+  } while (!(p>0)); /* it must BE there... */
+  p += 8; setcolor(p); cleardevice();
+  outtextxy(177,17,string("Editing portal $")+r+'.');
+  outtextxy(0,30,"New operation ( (N)ix, (E)xclaim, (T)ransport, (U)nfinished),");
+  outtextxy(30,40,"(S)pecial, (O)pening Door?");
+  do { rr=upcase(readkey()); } while (!(set::of('N','E','T','U','S','O','\33', eos).has(rr)));
+  { magictype& with = portals[p]; 
+   switch (rr) {
+    case '\33': return; break; /* cancelling code */
+    case 'N': with.op=nix; break;
+    case 'E': {; with.op=exclaim; with.data=ask1("Which scroll?"); } break;
+    case 'T': {; with.op=transport; with.data=ask1("Ped no.?")+ask1("Whither?")*256; } break;
+    case 'U': with.op=unfinished; break;
+    case 'S': {; with.op=special; with.data=ask1("Which call?"); } break;
+    case 'O': {; with.op=opendoor; with.data=ask1("Ped no.?")+ask1("Whither?")*256; } break;
+   }}
+ } while (!false);
+}
+
+void editflags()
+{
+    char r;
+;
+ cleardevice();
+ settextstyle(0,0,2); setcolor(15); outtextxy(0,0,"Flags.");
+ settextstyle(0,0,1); setcolor(10);
+ outtextxy(100,30,"Press the letter of the flag you want to toggle.");
+ outtextxy(100,40,"Tab = flip screens, Esc/Enter = return to menu.");
+ setcolor(14); setfillstyle(1,0);
+ for( r='A'; r <= 'Z'; r ++)
+  if (pos(r,flags)>0)  outtextxy(ord(r)*20-1223,77,r);
+ do {
+  do { r=upcase(readkey()); } while (!(set::of(range('A','Z'),'\33','\15','\11', eos).has(r)));
+  switch (r) {
+   case RANGE_26('A','Z'): {;
+              if (pos(r,flags)>0) 
+              {;     /* flag is on- switch it off */
+               Delete(flags,pos(r,flags),1);
+               bar(ord(r)*20-1223,77,ord(r)*20-1213,87);
+               sound(1777); delay(7); nosound;
+              } else
+              {;     /* flag is off- switch it on */
+               flags=flags+r;
+               outtextxy(ord(r)*20-1223,77,r);
+               sound(177); delay(7); nosound;
+              }
+             }
+             break;
+   case '\33':case '\15': return; break;
+   case '\11': flipover(); break;
+  }
+ } while (!false);
+}
+
+void alsomenu()
+{
+    char r; byte t;
+;
+ do {
+  setactivepage(0); setvisualpage(0);
+  cleardevice(); setcolor(15); settextstyle(0,0,2);
+  outtextxy(0,0,"Also... Main Menu");
+  settextstyle(0,0,1); setcolor(10);
+  outtextxy(100, 40,"1) Edit the names of an object");
+  outtextxy(100, 50,"2) View all names");
+  outtextxy(100, 60,"3) Edit the description of this object");
+  outtextxy(100, 70,"4) View all associations.");
+  outtextxy(100, 80,"5) Enter Lino mode.");
+  outtextxy(100, 90,"6) Edit magics.");
+  outtextxy(100,100,"7) Edit portals.");
+  outtextxy(100,110,"8) Edit flags.");
+  outtextxy(100,120,"9) Edit listen field.");
+  outtextxy(100,160,"S) Save");
+  outtextxy(100,170,"L) Load");
+  outtextxy( 80,180,"Tab) View other screen");
+  if (current==0)  outtextxy(0,140,"< Main description of room >"); else
+   outtextxy(0,140,string('<')+names[current][1]+'>');
+  do {
+   r=upcase(readkey()); if (r=='\11')  flipover();
+  } while (!(set::of(range('1','9'),'S','L','\0', eos).has(r)));
+  switch (r) {
+   case '1': {;
+         do {
+          t=typeno("Which object\? (0-30)");
+         } while (!((t<30) || (t==255)));
+         if ((t!=255) && (t!=0))  names[t][1]=typein(names[t][1]);
+         current=t;
+        }
+        break;
+   case '2': showallnames(); break;
+   case '3': names[current][2]=typein(names[current][2]); break;
+   case '4': showallassoc(); break;
+   case '5': lino(); break;
+   case '6': editmagics(); break;
+   case '7': editportals(); break;
+   case '8': editflags(); break;
+   case '9': listen=typein(listen); break;
+   case 'S': save(); break;
+   case 'L': load(); break;
+   case '\0': if (readkey()=='\55')  return; break;
+  }
+ } while (!false);
+}
+
+int main(int argc, const char* argv[])
+{pio_initialize(argc, argv);
+;
+ output << "*** ALSO ***" << NL;
+ output << NL;
+ output << "No. of screen to edit?"; input >> n >> NL; load();
+ assign(f,"v:avalot.fnt"); reset(f); f >> skinny; close(f);
+ gd=3; gm=0; initgraph(gd,gm,"c:\\bp\\bgi"); current=0;
+ loadscreen();
+ alsomenu();
+return EXIT_SUCCESS;
+}
diff --git a/engines/avalanche/andexor.cpp b/engines/avalanche/andexor.cpp
new file mode 100644
index 0000000..03cedfd
--- /dev/null
+++ b/engines/avalanche/andexor.cpp
@@ -0,0 +1,122 @@
+#include "ptoc.h"
+
+                 /* Trippancy IV - original file */
+#include "graph.h"
+
+const integer taboo = cyan;
+
+struct adxtype {
+           varying_string<12> name; /* name of character */
+           byte num; /* number of pictures */
+           byte xl,yl; /* x & y lengths of pictures */
+           byte seq; /* how many in one stride */
+           word size; /* the size of all the pictures */
+};
+
+
+integer gd,gm;
+adxtype adx;
+matrix<1,24,0,1,pointer> adxpic;     /* the pictures themselves */
+untyped_file f; string x; byte n;
+
+void load(string nam)
+{
+    byte z;
+ array<1,4,pointer> a;
+ untyped_file f; word s;
+ varying_string<40> xxx;
+ string check;
+
+;
+ assign(f,nam);
+ reset(f,1);
+ blockread(f,xxx,41);
+ blockread(f,check,13);
+ blockread(f,check,31);
+ s=imagesize(0,0,getmaxx(),75);
+ for( z=1; z <= 2; z ++)
+ {;
+  getmem(a[z],s);
+  blockread(f,a[z],s);
+  putimage(0,15+(z-1)*75,a[z],0);
+  freemem(a[z],s);
+ }
+ close(f);
+}
+
+void silhouette()
+{
+    byte x,y,c;
+;
+ setvisualpage(1); setactivepage(1); setfillstyle(1,15);
+ for( gm=0; gm <= 3; gm ++)
+  for( gd=1; gd <= 6; gd ++)
+  {;     /* 26,15 */
+/*   bar((gm div 2)*320+gd*40,20+(gm mod 2)*40,(gm div 2)*320+gd*40+35,(gm mod 2)*40+60); */
+   for( y=1; y <= adx.yl; y ++)
+    for( x=1; x <= adx.xl; x ++)
+    {;
+     setactivepage(0);
+     c=getpixel((gm / 2)*320+gd*40+x,20+(gm % 2)*40+y);
+     setactivepage(1);
+/*     if c<>taboo then putpixel((gm div 2)*320+gd*40+x,20+(gm mod 2)*40+y,0); */
+     if (c==taboo)  putpixel((gm / 2)*320+gd*40+x,20+(gm % 2)*40+y,15);
+    }
+   getmem(adxpic[gm*6+gd][0],adx.size);
+   getimage((gm / 2)*320+gd*40+1,20+(gm % 2)*40+1,
+     (gm / 2)*320+gd*40+adx.xl,20+(gm % 2)*40+adx.yl,
+      adxpic[gm*6+gd][0]);
+  }
+}
+
+void standard()
+{
+    byte x,y,c;
+;
+ setvisualpage(2); setactivepage(2);
+ for( gm=0; gm <= 3; gm ++)
+  for( gd=1; gd <= 6; gd ++)
+  {;     /* 26,15 */
+   for( y=1; y <= adx.yl; y ++)
+    for( x=1; x <= adx.xl; x ++)
+    {;
+     setactivepage(0);
+     c=getpixel((gm / 2)*320+gd*40+x,20+(gm % 2)*40+y);
+     setactivepage(2);
+     if (c!=taboo)  putpixel((gm / 2)*320+gd*40+x,20+(gm % 2)*40+y,c);
+    }
+   getmem(adxpic[gm*6+gd][1],adx.size);
+   getimage((gm / 2)*320+gd*40+1,20+(gm % 2)*40+1,
+     (gm / 2)*320+gd*40+adx.xl,20+(gm % 2)*40+adx.yl,
+      adxpic[gm*6+gd][1]);
+  }
+}
+
+int main(int argc, const char* argv[])
+{pio_initialize(argc, argv);
+;
+ gd=3; gm=0; initgraph(gd,gm,""); fillchar(adxpic,sizeof(adxpic),'\261');
+ load("v:avalots.avd");
+/* getmem(adxpic[1,1,1],adx.size); getimage(40,20,75,60,adxpic[1,1,1]^);
+ putimage(100,100,adxpic[1,1,1]^,0); */
+ {;
+  adx.name="Avalot";
+  adx.num=24; adx.seq=6;
+  adx.xl=32; adx.yl=35; /* 35,40 */
+
+  adx.size=imagesize(40,20,40+adx.xl,60+adx.yl);
+ }
+ silhouette();
+ standard();
+ x=string("Sprite file for Avvy - Trippancy IV. Subject to copyright.")+'\32';
+ assign(f,"v:sprite1.avd");
+ rewrite(f,1);
+ blockwrite(f,x[1],59);
+ blockwrite(f,adx,sizeof(adx));
+ for( gd=1; gd <= adx.num; gd ++)
+  for( gm=0; gm <= 1; gm ++)
+   blockwrite(f,adxpic[gd][gm],adx.size); /* next image */
+ close(f);
+ closegraph();
+return EXIT_SUCCESS;
+}
\ No newline at end of file
diff --git a/engines/avalanche/andexor2.cpp b/engines/avalanche/andexor2.cpp
new file mode 100644
index 0000000..41f27af
--- /dev/null
+++ b/engines/avalanche/andexor2.cpp
@@ -0,0 +1,133 @@
+#include "ptoc.h"
+
+                  /* Trippancy IV - original file */
+#include "graph.h"
+
+const integer taboo = cyan;
+
+struct adxtype {
+           varying_string<12> name; /* name of character */
+           byte num; /* number of pictures */
+           byte xl,yl; /* x & y lengths of pictures */
+           byte seq; /* how many in one stride */
+           word size; /* the size of all the pictures */
+           byte fgc,bgc; /* foreground & background bubble colours */
+};
+
+
+integer gd,gm;
+adxtype adx;
+array<0,1,pointer> adxpic;     /* the pictures themselves */
+untyped_file f; string x; byte n; integer side2; word bigsize;
+
+void load(string n)
+{
+    byte z;
+ array<1,4,pointer> a;
+ untyped_file f; word s;
+ varying_string<40> xxx;
+ string check;
+
+;
+ assign(f,n);
+ reset(f,1);
+ blockread(f,xxx,41);
+ blockread(f,check,13);
+ blockread(f,check,31);
+ s=imagesize(0,0,getmaxx(),75);
+ for( z=1; z <= 2; z ++)
+ {;
+  getmem(a[z],s);
+  blockread(f,a[z],s);
+  putimage(0,15+(z-1)*75,a[z],0);
+  freemem(a[z],s);
+ }
+ close(f);
+}
+
+void silhouette()
+{
+    byte x,y,c;
+;
+ setvisualpage(1); setactivepage(1); setfillstyle(1,15);
+ {;
+  for( gm=0; gm <= 3; gm ++)
+   for( gd=1; gd <= 6; gd ++)
+   {;     /* 26,15 */
+    side2=adx.xl*6;
+    for( y=1; y <= adx.yl; y ++)
+     for( x=1; x <= adx.xl; x ++)
+     {;
+      setactivepage(0);
+      c=getpixel((gm / 2)*320+gd*40+x,20+(gm % 2)*40+y);
+      setactivepage(1);
+      if (c==taboo) 
+       putpixel((gm / 2)*side2+gd*adx.xl+x,20+(gm % 2)*adx.yl+y,15);
+     }
+   }
+  bigsize=imagesize(adx.xl+1,21,adx.xl*13,20+adx.yl*2);
+  getmem(adxpic[0],bigsize);
+  getimage(adx.xl+1,21,adx.xl*13,20+adx.yl*2,adxpic[0]);
+  putimage(adx.xl+1,21,adxpic[0],notput);
+ }
+}
+
+void standard()
+{
+    byte x,y,c;
+;
+ setvisualpage(2); setactivepage(2);
+ {;
+  for( gm=0; gm <= 3; gm ++)
+   for( gd=1; gd <= 6; gd ++)
+   {;     /* 26,15 */
+    for( y=1; y <= adx.yl; y ++)
+     for( x=1; x <= adx.xl; x ++)
+     {;
+      setactivepage(0);
+      c=getpixel((gm / 2)*320+gd*40+x,20+(gm % 2)*40+y);
+      setactivepage(2);
+      if (c!=taboo) 
+       putpixel((gm / 2)*side2+gd*adx.xl+x,20+(gm % 2)*adx.yl+y,c);
+     }
+/*    getmem(adxpic[gm*6+gd,1],adx.size);
+    getimage((gm div 2)*side2+gd*xl+x,20+(gm mod 2)*yl+y,
+       (gm div 2)*side2+gd*xl*2+x,20+(gm mod 2)*yl*2+y,
+       adxpic[gm*6+gd,1]^); */
+  }
+  getmem(adxpic[1],bigsize);
+  getimage(adx.xl+1,21,adx.xl*13,20+adx.yl*2,adxpic[1]);
+  putimage(adx.xl+1,21,adxpic[1],notput);
+ }
+}
+
+int main(int argc, const char* argv[])
+{pio_initialize(argc, argv);
+;
+ gd=3; gm=0; initgraph(gd,gm,""); fillchar(adxpic,sizeof(adxpic),'\261');
+ load("v:avalots.avd");
+ {;
+  adx.name="Avalot";
+  adx.num=24; adx.seq=6;
+  adx.xl=33; adx.yl=35; /* 35,40 */
+  adx.fgc=yellow; adx.bgc=red;
+
+  adx.size=imagesize(40,20,40+adx.xl,60+adx.yl);
+ }
+ silhouette();
+ standard();
+ x=string("Sprite file for Avvy - Trippancy IV. Subject to copyright.")+'\32';
+ assign(f,"v:sprite1.avd");
+ rewrite(f,1);
+ blockwrite(f,x[1],59);
+ blockwrite(f,adx,sizeof(adx));
+ blockwrite(f,bigsize,2);
+ for( gm=0; gm <= 1; gm ++)
+ {;
+  putimage(0,0,adxpic[gm],0);
+  blockwrite(f,adxpic[gm],bigsize);  /* next image */
+ }
+ close(f);
+ closegraph();
+return EXIT_SUCCESS;
+}
\ No newline at end of file
diff --git a/engines/avalanche/andextst.cpp b/engines/avalanche/andextst.cpp
new file mode 100644
index 0000000..8aff717
--- /dev/null
+++ b/engines/avalanche/andextst.cpp
@@ -0,0 +1,64 @@
+#include "ptoc.h"
+
+
+#include "graph.h"
+
+
+typedef matrix<1,24,0,1,pointer> adxtype;
+
+integer gd,gm;
+word s; untyped_file f; byte n,anim,cp,t;
+array<0,0,adxtype> adx;
+array<0,1,pointer> back;
+integer x;
+array<0,1,integer> ox;
+
+void andex(integer x,integer y, byte n,byte num)
+{;
+ putimage(x,y,adx[num][n][0],andput);
+ putimage(x,y,adx[num][n][1],xorput);
+}
+
+void loadadx(byte num, string x)
+{
+    byte n;
+;
+ assign(f,x);
+ reset(f,1); seek(f,59);
+ blockread(f,n,1); /* No. of images... */
+ for( gd=1; gd <= n; gd ++)
+  for( gm=0; gm <= 1; gm ++)
+  {;
+   blockread(f,s,2); /* size of next image... */
+   getmem(adx[num][gd][gm],s);
+   blockread(f,adx[num][gd][gm],s); /* next image */
+  }
+ close(f);
+}
+
+int main(int argc, const char* argv[])
+{pio_initialize(argc, argv);
+;
+ loadadx(0,"d:sprite0.avd");
+ loadadx(1,"d:sprite0.avd");
+ gd=3; gm=0; initgraph(gd,gm,"");
+ for( gd=0; gd <= 1; gd ++)
+ {;
+  setactivepage(gd); setfillstyle(6,1); bar(0,0,640,200);
+  getmem(back[gd],s);
+ }
+ x=0; anim=1; cp=0; t=2; setactivepage(0);
+ do {
+  setactivepage(cp); setvisualpage(1-cp);
+  for( gm=0; gm <= 1; gm ++)
+  {;
+   if (t>0)  t -= 1; else
+    putimage(ox[cp],77,back[cp],copyput);
+   getimage(x,77,x+31,77+35,back[cp]);
+   andex(x,177,anim+6,gm);
+   ox[gm][cp]=x; x += 5;
+  }
+  anim += 1; if (anim==7)  anim=1;cp=1-cp;
+ } while (!false);
+return EXIT_SUCCESS;
+}
\ No newline at end of file
diff --git a/engines/avalanche/arch.cpp b/engines/avalanche/arch.cpp
new file mode 100644
index 0000000..1ff2f1f
--- /dev/null
+++ b/engines/avalanche/arch.cpp
@@ -0,0 +1,122 @@
+#include "ptoc.h"
+
+/*
+  ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
+  Ûß  ÛÛ  Û  Û Ü Û  Ûßß ßÜ   Û      Û  Û  Û  Û  Û ÛÜÛ  ßßßÜ  Û  ÛÛ  Ûßß Û
+  ß   ß ß  ßß   ßß  ßßß   ß  ß      ß  ß  ß ßßß ß  ßß  ßßß   ß  ß ß ßßß ßßß
+
+                 ENID             Edna's manager. */
+
+#define __arch_implementation__
+           /* Loads/ saves files. */
+
+#include "arch.h"
+
+
+/*#include "Dos.h"*/
+#include "scrolls.h"
+
+
+struct ednahead { /* Edna header */
+          /* This header starts at byte offset 177 in the .ASG file. */
+          array<1,9,char> id;     /* signature */
+          word revision; /* EDNA revision, here 2 (1=dna256) */
+          varying_string<50> game; /* Long name, eg Lord Avalot D'Argent */
+          varying_string<15> shortname; /* Short name, eg Avalot */
+          word number; /* Game's code number, here 2 */
+          word ver; /* Version number as integer (eg 1.00 = 100) */
+          varying_string<5> verstr; /* Vernum as string (eg 1.00 = "1.00" */
+          varying_string<12> filename; /* Filename, eg AVALOT.EXE */
+          byte os; /* Saving OS (here 1=DOS. See below for others.) */
+
+          /* Info on this particular game */
+
+          varying_string<8> fn; /* Filename (not extension ('cos that's .ASG)) */
+          byte d,m; /* D, M, Y are the Day, Month & Year this game was... */
+          word y;  /* ...saved on. */
+          varying_string<40> desc; /* Description of game (same as in Avaricius!) */
+          word len; /* Length of DNA (it's not going to be above 65535!) */
+
+          /* Quick reference & miscellaneous */
+
+          word saves; /* no. of times this game has been saved */
+          integer cash; /* contents of your wallet in numerical form */
+          varying_string<20> money; /* ditto in string form (eg 5/-, or 1 denarius)*/
+          word points; /* your score */
+
+          /* DNA values follow, then footer (which is ignored) */
+};
+  /* Possible values of edhead.os:
+     1 = DOS        4 = Mac
+     2 = Windows    5 = Amiga
+     3 = OS/2       6 = ST */
+const string crlf = string('\15')+'\12';
+
+const array<1,177,char> ednafirst = 
+ string("This is an EDNA-based file, saved by a Thorsoft game. Good luck!")+crlf+
+ '\32'+ /* 67 bytes... */
+ crlf+crlf+ /* 71 bytes... */
+ "12345678901234567890123456789012345678901234567890"+
+ "12345678901234567890123456789012345678901234567890"+
+ "123456";
+
+const char months[] = "JanFebMarAprMayJunJulAugSepOctNovDec";
+const string ednaid = string("TT")+'\261'+'\60'+'\1'+'\165'+'\261'+'\231'+'\261';
+
+const integer ttage = 18;
+const char ttwashere[] = "Thomas was here ";
+
+void save(string name)
+{
+ untyped_file f;
+ edhead eh;
+ word groi;
+ string groi2;
+;
+ fillchar(eh,sizeof(eh),'\261'); /* Fill up the edhead */
+
+ dna.saves += 1; /* It's been saved one more time... */
+
+ {;
+
+  /* Info about this program */
+
+  id=ednaid;   /* Edna's signature */
+  revision=2;  /* Second revision of .ASG format */
+  game="Lord Avalot d'Argent";   /* Title of game */
+  shortname="Avalot";
+  number=2;  /* Second Avvy game */
+  ver=100;  /* Version 1.00 */
+  verstr="1.00";  /* ditto */
+  filename="AVALOT.EXE";  /* program's filename */
+  os=1;  /* Saved under DOS */
+
+  /* Info on this particular game */
+
+  fsplit(name,groi2,fn,groi2); /* fn = filename of this game */
+  getdate(d,m,y,groi); /* Day, month & year when the game was saved */
+  desc=roomname;  /* Description of game (same as in Avaricius!) */
+  len=sizeof(dna);  /* Length of DNA (it's not going to be above 65535!) */
+
+  /* Quick reference & miscellaneous */
+
+  saves=dna.saves;  /* no. of times this game has been saved */
+  cash=dna.pence;  /* contents of your wallet in numerical form */
+  money=lsd(); /* ditto in string form (eg 5/-, or 1 denarius)*/
+  points=dna.score;  /* your score */
+ }
+
+ assign(f,name);
+ rewrite(f,1);
+
+ blockwrite(f,ednafirst,177);
+ blockwrite(f,eh,sizeof(eh));
+ blockwrite(f,dna,sizeof(dna));
+
+ for( groi=1; groi <= ttage; groi ++)
+  blockwrite(f,ttwashere,sizeof(ttwashere));
+
+ close(f);
+}
+
+
diff --git a/engines/avalanche/arch.h b/engines/avalanche/arch.h
new file mode 100644
index 0000000..cb0960f
--- /dev/null
+++ b/engines/avalanche/arch.h
@@ -0,0 +1,10 @@
+#ifndef __arch_h__
+#define __arch_h__
+
+
+#include "gyro.h"
+
+
+void save(string name);
+
+#endif
diff --git a/engines/avalanche/avalot9.cpp b/engines/avalanche/avalot9.cpp
new file mode 100644
index 0000000..a439f87
--- /dev/null
+++ b/engines/avalanche/avalot9.cpp
@@ -0,0 +1,114 @@
+#include "ptoc.h"
+
+/*
+  ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
+  Ûß  ÛÛ  Û  Û Ü Û  Ûßß ßÜ   Û      Û  Û  Û  Û  Û ÛÜÛ  ßßßÜ  Û  ÛÛ  Ûßß Û
+  ß   ß ß  ßß   ßß  ßßß   ß  ß      ß  ß  ß ßßß ß  ßß  ßßß   ß  ß ß ßßß ßßß
+
+                 AVALOT           The kernel of the program. */
+
+
+#include "graph.h"
+/*#include "Crt.h"*/
+/*#include "Trip5.h"*/
+/*#include "Gyro.h"*/
+/*#include "Lucerna.h"*/
+/*#include "Scrolls.h"*/
+/*#include "Basher.h"*/
+/*#include "Dropdown.h"*/
+/*#include "Pingo.h"*/
+/*#include "Logger.h"*/
+/*#include "Timeout.h"*/
+/*#include "Celer.h"*/
+/*#include "Enid.h"*/
+/*#include "Incline.h"*/
+/*#include "Closing.h"*/
+/*#include "Visa.h"*/
+
+
+void setup()
+{
+ integer gd,gm;
+
+ checkbreak=false; visible=m_no; to_do=0; lmo=false; resetscroll;
+ Randomize(); setup_vmc; on_virtual;
+ gd=3; gm=0; initgraph(gd,gm,"");
+ holdthedawn=true; dusk;
+ cmp=177; mouse_init;  /*on;*/ dropsok=true; ctrl=ckey; oldjw=177;
+ mousetext=""; c=999; settextjustify(0,0); ddmnow=false; load_digits;
+ cheat=false; cp=0; curpos=1; 
+ quote=true; ledstatus=177; defaultled=2;
+/* TSkellern:=0; { Replace with a more local variable sometime }*/
+ dna.rw=stopped; enid_filename="";   /* undefined. */
+ toolbar; state(2); copy03; lastscore="TJA";
+
+/* for gd:=0 to 1 do
+ begin
+  setactivepage(gd); outtextxy(7,177,chr(48+gd));
+ end;*/
+
+ loadtrip;
+
+ if ((filetoload=="") & (~ reloaded)) 
+  newgame; /* no game was requested- load the default */
+ else {
+  if (~ reloaded)  avvy_background;
+  standard_bar; sprite_run;
+  if (reloaded)  edna_reload; else
+  {     /* Filename given on the command line (or loadfirst) */
+   edna_load(filetoload);
+   if (there_was_a_problem) 
+   {
+    display("So let's start from the beginning instead...");
+    holdthedawn=true; dusk; newgame;
+   }
+  }
+ }
+
+ if (~ reloaded) 
+ {
+  soundfx=~ soundfx; fxtoggle;
+  thinkabout(money,a_thing);
+ }
+
+ get_back_loretta; gm=getpixel(0,0); setcolor(7);
+ holdthedawn=false; dawn; cursoron=false; cursor_on; newspeed;
+
+ if (~ reloaded) 
+   dixi('q',83); /* Info on the game, etc. */
+}
+
+int main(int argc, const char* argv[])
+{
+ pio_initialize(argc, argv);
+ setup();
+
+ do {
+
+  clock;
+  keyboard_link;
+  menu_link;
+  readstick;
+  force_numlock;
+  get_back_loretta;
+  trippancy_link;
+  pics_link;
+  checkclick;
+
+  if (visible==m_virtual)  plot_vmc(mx,my,cp);
+  flip_page; /* <<<! */
+  slowdown;
+  if (visible==m_virtual)  wipe_vmc(cp);
+
+  one_tick;
+
+ } while (!lmo);
+
+ restorecrtmode();
+ if (logging)  close(logfile);
+
+ end_of_program;
+ return EXIT_SUCCESS;
+}
+
+/*  typein; commanded; last:=current; */
diff --git a/engines/avalanche/avbkgrnd.cpp b/engines/avalanche/avbkgrnd.cpp
new file mode 100644
index 0000000..13e6cea
--- /dev/null
+++ b/engines/avalanche/avbkgrnd.cpp
@@ -0,0 +1,88 @@
+#include "ptoc.h"
+
+
+#include "graph.h"
+
+integer gd,gm;
+int main(int argc, const char* argv[])
+{pio_initialize(argc, argv);
+;
+ gd=3; gm=0; initgraph(gd,gm,"c:\\bp\\bgi");
+ /* Screen size: Starts at $A000:$320 (coords 0,10).
+ Length: 12000 (150*80) bytes.
+ If we divide it into sets of 5 lines (400 bytes) each, there are 30.
+ There are 40 words on a line.
+
+ Patterns:
+  4AAA = "AVVY"
+  AAAE
+  EAA4
+  A444
+
+  A4AA = "YAVV"
+  AEAA
+  4EAA
+  4A44 */
+/*
+ asm
+  mov bx,$A000;
+  mov es,bx; { The segment to copy it to... }
+  mov di,$370;  { The offset (10 pixels down, plus 1 offset.) }
+
+  mov cx,10;
+  mov ax,$AA4A; call @sameline; { Print "AVVY" }
+  mov ax,$AEAA; call @sameline;
+  mov ax,$A4EA; call @sameline;
+  mov ax,$44A4; call @sameline;
+
+  mov cx,9;
+  mov ax,$AAA4; call @sameline; { Print "YAVV" }
+  mov ax,$AAEA; call @sameline;
+  mov ax,$AA4E; call @sameline;
+  mov ax,$444A; call @sameline;
+
+  mov ax,$4AAA; call @sameline; { Print "VYAV" }
+  mov ax,$AAAE; call @sameline;
+  mov ax,$EAA4; call @sameline;
+  mov ax,$A444; call @sameline;
+
+  mov ax,$A4AA; call @sameline; { Print "VVYA" }
+  mov ax,$EAAA; call @sameline;
+  mov ax,$4EAA; call @sameline;
+  mov ax,$4A44; call @sameline;
+
+  jmp @the_end;
+
+  { Replicate the same line many times. }
+
+  @sameline:
+   { Requires:
+      what to copy in AX,
+      how many lines in CX, and
+      original offset in DI. }
+   push cx;
+   push di;
+
+   @samelineloop:
+
+    push cx;
+    mov cx,40; { No. of times to repeat it on one line. }
+
+    repz stosw; { Fast word-copying }
+
+    pop cx;
+
+    add di,1200; { The next one will be 16 lines down. }
+
+   loop @samelineloop;
+   pop di;
+   add di,80;
+   pop cx;
+
+   ret;
+
+  @the_end:
+ end;
+*/
+return EXIT_SUCCESS;
+}
diff --git a/engines/avalanche/avmenu.cpp b/engines/avalanche/avmenu.cpp
new file mode 100644
index 0000000..3cfff7d
--- /dev/null
+++ b/engines/avalanche/avmenu.cpp
@@ -0,0 +1,312 @@
+#include "ptoc.h"
+
+
+#include "graph.h"
+/*#include "Crt.h"*/
+/*#include "Tommys.h"*/
+
+typedef matrix<'\0','\377',0,15,byte> fonttype;
+
+fonttype font;
+word storage_seg,storage_ofs;
+byte result;
+string registrant;
+
+void icons()
+{
+ untyped_file f;
+ word gd,gm; byte bit;
+ byte v;
+
+ assign(f,"menu.avd");
+ reset(f,1);
+
+ for( bit=0; bit <= 3; bit ++)
+ {
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  for( gd=70; gd <= 266; gd ++)
+   blockread(f,mem[0xa000*gd*80+6],9);
+
+  for( gd=0; gd <= 32; gd ++)
+  {
+    blockread(f,v,1);
+   for( gm=0; gm <= 5; gm ++)
+    mem[0xa000*73+((70+gd+gm*33)*80)]=v; /* 79 */
+  }
+
+ }
+ close(f);
+
+ bit=getpixel(0,0);
+
+ setfillstyle(1, 7); for( gd=0; gd <= 5; gd ++) bar(114, 73+gd*33,583, 99+gd*33);
+ setfillstyle(1,15); for( gd=0; gd <= 5; gd ++) bar(114, 70+gd*33,583, 72+gd*33);
+ setfillstyle(1, 8); for( gd=0; gd <= 5; gd ++) bar(114,100+gd*33,583,102+gd*33);
+
+}
+
+void load_regi_info();
+
+
+static char decode1(char c)
+{
+    byte b;
+
+  char decode1_result;
+  b=ord(c)-32;
+  decode1_result=chr(( (b & 0xf) << 3) + ((cardinal)(b & 0x70) >> 4));
+  return decode1_result;
+}
+
+
+
+static char decode2(char c)
+{
+  char decode2_result;
+  decode2_result=chr( ((ord(c) & 0xf) << 2) + 0x43);
+  return decode2_result;
+}
+
+
+
+static boolean checker(string proper,string check)
+{
+    byte fv; boolean ok;
+
+  boolean checker_result;
+  ok=true;
+  for( fv=1; fv <= length(proper); fv ++)
+    if ((ord(proper[fv]) & 0xf)!=((cardinal)(ord(check[fv])-0x43) >> 2))
+           ok=false;
+
+  checker_result=ok;
+  return checker_result;
+}
+
+void load_regi_info()
+{
+ text t;
+ byte fv;
+ string x;
+ byte namelen,numlen;
+ string namechk,numchk;
+ string reginum;
+
+
+  /*$I-*/
+  assign(t,"register.dat"); reset(t);
+  /*$I+*/
+
+  if (ioresult!=0) 
+  {
+    registrant="(Unregistered evaluation copy.)";
+    return;
+  }
+
+  for( fv=1; fv <= 53; fv ++) t >> NL;
+  t >> x >> NL;
+  close(t);
+
+  namelen=107-ord(x[1]); numlen=107-ord(x[2]);
+
+  registrant=copy(x,3,namelen);
+  reginum=copy(x,4+namelen,numlen);
+  namechk=copy(x,4+namelen+numlen,namelen);
+  numchk=copy(x,4+namelen+numlen+namelen,numlen);
+
+  for( fv=1; fv <= namelen; fv ++) registrant[fv]=decode1(registrant[fv]);
+  for( fv=1; fv <= numlen; fv ++) reginum[fv]=decode1(reginum[fv]);
+
+  if ((! checker(registrant,namechk)) || (! checker(reginum,numchk)))
+        registrant="\?\"!\? ((.)";
+  else
+   registrant=registrant+" ("+reginum+").";
+
+}
+
+void flesh_colours() {;        /* assembler;
+asm
+  mov ax,$1012;
+  mov bx,21;                 { 21 = light pink (why?) */
+  /* mov cx,1;
+  mov dx,seg    @flesh;
+  mov es,dx;
+  mov dx,offset @flesh;
+  int $10;
+
+  mov dx,seg    @darkflesh;
+  mov es,dx;
+  mov dx,offset @darkflesh;
+  mov bx,5;                 { 5 = dark pink. */
+  /*int $10;
+
+  jmp @TheEnd;
+
+ @flesh:
+  db 56,35,35;
+
+ @darkflesh:
+  db 43,22,22;
+
+ @TheEnd: */
+                     }
+
+void setup()
+{
+ integer gd,gm;
+ file<fonttype> ff;
+
+ if (paramstr(1)!="jsb")  exit(255);
+ checkbreak=false;
+ val(paramstr(2),storage_seg,gd);
+ val(paramstr(3),storage_ofs,gd);
+
+ assign(ff,"avalot.fnt");
+ reset(ff); ff >> font; close(ff);
+
+ gd=3; gm=1; initgraph(gd,gm,"");
+ setvisualpage(1); 
+
+ icons();
+}
+
+void big(word x,word y, string z, boolean notted);
+static word start,image; 
+
+
+static void generate(byte from, boolean& notted)
+{
+    byte fv;
+
+ image=0;
+ for( fv=0; fv <= 7; fv ++)
+  image += (from & (1 << fv)) << fv;
+
+ image += image << 1;
+ image=hi(image)+lo(image)*256;
+ if (notted)  image=~ image;
+}
+
+void big(word x,word y, string z, boolean notted)
+{
+    byte fv,ff;byte bit;
+
+ start=x+y*80;
+
+ for( fv=1; fv <= length(z); fv ++)
+ {
+  for( ff=1; ff <= 12; ff ++)
+  {
+   generate(font[z[fv]][ff+1], notted);
+   for( bit=0; bit <= 2; bit ++)
+   {
+    port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+    memw[0xa000*start+   ff*160]=image;
+    memw[0xa000*start+80+ff*160]=image;
+   }
+  }
+  start += 2;
+ }
+ bit=getpixel(0,0);
+}
+
+void centre(integer y, string z)
+{
+ big(40-(length(z)),y,z,false);
+}
+
+void option(byte which, string what)
+{
+ big(16,41+which*33,string((char)(which+48))+')',true);
+ big(24,41+which*33,what,true);
+}
+
+void invert(integer x1,integer y1,integer x2,integer y2)
+{
+    word s; pointer p;
+
+ s=imagesize(x1,y1,x2,y2);
+ getmem(p,s);
+ getimage(x1,y1,x2,y2,p);
+ putimage(x1,y1,p,4);
+ sound(y1); delay(30);
+ sound(600-y2); delay(20);
+ nosound;  delay(200);
+ putimage(x1,y1,p,0);
+ delay(250);
+}
+
+void wait()
+{
+    word x; char r; boolean pressed;
+
+ x=0; pressed=false;
+ do {
+  setfillstyle(6,15); bar(x  ,330,x-1,337);
+  setfillstyle(1, 0); bar(x-2,330,x-3,337);
+  delay(40); x += 1;
+
+  if (keypressed()) 
+  {
+   r=readkey();
+   if (r=='\0') 
+   {
+    r=readkey(); /* and...? */
+   } else
+   {     /* Not an extended keystroke. */
+    if (set::of(range('1','6'),cspace,cescape,creturn, eos).has(r))  pressed=true;
+   }
+  }
+
+ } while (!((x==640) || pressed));
+
+ if ((r==cspace) || (r==creturn))  r='1';
+ if (r==cescape)  r='6';
+ if (pressed) 
+ {
+  result=ord(r)-48;
+  invert(48,37+result*33,114,69+result*33);
+ } else result=177;
+}
+
+void show_up()
+{
+ setvisualpage(0);
+}
+
+void loadmenu()
+{
+    untyped_file f; byte bit;
+
+ assign(f,"mainmenu.avd");
+ reset(f,1);
+ for( bit=0; bit <= 3; bit ++)
+  {
+   port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+   blockread(f,mem[0xa000*0],59*80);
+  }
+ close(f);
+ bit=getpixel(0,0);
+}
+
+int main(int argc, const char* argv[])
+{
+ pio_initialize(argc, argv);
+ setup();
+ loadmenu();
+ load_regi_info();
+ option(1,"Play the game.");
+ option(2,"Read the background.");
+ option(3,"Preview... perhaps...");
+ option(4,"View the documentation.");
+ option(5,"Registration info.");
+ option(6,"Exit back to DOS.");
+ centre(275,registrant);
+ centre(303,"Make your choice, or wait for the demo.");
+
+ show_up();
+ wait();
+ mem[storage_seg*storage_ofs]=result;
+ closegraph();
+ return EXIT_SUCCESS;
+}
diff --git a/engines/avalanche/avvyans.cpp b/engines/avalanche/avvyans.cpp
new file mode 100644
index 0000000..6875687
--- /dev/null
+++ b/engines/avalanche/avvyans.cpp
@@ -0,0 +1,84 @@
+#include "ptoc.h"
+
+
+#include "graph.h"
+/*#include "Crt.h"*/
+
+integer gd,gm;
+untyped_file f;
+array<1,16000,byte> aa;
+matrix<0,27,0,35,byte> cols;
+text t;
+string x;
+
+int main(int argc, const char* argv[])
+{pio_initialize(argc, argv);
+;
+ gd=3; gm=0; initgraph(gd,gm,"c:\\bp\\bgi");
+ fillchar(cols,sizeof(cols),'\0');
+ assign(f,"v:avvypic.ptx");
+ reset(f,1);
+ blockread(f,aa,filesize(f));
+ close(f);
+ putimage(0,0,aa,0);
+ for( gd=0; gd <= 27; gd ++)
+  for( gm=0; gm <= 34; gm ++)
+   cols[gd][gm+1]=getpixel(gd,gm);
+
+ restorecrtmode();
+/*
+   asm
+      mov ax,$1003
+      mov bl,0
+      int $10
+   end;
+*/
+ for( gm=0; gm <= 17; gm ++)
+  for( gd=0; gd <= 27; gd ++)
+  {;
+   gotoxy(gd+1,gm+1);
+   if (cols[gd][2*gm]==cols[gd][2*gm+1]) 
+   {;
+    textattr=cols[gd][2*gm]; output << 'Û';
+   } else
+    if ((cols[gd][2*gm]>7) && (cols[gd][2*gm+1]<8)) 
+    {;
+     textattr=cols[gd][2*gm]+cols[gd][2*gm+1]*16;
+     output << 'ß';
+    } else
+    {;
+     textattr=cols[gd][2*gm]*16+cols[gd][2*gm+1];
+     if (textattr>blink)  textattr -= blink;
+     output << 'Ü';
+    }
+  }
+  gotoxy(23,5); textattr=red; output << 'ß';
+
+  assign(t,"v:avalot.txt"); reset(t);
+  textattr=9; gm=2;
+  do {
+   gm += 1;
+   t >> x >> NL;
+   gotoxy(30,gm);
+   output << x << NL;
+  } while (!(eof(t)));
+
+  textattr=7; gotoxy(35,2); output << "Back in good old A.D. ";
+  textattr=15; output << "1176"; textattr=7; output << "...";
+  textattr=9; gotoxy(40,4); output << "Lord";
+  gotoxy(67,9); output << "d'Argent";
+  textattr=yellow;
+  gotoxy(37,12); output << "He's back...";
+  gotoxy(47,14); output << "And this time,";
+  gotoxy(52,15); output << "he's wearing tights...";
+  textattr=4;
+  gotoxy(36,17); output << "A Thorsoft of Letchworth game. * Requires EGA";
+  gotoxy(38,18); output << "and HD. * By Mike, Mark and Thomas Thurman.";
+  gotoxy(40,19); output << "Sfx archive- ";
+  textattr=9; output << "Download ";
+  textattr=14; output << "AVLT10.EXE";
+  textattr=9; output << " now!";
+  gotoxy(1,1);
+  input >> NL;
+return EXIT_SUCCESS;
+}
\ No newline at end of file
diff --git a/engines/avalanche/avvyans2.cpp b/engines/avalanche/avvyans2.cpp
new file mode 100644
index 0000000..915a33d
--- /dev/null
+++ b/engines/avalanche/avvyans2.cpp
@@ -0,0 +1,185 @@
+#include "ptoc.h"
+
+
+#include "graph.h"
+/*#include "Crt.h"*/
+/*#include "Ansi.h"*/
+
+integer gd,gm;
+untyped_file f;
+array<1,16000,byte> aa;
+matrix<0,27,0,35,byte> cols;
+text t;
+string x;
+byte n;
+byte spaces;
+byte cfg,cbg; /* Current foreground & background. */
+byte ofg,obg;  /* Old fg & bg. */
+
+void do_spaces()
+{;
+ if (spaces==0)  return;
+ along(spaces);
+ spaces=0;
+}
+
+void finishline();
+static byte wx,wy;
+
+static void jumpto(byte xx)
+{;
+ along(xx-wx);
+}
+
+void finishline()
+{;
+ wx=29-spaces; wy=gm+1;
+ switch (wy) {
+  case 1: {;
+      sgr(7); jumpto(35); output << "Back in good old A.D. ";
+      sgr(15); output << "1189"; sgr(7); output << "..." << NL; cfg=7;
+     }
+     break;
+  case RANGE_5(3,7): {;
+         t >> x >> NL;
+         while (x[length(x)]=='\40')  x[0] -= 1;
+         if (x!="") 
+         {;
+          jumpto(30);
+          sgr(9);
+          spaces=0;
+          while (x!="") 
+          {;
+           if (x[1]==' ') 
+            spaces += 1;
+           else
+           {;
+            do_spaces();
+            output << x[1];
+           }
+           Delete(x,1,1);
+          }
+          if (wy==7)  close(t);
+          output << NL;
+         }
+        }
+        break;
+  case 8: {;
+      jumpto(67); sgr(9); output << "d'Argent" << NL; cfg=9;
+     }
+     break;
+  case 11: {;
+       jumpto(37); sgr(14); output << "He's back..." << NL;
+      }
+      break;
+  case 13: {;
+       jumpto(47); sgr(14); output << "And this time," << NL;
+      }
+      break;
+  case 14: {;
+       jumpto(52); sgr(14); output << "he's wearing tights..." << NL;
+      }
+      break;
+  case 16: {;
+       jumpto(35); sgr(4);
+       output << "A Thorsoft of Letchworth game. * Requires EGA" << NL;
+      }
+      break;
+  case 17: {;
+       jumpto(37); sgr(4);
+       output << "and HD. * By Mike, Mark and Thomas Thurman." << NL;
+      }
+      break;
+  case 18: {;
+       jumpto(39);
+       sgr( 4); output << "Sfx archive- ";
+       sgr( 9); output << "Download ";
+       sgr(14); output << "AVLT10.EXE";
+       sgr( 9); output << " now!";
+      }
+      break;
+  default: output << NL;
+ }
+}
+
+int main(int argc, const char* argv[])
+{pio_initialize(argc, argv);
+;
+ gd=3; gm=0; initgraph(gd,gm,"c:\\bp\\bgi");
+ fillchar(cols,sizeof(cols),'\0');
+ assign(f,"v:avvypic.ptx");
+ reset(f,1);
+ blockread(f,aa,filesize(f));
+ close(f);
+ putimage(0,0,aa,0);
+ for( gd=0; gd <= 27; gd ++)
+  for( gm=0; gm <= 34; gm ++)
+   cols[gd][gm+1]=getpixel(gd,gm);
+
+ restorecrtmode();
+
+ assign(output,"v:avalot.ans"); rewrite(output); normal; ed;
+/* assign(output,''); rewrite(output); normal; ed;*/
+ assign(t,"v:avalot.txt"); reset(t);
+
+ for( gm=0; gm <= 17; gm ++)
+ {;
+  spaces=0;
+  for( gd=0; gd <= 27; gd ++)
+  {;
+   if ((gd==22) && (gm==4)) 
+   {;
+    do_spaces();
+    sgr(red); output << 'ß';
+   } else
+   {;
+    if (cols[gd][2*gm]==cols[gd][2*gm+1]) 
+    {;
+     if (cols[gd][2*gm]==0) 
+      spaces += 1; /* a blank space */
+     else {;
+      do_spaces();
+
+      if (cfg==cols[gd][2*gm])  output << 'Û'; else
+       if (cbg==cols[gd][2*gm])  output << ' '; else
+       {;
+        sgr((cols[gd][2*gm])+(cbg*16));
+        cfg=cols[gd][2*gm];
+        output << 'Û';
+       }
+     }
+    } else
+     if ((cols[gd][2*gm]>7) && (cols[gd][2*gm+1]<8)) 
+     {;
+      do_spaces();
+      sgr(cols[gd][2*gm]+cols[gd][2*gm+1]*16);
+      cfg=cols[gd][2*gm]; cbg=cols[gd][2*gm+1]*16;
+      output << 'ß';
+     } else
+     {;
+      do_spaces();
+
+      ofg=cfg; obg=cbg;
+      cbg=cols[gd][2*gm]; cfg=cols[gd][2*gm+1];
+
+      if ((cbg==ofg) && (cfg==obg)) 
+      {;
+       n=cfg*16+cbg;
+       if (n>128)  n -= 128;
+       output << 'ß';
+      } else
+      {;
+       n=cbg*16+cfg;
+       if (n>128)  n -= 128;
+       if ((cfg!=ofg) || (cbg!=obg))  sgr(n);
+       output << 'Ü';
+      }
+
+     }
+    }
+   } finishline();
+  }
+ output << NL;
+ normal;
+return EXIT_SUCCESS;
+}
\ No newline at end of file
diff --git a/engines/avalanche/avvymonk.cpp b/engines/avalanche/avvymonk.cpp
new file mode 100644
index 0000000..5a4b70c
--- /dev/null
+++ b/engines/avalanche/avvymonk.cpp
@@ -0,0 +1,72 @@
+#include "ptoc.h"
+
+
+#include "graph.h"
+
+integer gd,gm;
+byte z;
+array<1,4,pointer> a;
+untyped_file f; word s;
+string check;
+integer x,y;
+void savesc()
+{
+    varying_string<40> adf; untyped_file f; byte z; array<1,2,pointer> c; word s;
+varying_string<14> nam; varying_string<30> screenname;
+;
+ nam="v:avvymonk.avd";
+ adf=string("aved as a stuff file, so there! TJAT.")+'\15'+'\12'+'\32';
+ adf[0]='S';
+ screenname="Avalot in a monk's costume";
+ assign(f,nam); /* not scrambled */
+ rewrite(f,1);
+ blockwrite(f,adf,41);
+ blockwrite(f,nam,13);
+ blockwrite(f,screenname,31);
+ s=imagesize(0,0,getmaxx(),75);
+ for( z=1; z <= 2; z ++)
+ {;
+  getmem(c[z],s);
+  getimage(0,15+(z-1)*75,getmaxx(),15+(z)*75,c[z]);
+  blockwrite(f,c[z],s);
+  freemem(c[z],s);
+ }
+}
+void loadscreen(string nam)
+{;
+ assign(f,nam);
+ reset(f,1);
+ blockread(f,check,41);
+ blockread(f,check,13);
+ blockread(f,check,31);
+ s=imagesize(0,0,getmaxx(),75);
+ for( z=1; z <= 2; z ++)
+ {;
+  getmem(a[z],s);
+  blockread(f,a[z],s);
+  setactivepage(0);
+  putimage(0,15+(z-1)*75,a[z],0);
+  freemem(a[z],s);
+ }
+ close(f);
+}
+int main(int argc, const char* argv[])
+{pio_initialize(argc, argv);
+;
+ gd=3; gm=0;
+ x=0; y=0;
+ initgraph(gd,gm,"o:");
+ loadscreen("v:legion.avd");
+ while (y<100) 
+ {;
+  switch (getpixel(x,y)) {
+   case 7: putpixel(x,y,0); break;
+   case 8: putpixel(x,y,0); break;
+   case 9: putpixel(x,y,15); break;
+  }
+  x += 1;
+  if (x>640)  {; y += 1; x=0; }
+ }
+ savesc();
+return EXIT_SUCCESS;
+}
\ No newline at end of file
diff --git a/engines/avalanche/bakchunk.cpp b/engines/avalanche/bakchunk.cpp
new file mode 100644
index 0000000..5cea62d
--- /dev/null
+++ b/engines/avalanche/bakchunk.cpp
@@ -0,0 +1,28 @@
+#include "ptoc.h"
+
+
+#include "graph.h"
+/*#include "Celer.h"*/
+/*#include "Lucerna.h"*/
+
+integer gd,gm;
+int main(int argc, const char* argv[])
+{
+ pio_initialize(argc, argv);
+ gd=3; gm=0; initgraph(gd,gm,"");
+ setvisualpage(3);
+ load_chunks('1');
+
+ for( gd=0; gd <= num_chunks; gd ++)
+  show_one_at(gd,0,gd*40);
+
+ mblit(0,0,79,200,3,0);
+
+ gd=getpixel(0,0);
+ setvisualpage(0); setactivepage(0);
+
+ settextstyle(0,0,4); setcolor(15);
+ outtextxy(100,50,"Chunk1");
+ input >> NL;
+ return EXIT_SUCCESS;
+}
\ No newline at end of file
diff --git a/engines/avalanche/basher.cpp b/engines/avalanche/basher.cpp
new file mode 100644
index 0000000..56cfcca
--- /dev/null
+++ b/engines/avalanche/basher.cpp
@@ -0,0 +1,385 @@
+#include "ptoc.h"
+
+/*
+  ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
+  Ûß  ÛÛ  Û  Û Ü Û  Ûßß ßÜ   Û      Û  Û  Û  Û  Û ÛÜÛ  ßßßÜ  Û  ÛÛ  Ûßß Û
+  ß   ß ß  ßß   ßß  ßßß   ß  ß      ß  ß  ß ßßß ß  ßß  ßßß   ß  ß ß ßßß ßßß
+
+                 BASHER           Handles the keyboard. */
+
+#define __basher_implementation__
+
+
+ /* Note: this unit can record keystrokes, for the demo. If you want it
+   to do this, define the o.c.c. RECORD. Setting gyro.demo to True will
+   cause them to be played back. */
+
+#include "basher.h"
+
+
+#include "enhanced.h"
+#include "lucerna.h"
+#include "Graph.h"
+#include "scrolls.h"
+#include "acci.h"
+#include "trip5.h"
+#include "pingo.h"
+#include "dropdown.h"
+#include "logger.h"
+#include "Sticks.h"
+#include "enid.h"
+
+
+boolean entering_filename;
+byte left_margin;
+
+void plottext()
+{
+      const array<0,2,byte> p = {{0,1,3}};
+    byte x,y,n;
+
+ x=0; if (mouse_near_text())  super_off();
+ cursor_off();
+ for( n=0; n <= 2; n ++)
+  for( y=0; y <= 7; y ++)
+  {
+   for( x=1; x <= length(current); x ++)
+    mem[0xa000*p[n]*pagetop+12882+y*80+x]=little[current[x]][y];
+   fillchar(mem[0xa000*p[n]*pagetop+12883+y*80+x],77-x,'\0');
+  }
+ cursor_on();
+ super_on();
+}
+
+void wipetext()
+{
+      const array<0,2,byte> n = {{0,1,3}};
+    byte y,p;
+
+ if (mouse_near_text())  super_off();
+ cursor_off();
+ for( y=0; y <= 7; y ++)
+  for( p=0; p <= 2; p ++)
+   fillchar(mem[0xa000*n[p]*pagetop+12883+y*80],77,'\0');
+ quote=true; curpos=1; cursor_on();
+ super_on();
+}
+
+/*procedure cursor;
+begin
+ if curflash=0 then
+ begin
+  if mouse_near_text then Super_Off;
+  cursoron:=not cursoron;
+  mem[$A000*13442+curpos]:=not mem[$A000*13442+curpos];
+  mem[$A000*pagetop+13442+curpos]:=not mem[$A000*pagetop+13442+curpos];
+  curflash:=17;
+  Super_On;
+ end else dec(curflash);
+end;*/
+
+void do_cursor()
+{
+ bytefield bf;
+ byte fv;
+
+ mem[0xac00*13442+curpos]=~ mem[0xac00*13442+curpos];
+ {
+  bf.x1=curpos+1; bf.x2=curpos+2; bf.y1=168; bf.y2=168;
+ }
+ for( fv=0; fv <= 1; fv ++) getset[fv].remember(bf);
+}
+
+void cursor_on()
+{
+ if (cursoron)  return;
+ do_cursor(); cursoron=true;
+}
+
+void cursor_off()
+{
+ if (! cursoron)  return;
+ do_cursor(); cursoron=false;
+}
+
+
+void get_demorec()
+{
+ demofile >> demo_rec;
+ inchar=demo_rec.key;
+   extd=demo_rec.extd;
+   demo_rec.delay -= 1;
+}
+
+#ifdef RECORD
+  void record_one()
+  {
+   demo_rec.delay=count;
+   demo_rec.key=inchar;
+   demo_rec.extd=extd;
+
+   demofile << demo_rec;
+   count=0;
+  }
+#endif
+/*
+procedure storeline(whatwhat:string);
+var
+ fv:byte;
+ what:string[77];
+ ok:boolean;
+
+  function upline(x:string):string;
+  var fv:byte; n:string[77];
+  begin
+   for fv:=1 to length(x) do n[fv]:=upcase(x[fv]);
+   n[0]:=x[0]; upline:=n;
+  end;
+begin
+
+ what:=upline(whatwhat); ok:=false;
+ for fv:=1 to 20 do
+  if what=upline(previous^[fv]) then
+  begin { it already exists, in string "fv" }
+   move(previous^[fv+1],previous^[fv],(20-fv)*78);
+   previous^[20]:=whatwhat; ok:=true;
+  end;
+ if ok then exit;
+ { it's not on the list, so add it }
+ move(previous^[2],previous^[1],1482); { shove up }
+ previous^[20]:=whatwhat;
+end;
+*/
+void typein();
+
+static char firstchar(string x) { char firstchar_result;
+                                         firstchar_result=x[1]; return firstchar_result;
+                                }
+
+
+static void try_dd() /* This asks the Parsekey proc in Dropdown if it knows it. */
+{
+ parsekey(inchar,extd);
+}
+
+void typein()
+{
+    byte w;
+
+ inkey();
+ #ifdef RECORD record_one(); #endif
+
+ switch (inchar) {
+  case RANGE_15('\40','\56'):case '\60' ... '\337':case '\341' ... '\377': if (ddm_o.menunow) 
+             {
+              parsekey(inchar,extd);
+             } else
+             {
+              if (length(current)<76) 
+              {
+               if ((inchar=='"') || (inchar=='`')) 
+               {
+                if (quote)  inchar='`'; else inchar='"';
+                quote=! quote;    /* Quote- Unquote... */
+               }
+               insert(inchar,current,curpos);
+               curpos += 1;
+               plottext();
+              } else blip();
+             }
+             break;
+  case '\10': if (! ddm_o.menunow) 
+      {
+       if (curpos>left_margin) 
+       {
+        curpos -= 1;
+        if (set::of('"','`', eos).has(current[curpos]))  quote=! quote;
+        Delete(current,curpos,1);
+        plottext();
+       } else blip();
+      }
+      break;
+  case '\0':case '\340': {
+       switch (extd) {
+              /* Function keys: */
+        case cf1: callverb(vb_help); break; /* f1 - help (obviously) */
+        case cf2: fxtoggle(); break; /* f2 - sound */
+        case ccf2:case cf11: { clearwords(); callverb(vb_save); } break; /* ^f2 - save */
+        case cf3: if (length(current)<length(/*previous^[20]*/last))  /* f3 - rec last */
+             {
+              current=current+copy( /*previous^[20]*/last,length(current)+1,255);
+              curpos=length(current)+1;
+              plottext();
+             }
+             break;
+        case ccf3:case cf12: { clearwords(); callverb(vb_load); } break; /* ^f3 - load */
+        case cf4: callverb(vb_restart); break; /* f4 - restart game */
+        case cf5: {
+                person=pardon; thing=pardon;
+                callverb(firstchar(f5_does())); /* f5 - get up/ whatever */
+             }
+             break;
+        case cf6: callverb(vb_pause); break; /* f6 - pause */
+        case cf7: callverb(vb_open); break; /* f7 - open door */
+        case cf8: callverb(vb_look); break; /* f8 - look */
+        case cf9: callverb(vb_score); break; /* f9 - score */
+        case ccf7: major_redraw(); break; /* ^f7 - open door */
+        case cf10:case c_ax:case caf4: {
+                      #ifdef RECORD
+                       display("Hi. You have just finished recording. GIED.");
+                       close(demofile); exit(0);
+                      #endif
+                       callverb(vb_quit); /* f10, alt-X, alt-f4 - quit */
+                     }
+                     break;
+        case ccf5: back_to_bootstrap(2); break; /* ^f5 - Dos shell. */
+        case csf10: callverb(vb_info); break; /* sf10 - version */
+
+        case c_ab: callverb(vb_boss); break; /* alt-B */
+        case c_ad: display("Wrong game!"); break; /* alt-D */
+        case ccleft: if (curpos>left_margin) 
+              { cursor_off(); curpos -= 1; cursor_on(); }
+              break;                                         /* ^left */
+        case ccright: if (curpos<=length(current))  /* ^right */
+              { cursor_off(); curpos += 1; cursor_on(); }
+              break;
+        case cchome: { cursor_off(); curpos=1; cursor_on(); } break; /* ^home */
+        case ccend: { cursor_off(); curpos=length(current)+1; cursor_on(); } break; /* ^end */
+        case c_ar: oh=177; break; /* alt-R = repeater (re-chime) */
+        case cup:case cdown:case cleft:case cright:case cpgup:case cpgdn:case chome:case cend: if (ddm_o.menunow)  try_dd();
+              else tripkey(extd);
+              break;              /* Up/Down/Left/Right/PgUp/PgDn */
+        case cnum5: tripkey(extd); break; /* Numeric 5 */
+        case cdel: if (! ddm_o.menunow) 
+             {
+              if (curpos<=length(current)) 
+              {
+               if (set::of('"','`', eos).has(current[curpos]))  quote=! quote;
+               Delete(current,curpos,1);
+               plottext();
+              } else blip();
+             }
+             break;
+        default: try_dd();
+       }
+      }
+      break;
+  case cescape:case '/': if (ddm_o.menunow)  /* Escape */
+           { ddm_o.wipe(); } else
+            if (entering_filename) 
+              { normal_edit(); wipetext(); } else
+                ddm_m.getcertain(ddm_o.menunum);
+                break;
+  case creturn: if (ddm_o.menunow)  try_dd(); /* Return */
+       else {
+        log_command(current);
+        if (entering_filename) 
+        {
+          edna_save(copy(current,24,255));
+          normal_edit(); wipetext();
+        } else
+        {
+          if (current!="")  last=current;
+          parse(); do_that();
+          if (! entering_filename) 
+          {
+            current="";
+            wipetext();
+          }
+        }
+       }
+       break;
+  case '\11': callverb(vb_inv); break; /* Ctrl-I= inventory */
+  case '\7': errorled(); break;
+  case '\25': {
+       current="";
+       wipetext();
+      }
+      break;
+
+  case '\27': { tr[1].xs=walk; newspeed(); } break;
+  case '\22': { tr[1].xs=run;  newspeed(); } break;
+
+  case '\2': bosskey(); break;
+  case '\12': ctrl=cjoy; break; /* Joystick */
+  case '\13': ctrl=ckey; break; /* Keyboard */
+  case '\3': callverb(vb_quit); break; /* Ctrl-C= request to quit */
+
+ }
+ showrw();
+
+ if (demo)  get_demorec();
+}
+
+/*        'x'..'z': begin setvisualpage(ord(extd)-63); write(#7); inkey; end;
+        '': begin setvisualpage(0); write(#7); inkey; end;*/
+
+void keyboard_link()
+{
+ state(defaultled); /* if defaultled=1 then on; { For the menus }*/
+ joykeys(); /* Test joystick buttons- I know that's not keyboard. */
+
+ if (demo) 
+ {
+  if (keypressede())  exit(0);
+  if (demo_rec.delay>0) 
+   demo_rec.delay -= 1;
+  else typein();
+  return;
+ }
+
+ #ifdef RECORD count += 1;   #endif
+
+ if (! keypressede())  return;
+ if (keyboardclick)  click();
+ typein();
+}
+
+boolean demo_ready()
+{
+ boolean demo_ready_result;
+ if (demo_rec.delay>0) 
+ {
+  slowdown();
+  demo_rec.delay -= 1;
+ }
+ demo_ready_result=demo_rec.delay==0;
+ return demo_ready_result;
+}
+
+void filename_edit()
+{
+ entering_filename=true;
+ current="Filename\? (Esc=cancel):";
+ left_margin=24; curpos=24;
+ plottext();
+}
+
+void normal_edit()
+{
+ entering_filename=false;
+ current="";
+ left_margin=1; curpos=1;
+}
+
+class unit_basher_initialize {
+  public: unit_basher_initialize();
+};
+static unit_basher_initialize basher_constructor;
+
+unit_basher_initialize::unit_basher_initialize() {
+/* new(previous);*/ last=""; normal_edit();
+
+ if (demo) 
+ {
+  assign(demofile,"demo.avd");
+  reset(demofile);
+ }
+
+ #ifdef RECORD
+  count=0;
+  assign(demofile,"demo.avd");
+  rewrite(demofile);
+ #endif
+
+}
diff --git a/engines/avalanche/basher.h b/engines/avalanche/basher.h
new file mode 100644
index 0000000..1afecae
--- /dev/null
+++ b/engines/avalanche/basher.h
@@ -0,0 +1,40 @@
+#ifndef __basher_h__
+#define __basher_h__
+
+
+#include "gyro.h"
+/*#include "Tommys.h"*/
+
+
+#ifdef RECORD
+
+#ifdef __basher_implementation__
+#undef EXTERN
+#define EXTERN
+#endif
+
+EXTERN word count;
+#undef EXTERN
+#define EXTERN extern
+
+#endif
+
+ void plottext();
+
+ void keyboard_link();
+
+ void cursor_on();
+
+ void get_demorec();
+
+ boolean demo_ready();
+
+ void cursor_off();
+
+ void filename_edit();
+ void normal_edit();
+#ifdef RECORD
+  void record_one();
+#endif
+
+#endif
diff --git a/engines/avalanche/bootstrp.cpp b/engines/avalanche/bootstrp.cpp
new file mode 100644
index 0000000..a903679
--- /dev/null
+++ b/engines/avalanche/bootstrp.cpp
@@ -0,0 +1,349 @@
+#include "ptoc.h"
+
+
+/*#include "Dos.h"*/
+
+
+/*$M 8192,0,$6000, S-*/
+
+enum elm {normal, musical, elmpoyten, regi, last_elm};
+
+const integer run_shootemup = 1;
+const integer run_dosshell = 2;
+const integer run_ghostroom = 3;
+const integer run_golden = 4;
+
+const array<false,true,varying_string<2> > runcodes = {{"et","Go"}};
+
+const integer reset_ = 0;
+
+const boolean jsb = true;  const boolean no_jsb = false;
+const boolean bflight = true; const boolean no_bflight = false;
+
+
+struct {
+          byte operation;
+          word skellern;
+          array<1,10000,byte> contents;
+} storage;
+
+string arguments,demo_args,args_with_no_filename;
+
+boolean first_time;
+
+byte original_mode;
+pointer old_1c;
+
+string segofs;
+
+boolean zoomy;
+
+longint soundcard,speed,baseaddr,irq,dma;
+
+void cursor_off()     /*assembler; */
+{;
+/* asm
+ mov ah,01; { Change cursor size. */
+/* mov cx,8224; { CH & CL are now 32. */
+/* int $10;  { Call the Bios */
+
+}    /* That's all. */
+
+void cursor_on()     /*assembler; */
+{;
+/*
+asm
+ mov ah,01; { Change cursor size. */
+/* mov ch,5;  { Top line is 5. */
+/* mov cl,7;  { Bottom line is 7. */
+/* int $10;   { Call the Bios. */
+
+}
+
+void quit()
+{
+ cursor_on();
+ exit(0);
+}
+
+string strf(longint x)
+{
+    string q;
+string strf_result;
+;
+ str(x,q); strf_result=q;
+return strf_result;
+}
+
+string command_com()
+{
+    string temp;
+
+ string command_com_result;
+ temp=getenv("comspec");
+ if (temp=="") 
+  output << "avvy_bootstrap: COMSPEC not defined, => cannot run Dos shell." << NL;
+ command_com_result=temp;
+ return command_com_result;
+}
+
+void explain(byte error)
+{
+ output << " (";
+ switch (error) {
+  case 2: output << "it's not there"; break;
+  case 8: output << "out of memory"; break;
+  default: output << "error " << error;
+ }
+ output << ")." << NL;
+}
+
+/*$F+*/
+
+void b_flight()     /*interrupt;*/
+{
+ storage.skellern += 1;
+}
+
+/*$F-*/
+
+void bflight_on()
+{
+ storage.skellern=reset_;
+ setintvec(0x1c,&b_flight);
+}
+
+void bflight_off()
+{
+ setintvec(0x1c,old_1c);
+}
+
+void run(string what, boolean with_jsb,boolean with_bflight, elm how);
+
+
+static string elm2str(elm how)
+{
+ string elm2str_result;
+ switch (how) {
+  case normal: case musical: elm2str_result="jsb"; break;
+  case regi: elm2str_result="REGI"; break;
+  case elmpoyten: elm2str_result="ELMPOYTEN"; break;
+ }
+ return elm2str_result;
+}
+
+void run(string what, boolean with_jsb,boolean with_bflight, elm how)
+{
+ string which_dir,args;
+ integer error;
+
+
+ if (what=="")  return;
+
+ getdir(0,which_dir);
+
+ if (with_jsb) 
+ {
+   if (how==musical) 
+     args=elm2str(how)+' '+args_with_no_filename; /* FN is NOT given if musical*/
+   else
+     args=elm2str(how)+' '+arguments;
+ } else args="";
+
+ if (how==musical)  args=args+strf(soundcard)+' '+strf(speed)+' '+
+                      strf(baseaddr)+' '+strf(dma)+' '+strf(irq);
+ if (with_bflight)  bflight_on();
+
+ swapvectors;
+ exec(what,args);
+ swapvectors;
+ cursor_off();
+
+ error=doserror;
+
+ if (with_bflight)  bflight_off();
+
+ chdir(which_dir);
+
+ if (error!=0) 
+ {
+  output << "avvy_bootstrap: cannot execute " << what << '!';
+  explain(error);
+  output << "Press Enter:"; input >> NL; quit();
+ }
+}
+
+void run_avalot()
+{
+    integer error;
+
+
+ bflight_on();
+
+ swapvectors;
+ exec("avalot.avx",runcodes[first_time]+arguments);
+ swapvectors;
+
+ error=doserror;
+
+ bflight_off();
+
+ if (error!=0) 
+ {
+  output << "avvy_bootstrap: error in loading AVALOT.AVX!";
+  explain(error);
+  quit();
+ }
+
+ first_time=false;
+}
+
+void run_the_demo()
+{
+    string args;
+
+ args=arguments;
+ arguments=demo_args;  /* Force the demo. */
+
+ run_avalot();
+
+ arguments=args;    /* Put all back to normal again. */
+ first_time=true;
+}
+
+void get_arguments()
+{
+ byte fv;
+
+ arguments="";
+
+ for( fv=1; fv <= paramcount; fv ++)
+  arguments=arguments+paramstr(fv)+' ';
+
+ arguments[0] -= 1; /* Get rid of the trailing space. */
+
+ segofs=string(' ')+strf(seg(storage))+' '+strf(ofs(storage));
+
+ arguments=segofs+' '+arguments;
+}
+
+void dos_shell()
+{
+    registers r;
+
+ r.ax=original_mode; intr(0x10,r);
+ output << NL;
+ output << "The Avalot Dos Shell." << NL;
+ output << "---------------------" << NL;
+ output << NL;
+ output << "Type EXIT to return to Avalot." << NL;
+ output << NL;
+
+ cursor_on();
+ run(command_com(),no_jsb,no_bflight,normal);
+ cursor_off();
+
+ output << "Please wait, restoring your game..." << NL;
+}
+
+boolean keypressed1() {
+                                 registers r;
+
+ boolean keypressed1_result;
+ r.ah=0xb;
+ msdos(r);
+ keypressed1_result=r.al==0xff;
+ return keypressed1_result;
+                      }
+
+void flush_buffer() {
+                            registers r;  r.ah=7;
+ while (keypressed1())  msdos(r); }
+
+void demo()
+{
+ run_the_demo(); if (keypressed1())  return;
+ run("intro.avx",jsb,bflight,musical); if (keypressed1())  return;
+ run("stars.avx",jsb,no_bflight,musical); if (keypressed1())  return;
+
+ flush_buffer();
+}
+
+void call_menu()
+{
+ run("stars.avx",jsb,no_bflight,musical);
+ flush_buffer();
+ do {
+  run("avmenu.avx",jsb,no_bflight,normal);
+
+  switch (storage.operation) {
+   case 1: return; break; /* Play the game. */
+   case 2: run("intro.avx",jsb,bflight,musical); break;
+   case 3: run("preview1.avd",jsb,no_bflight,normal); break;
+   case 4: run("viewdocs.avx",jsb,bflight,elmpoyten); break;
+   case 5: run("viewdocs.avx",jsb,bflight,regi); break;
+   case 6: quit(); break;
+   case 177: demo(); break;
+  }
+
+  flush_buffer();
+ } while (!false);
+}
+
+void get_slope()
+{
+ run("slope.avx",jsb,no_bflight,normal);
+ if (dosexitcode!=0) 
+ {
+  cursor_on();
+  exit(0);
+ }
+
+ move(storage.contents,arguments,sizeof(arguments));
+ move(storage.contents[4998],soundcard,4);
+ move(storage.contents[5002],baseaddr,4);
+ move(storage.contents[5006],irq,4);
+ move(storage.contents[5010],dma,4);
+ move(storage.contents[5014],speed,4);
+
+ zoomy=(arguments[8]=='y') || (arguments[2]=='y');
+ demo_args=arguments; demo_args[7]='y';
+ arguments=segofs+' '+arguments;
+ demo_args=segofs+' '+demo_args;
+
+ args_with_no_filename=arguments;
+ if (arguments[length(arguments)]!=' ') 
+ {        /* Filename was given */
+   args_with_no_filename=arguments;
+   while ((args_with_no_filename!="")
+     && (args_with_no_filename[length(args_with_no_filename)]!=' ')) 
+      args_with_no_filename[0] -= 1; /* Strip off the filename. */
+ }
+}
+
+int main(int argc, const char* argv[])
+{
+ pio_initialize(argc, argv);
+ original_mode=mem[seg0040*0x49]; getintvec(0x1c,old_1c);
+ first_time=true; cursor_off();
+
+ get_arguments();
+ get_slope();
+
+ if (! zoomy)  call_menu();    /* Not run when zoomy. */
+
+ do {
+  run_avalot();
+
+  if (dosexitcode!=77)  quit(); /* Didn't stop for us. */
+
+  switch (storage.operation) {
+   case run_shootemup: run("seu.avx",jsb,bflight,normal); break;
+   case run_dosshell: dos_shell(); break;
+   case run_ghostroom: run("g-room.avx",jsb,no_bflight,normal); break;
+   case run_golden: run("golden.avx",jsb,bflight,musical); break;
+  }
+
+ } while (!false);
+ return EXIT_SUCCESS;
+}
diff --git a/engines/avalanche/cadburys.cpp b/engines/avalanche/cadburys.cpp
new file mode 100644
index 0000000..b891123
--- /dev/null
+++ b/engines/avalanche/cadburys.cpp
@@ -0,0 +1,109 @@
+#include "ptoc.h"
+
+#define __cadburys_implementation__
+
+
+#include "cadburys.h"
+
+
+#include "graph.h"
+
+
+
+void mgrab(integer x1,integer y1,integer x2,integer y2, word size)
+{
+    integer yy; word aapos; byte length,bit;
+;
+ if (size>arraysize) 
+ {;
+  output << "*** SORRY! *** Increase the arraysize constant to be greater" << NL;
+  output << " than " << size << '.' << NL;
+  exit(0);
+ }
+
+ aapos=0;
+
+ length=x2-x1;
+
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  for( yy=y1; yy <= y2; yy ++)
+  {;
+   move(mem[0xa400*yy*80+x1],aa[aapos],length);
+   aapos += length;
+  }
+ }
+ bit=getpixel(0,0);
+
+}
+
+void grab(integer x1,integer y1,integer x2,integer y2,integer realx,integer realy, flavourtype flav,
+ boolean mem,boolean nat)
+ /* yes, I *do* know how to spell "really"! */
+{
+ word s;
+ pointer p;
+ chunkblocktype ch;
+;
+/* rectangle(x1,y1,x2,y2); exit;*/
+ this_chunk += 1;
+ offsets[this_chunk]=filepos(f);
+
+
+ s=imagesize(x1,y1,x2,y2);
+ getmem(p,s);
+ getimage(x1,y1,x2,y2,p);
+
+ {;
+  ch.flavour=flav;
+  ch.x=realx; ch.y=realy;
+
+  ch.xl=x2-x1;
+  ch.yl=y2-y1;
+  ch.size=s;
+  ch.memorise=mem;
+  ch.natural=nat;
+ }
+
+ setvisualpage(1);
+ setactivepage(1);
+ input >> NL;
+ putimage(ch.x,ch.y,p,0);
+
+ if (flav==ch_ega) 
+ {;
+  freemem(p,s);
+  s=4*(((x2 / 8)-(x1 / 8))+2)*(y2-y1+1);
+  {;
+   ch.size=s;
+   ch.x=ch.x / 8;
+   ch.xl=((realx-ch.x*8)+(x2-x1)+7) / 8;
+   mgrab(ch.x,ch.y,ch.x+ch.xl,ch.y+ch.yl,s);
+  }
+ } else
+             /* For BGI pictures. */
+  {;
+   ch.x=ch.x / 8;
+   ch.xl=(ch.xl+7) / 8;
+   ch.size=imagesize(ch.x*8,ch.y,(ch.x+ch.xl)*8,ch.y+ch.yl);
+  }
+
+ input >> NL;
+ setvisualpage(0);
+ setactivepage(0);
+
+ blockwrite(f,ch,sizeof(ch));
+
+ switch (flav) {
+  case ch_ega : if (! nat)  blockwrite(f,aa,s); break;
+  case ch_bgi : {;
+            if (! nat)  blockwrite(f,p,s);
+            freemem(p,s);
+           }
+           break;
+ }
+/* rectangle(x1,y1,x2,y2);*/
+}
+
+
diff --git a/engines/avalanche/cadburys.h b/engines/avalanche/cadburys.h
new file mode 100644
index 0000000..65e7bd7
--- /dev/null
+++ b/engines/avalanche/cadburys.h
@@ -0,0 +1,41 @@
+#ifndef __cadburys_h__
+#define __cadburys_h__
+
+
+const integer arraysize = 12000;
+
+const array<1,44,char> chunkheader = 
+string("Chunk-type AVD file, for an Avvy game.")+'\32'+'\261'+'\x30'+'\x1'+'\x75'+'\261';
+
+
+enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
+
+struct chunkblocktype {
+                  flavourtype flavour;
+                  integer x,y;
+                  integer xl,yl;
+                  longint size;
+                  boolean natural;
+
+                  boolean memorise; /* Hold it in memory? */
+};
+
+
+#ifdef __cadburys_implementation__
+#undef EXTERN
+#define EXTERN
+#endif
+
+EXTERN array<0,arraysize,byte> aa;
+EXTERN byte num_chunks,this_chunk;
+EXTERN integer gd,gm;
+EXTERN array<1,30,longint> offsets;
+EXTERN untyped_file f;
+#undef EXTERN
+#define EXTERN extern
+
+
+void grab(integer x1,integer y1,integer x2,integer y2,integer realx,integer realy, flavourtype flav,
+ boolean mem,boolean nat);
+
+#endif
diff --git a/engines/avalanche/celer.cpp b/engines/avalanche/celer.cpp
new file mode 100644
index 0000000..61357f5
--- /dev/null
+++ b/engines/avalanche/celer.cpp
@@ -0,0 +1,472 @@
+#include "ptoc.h"
+
+/*
+  ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
+  Ûß  ÛÛ  Û  Û Ü Û  Ûßß ßÜ   Û      Û  Û  Û  Û  Û ÛÜÛ  ßßßÜ  Û  ÛÛ  Ûßß Û
+  ß   ß ß  ßß   ßß  ßßß   ß  ß      ß  ß  ß ßßß ß  ßß  ßßß   ß  ß ß ßßß ßßß
+
+                 CELER            The unit for updating the screen pics. */
+
+#define __celer_implementation__
+
+
+#include "celer.h"
+
+
+#include "Graph.h"
+#include "trip5.h"
+#include "lucerna.h"
+/*#include "Crt.h"*/
+
+
+untyped_file f; /* Private variable- not accessible from elsewhere. */
+
+const integer on_disk = -1; /* Value of memos[fv].x when it's not in memory. */
+
+void pics_link()
+{
+    byte xx;
+
+ if (ddmnow)  return; /* No animation when the menus are up. */
+
+ { dnatype& with = dna; 
+  switch (with.room) {
+
+   case r__outsideargentpub: {
+    if ((roomtime % longint(12))==0) 
+     show_one(longint(1)+(roomtime / longint(12)) % longint(4));
+   }
+   break;
+
+   case r__brummieroad: if ((roomtime % longint(2))==0) 
+    show_one(longint(1)+(roomtime / longint(2)) % longint(4));
+    break;
+
+   case r__bridge: if ((roomtime % longint(2))==0) 
+    show_one(longint(4)+(roomtime / longint(2)) % longint(4));
+    break;
+
+   case r__yours: if ((! with.avvy_is_awake) && ((roomtime % longint(4))==0)) 
+              show_one(longint(1)+(roomtime / longint(12)) % longint(2));
+              break;
+
+   case r__argentpub: {
+                  if (((roomtime % longint(7))==1) && (dna.malagauche!=177)) 
+                  {     /* Malagauche cycle */
+                   dna.malagauche += 1;
+                   switch (dna.malagauche) {
+                    case 1:case 11:case 21: show_one(12); break; /* Looks forwards. */
+                    case 8:case 18:case 28:case 32: show_one(11); break; /* Looks at you. */
+                    case 30: show_one(13); break; /* Winks. */
+                    case 33: dna.malagauche=0; break;
+                   }
+                  }
+
+                  switch (roomtime % longint(200)) {
+                   case 179:case 197: show_one(5); break; /* Dogfood's drinking cycle */
+                   case 182:case 194: show_one(6); break;
+                   case 185: show_one(7); break;
+                   case 199: dna.dogfoodpos=177; break; /* Impossible value for this. */
+                   case 0 ... 178: { /* Normally. */
+                            switch (bearing(2)) {/* Bearing of Avvy from Dogfood. */
+                              case 1 ... 90:case RANGE_3(358,360): xx=3; break;
+                              case 293 ... 357: xx=2; break;
+                              case 271 ... 292: xx=4; break;
+                            }
+                            if (xx!=dna.dogfoodpos)    /* Only if it's changed.*/
+                            {
+                             show_one(xx);
+                             dna.dogfoodpos=xx;
+                            }
+                           }
+                           break;
+                  }
+                 }
+                 break;
+
+   case r__westhall: if ((roomtime % longint(3))==0) 
+                 switch ((roomtime / longint(3)) % longint(6)) {
+                  case 4: show_one(1); break;
+                  case 1:case 3:case 5: show_one(2); break;
+                  case 0:case 2: show_one(3); break;
+                 }
+                 break;
+   case r__lustiesroom: if (! (dna.lustie_is_asleep))  {
+                    if ((roomtime % longint(45))>42)  xx=4; /* du Lustie blinks */
+                    else
+                    switch (bearing(2)) {/* Bearing of Avvy from du Lustie. */
+                      case 0 ... 45:case 315 ... 360: xx=1; break; /* Middle. */
+                       case 45 ... 180: xx=2; break; /* Left. */
+                      case 181 ... 314: xx=3; break; /* Right. */
+                    }
+                    if (xx!=dna.dogfoodpos)    /* Only if it's changed.*/
+                    {
+                     show_one(xx);
+                     dna.dogfoodpos=xx;  /* We use DogfoodPos here too- why not? */
+                    }
+                   }
+                   break;
+
+   case r__aylesoffice: if ((! dna.ayles_is_awake) && (roomtime % longint(14)==0)) 
+                   {
+                    switch ((roomtime / longint(14)) % longint(2)) {
+                     case 0: show_one(1); break; /* Frame 2: EGA. */
+                     case 1: show_one(3); break; /* Frame 1: Natural. */
+                    }
+                   }
+                   break;
+
+   case r__robins: if (dna.tied_up) 
+               switch (roomtime % longint(54)) {
+                case 20: show_one(4); break; /* Frame 4: Avalot blinks. */
+                case 23: show_one(2); break; /* Frame 1: Back to normal. */
+               }
+               break;
+
+   case r__nottspub: {
+                 switch (bearing(5)) { /* Bearing of Avvy from Port. */
+                   case 0 ... 45:case 315 ... 360: xx=2; break; /* Middle. */
+                    case 45 ... 180: xx=6; break; /* Left. */
+                   case 181 ... 314: xx=8; break; /* Right. */
+                 }
+
+                 if ((roomtime % longint(60))>57)  xx -= 1; /* Blinks */
+
+                 if (xx!=dna.dogfoodpos)    /* Only if it's changed.*/
+                 {
+                  show_one(xx);
+                  dna.dogfoodpos=xx;  /* We use DogfoodPos here too- why not? */
+                 }
+
+                 switch (roomtime % longint(50)) {
+                  case 45 : show_one(9); break; /* Spurge blinks */
+                  case 49 : show_one(10); break;
+                 }
+                }
+                break;
+
+   case r__ducks: {
+              if ((roomtime % longint(3))==0)  /* The fire flickers */
+               show_one(longint(1)+(roomtime / longint(3)) % longint(3));
+
+              switch (bearing(2)) {/* Bearing of Avvy from Duck. */
+                case 0 ... 45:case 315 ... 360: xx=4; break; /* Middle. */
+                 case 45 ... 180: xx=6; break; /* Left. */
+                case 181 ... 314: xx=8; break; /* Right. */
+              }
+
+              if ((roomtime % longint(45))>42)  xx += 1; /* Duck blinks */
+
+              if (xx!=dna.dogfoodpos)    /* Only if it's changed.*/
+              {
+               show_one(xx);
+               dna.dogfoodpos=xx;  /* We use DogfoodPos here too- why not? */
+              }
+             }
+             break;
+
+  }}
+
+ if ((dna.ringing_bells) && (flagset('B'))) 
+   /* They're ringing the bells. */
+  switch (roomtime % longint(4)) {
+   case 1: {
+       dnatype& with = dna; 
+
+       if (with.nextbell<5)  with.nextbell=12;
+       with.nextbell -= 1;
+       note(notes[with.nextbell]);
+           }
+           break;
+   case 2: nosound; break;
+  }
+
+}
+
+void load_chunks(string xx)
+{
+ chunkblocktype ch;
+ byte fv;
+
+ /*$I-*/
+ assign(f,string("chunk")+xx+".avd"); /* strf is done for us by Lucerna. */
+ reset(f,1);
+ if (ioresult!=0)  return; /* no Chunk file. */
+ seek(f,44);
+ blockread(f,num_chunks,1);
+ blockread(f,offsets,num_chunks*4);
+
+ for( fv=1; fv <= num_chunks; fv ++)
+ {
+  seek(f,offsets[fv]);
+  blockread(f,ch,sizeof(ch));
+  {
+   if (ch.memorise) 
+   {
+
+    {
+     memotype& with1 = memos[fv]; 
+
+     with1.x=ch.x; with1.xl=ch.xl;
+     with1.y=ch.y; with1.yl=ch.yl;
+     with1.flavour=ch.flavour;
+     with1.size=ch.size;
+    }
+
+    getmem(memory[fv],ch.size);
+
+    if (ch.natural) 
+    {
+     getimage(ch.x*8,ch.y,(ch.x+ch.xl)*8,ch.y+ch.yl,memory[fv]);
+    } else
+     blockread(f,memory[fv],ch.size);
+   } else memos[fv].x=on_disk;
+  }
+ }
+
+ close(f);
+ /*$I+*/
+}
+
+void forget_chunks()
+{
+    byte fv;
+
+ for( fv=1; fv <= num_chunks; fv ++)
+  if (memos[fv].x>on_disk) 
+   freemem(memory[fv],memos[fv].size);
+ fillchar(memos,sizeof(memos),'\377'); /* x=-1, => on disk. */
+}
+
+void mdrop(integer x,integer y,integer xl,integer yl, pointer p) /* assembler;
+asm
+  push ds;      { Strictly speaking, we shouldn't modify DS, so we'll save it.}
+  push bp;      { Nor BP! }
+
+
+  { DI holds the offset on this page. It starts at the top left-hand corner. }
+  { (It should equal ch.y*80+ch.x. }
+
+  mov ax,y;
+  mov dl,80;
+  mul dl; { Line offset now calculated. }
+  mov di,ax; { Move it into DI. }
+  mov ax,x;
+  add di,ax; { Full offset now calculated. }
+
+  mov bx,yl; { No. of times to repeat lineloop. }
+  inc bx;        { "loop" doesn't execute the zeroth time. }
+  mov bh,bl;     { Put it into BH. }
+
+  { BP holds the length of the string to copy. It's equal to ch.xl.}
+
+  mov ax,word(p);   { Data is held at DS:SI. }
+  mov si,ax;
+  mov ax,word(p+2); { This will be moved over into ds in just a tick... }
+
+  mov bp,xl;
+
+  mov ds,ax;
+
+
+  cld;          { We're allowed to hack around with the flags! }
+
+  mov ax,$AC00; { Top of the first EGA page. }
+  mov es,ax;    { Offset on this page is calculated below... }
+
+
+{    port[$3c4]:=2; port[$3ce]:=4; }
+
+  mov dx,$3c4;
+  mov al,2;
+  out dx,al;
+  mov dx,$3ce;
+  mov al,4;
+  out dx,al;
+
+  mov cx,4;  { This loop executes for 3, 2, 1, and 0. }
+  mov bl,0;
+
+
+ @mainloop:
+
+    push di;
+    push cx;
+
+{    port[$3C5]:=1 shl bit; }
+    mov dx,$3C5;
+    mov al,1;
+    mov cl,bl; { BL = bit. }
+    shl al,cl;
+    out dx,al;
+{     port[$3CF]:=bit; }
+    mov dx,$3CF;
+    mov al,bl; { BL = bit. }
+    out dx,al;
+
+    xor ch,ch;
+    mov cl,bh; { BH = ch.yl. }
+
+   @lineloop:
+
+     push cx;
+
+     mov cx,bp;
+
+     repz movsb; { Copy the data. }
+
+     sub di,bp;
+     add di,80;
+
+     pop cx;
+
+   loop @lineloop;
+
+    inc bl; { One more on BL. }
+
+    pop cx;
+    pop di;
+
+ loop @mainloop;
+
+  pop bp;
+  pop ds;       { Get DS back again. }
+*/
+{;
+}
+
+void show_one(byte which);
+
+static bytefield r;
+
+static void display_it(integer x,integer y,integer xl,integer yl, flavourtype flavour, pointer p)
+{
+ {
+  switch (flavour) {
+   case ch_bgi : {
+             putimage(x*8,y,p,0);
+             r.x1=x; r.y1=y;
+             r.x2=x+xl+1; r.y2=y+yl;
+            }
+            break;
+   case ch_ega : {
+             mdrop(x,y,xl,yl,p); blitfix();
+             r.x1=x; r.y1=y; r.x2=x+xl; r.y2=y+yl;
+            }
+            break;
+  }
+}
+}
+
+void show_one(byte which)
+{
+ chunkblocktype ch;
+ pointer p;
+ byte fv;
+
+
+ setactivepage(3);
+
+ {
+  memotype& with = memos[which]; 
+
+  if (with.x>on_disk) 
+  {
+   display_it(with.x,with.y,with.xl,with.yl,with.flavour,memory[which]);
+  } else
+  {
+   reset(f,1);
+   seek(f,offsets[which]);
+   blockread(f,ch,sizeof(ch));
+
+   {
+    getmem(p,ch.size);
+    blockread(f,p,ch.size);
+
+    display_it(ch.x,ch.y,ch.xl,ch.yl,ch.flavour,p);
+    freemem(p,ch.size);
+
+    close(f);
+   }
+
+  }
+
+  setactivepage(1-cp);
+
+  for( fv=0; fv <= 1; fv ++)
+   getset[fv].remember(r);
+ }
+
+}
+
+void show_one_at(byte which, integer xxx,integer yyy);
+
+static bytefield r1;
+
+static void display_it1(integer xl,integer yl, flavourtype flavour, pointer p, integer& xxx, integer& yyy)
+{
+ {
+  switch (flavour) {
+   case ch_bgi : {
+             putimage(xxx,yyy,p,0);
+             r1.x1=xxx; r1.y1=yyy;
+             r1.x2=xxx+xl+1; r1.y2=yyy+yl;
+            }
+            break;
+   case ch_ega : {
+             mdrop(xxx / 8,yyy,xl,yl,p); blitfix();
+             r1.x1=xxx / 8; r1.y1=yyy; r1.x2=(xxx / 8)+xl; r1.y2=yyy+yl;
+            }
+            break;
+  }
+}
+}
+
+void show_one_at(byte which, integer xxx,integer yyy)
+{
+ chunkblocktype ch;
+ pointer p;
+ byte fv;
+
+
+ setactivepage(3);
+
+ {
+  memotype& with = memos[which]; 
+
+  if (with.x>on_disk) 
+  {
+   display_it1(with.xl,with.yl,with.flavour,memory[which], xxx, yyy);
+  } else
+  {
+   reset(f,1);
+   seek(f,offsets[which]);
+   blockread(f,ch,sizeof(ch));
+
+   {
+    getmem(p,ch.size);
+    blockread(f,p,ch.size);
+
+    display_it1(ch.xl,ch.yl,ch.flavour,p, xxx, yyy);
+    freemem(p,ch.size);
+
+    close(f);
+   }
+
+  }
+
+  setactivepage(1-cp);
+
+  for( fv=0; fv <= 1; fv ++)
+   getset[fv].remember(r1);
+ }
+}
+
+class unit_celer_initialize {
+  public: unit_celer_initialize();
+};
+static unit_celer_initialize celer_constructor;
+
+unit_celer_initialize::unit_celer_initialize() {
+ num_chunks=0;
+}
diff --git a/engines/avalanche/celer.h b/engines/avalanche/celer.h
new file mode 100644
index 0000000..f6ad52f
--- /dev/null
+++ b/engines/avalanche/celer.h
@@ -0,0 +1,53 @@
+#ifndef __celer_h__
+#define __celer_h__
+
+
+#include "closing.h"
+#include "incline.h"
+#include "gyro.h"
+
+
+enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
+
+struct chunkblocktype {
+                  flavourtype flavour;
+                  integer x,y;
+                  integer xl,yl;
+                  longint size;
+                  boolean natural;
+
+                  boolean memorise; /* Hold it in memory? */
+};
+
+struct memotype {
+            integer x,y;
+            integer xl,yl;
+            flavourtype flavour;
+            word size;
+};
+
+
+#ifdef __celer_implementation__
+#undef EXTERN
+#define EXTERN
+#endif
+
+EXTERN array<1,40,longint> offsets;
+EXTERN byte num_chunks;
+EXTERN array<1,40,memotype> memos;
+EXTERN array<1,40,pointer> memory;
+#undef EXTERN
+#define EXTERN extern
+
+
+   void pics_link();
+
+   void load_chunks(string xx);
+
+   void forget_chunks();
+
+   void show_one(byte which);
+
+   void show_one_at(byte which, integer xxx,integer yyy);
+
+#endif
diff --git a/engines/avalanche/ch_egats.cpp b/engines/avalanche/ch_egats.cpp
new file mode 100644
index 0000000..a27c261
--- /dev/null
+++ b/engines/avalanche/ch_egats.cpp
@@ -0,0 +1,155 @@
+#include "ptoc.h"
+
+
+#include "graph.h"
+
+
+enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
+
+struct chunkblocktype {
+                  flavourtype flavour;
+                  integer x,y;
+                  integer xl,yl;
+                  longint size;
+                  boolean natural;
+
+                  boolean memorise; /* Hold it in memory? */
+};
+
+untyped_file f;
+longint offset;
+chunkblocktype ch;
+integer gd,gm;
+byte bit;
+pointer p;
+
+void mdrop(integer x,integer y,integer xl,integer yl, pointer p) /* assembler;
+asm
+  push ds;      { Strictly speaking, we shouldn't modify DS, so we'll save it.}
+  push bp;      { Nor BP! }
+
+
+  { DI holds the offset on this page. It starts at the top left-hand corner. }
+  { (It should equal ch.y*80+ch.x. }
+
+  mov ax,y;
+  mov dl,80;
+  mul dl; { Line offset now calculated. }
+  mov di,ax; { Move it into DI. }
+  mov ax,x;
+  add di,ax; { Full offset now calculated. }
+
+  mov bx,yl; { No. of times to repeat lineloop. }
+  inc bx;        { "loop" doesn't execute the zeroth time. }
+  mov bh,bl;     { Put it into BH. }
+
+  { BP holds the length of the string to copy. It's equal to ch.xl.}
+
+  mov ax,word(p);   { Data is held at DS:SI. }
+  mov si,ax;
+  mov ax,word(p+2); { This will be moved over into ds in just a tick... }
+
+  mov bp,xl;
+
+  mov ds,ax;
+
+
+  cld;          { We're allowed to hack around with the flags! }
+
+  mov ax,$A000; { Top of the first EGA page. }
+  mov es,ax;    { Offset on this page is calculated below... }
+
+
+{    port[$3c4]:=2; port[$3ce]:=4; }
+
+  mov dx,$3c4;
+  mov al,2;
+  out dx,al;
+  mov dx,$3ce;
+  mov al,4;
+  out dx,al;
+
+  mov cx,4;  { This loop executes for 3, 2, 1, and 0. }
+  mov bl,0;
+
+
+ @mainloop:
+
+    push di;
+    push cx;
+
+{    port[$3C5]:=1 shl bit; }
+    mov dx,$3C5;
+    mov al,1;
+    mov cl,bl; { BL = bit. }
+    shl al,cl;
+    out dx,al;
+{     port[$3CF]:=bit; }
+    mov dx,$3CF;
+    mov al,bl; { BL = bit. }
+    out dx,al;
+
+    xor ch,ch;
+    mov cl,bh; { BH = ch.yl. }
+
+   @lineloop:
+
+     push cx;
+
+     mov cx,bp;
+
+     repz movsb; { Copy the data. }
+
+     sub di,bp;
+     add di,80;
+
+     pop cx;
+
+   loop @lineloop;
+
+    inc bl; { One more on BL. }
+
+    pop cx;
+    pop di;
+
+ loop @mainloop;
+
+  pop bp;
+  pop ds;       { Get DS back again. }
+*/
+{;
+}
+
+int main(int argc, const char* argv[])
+{pio_initialize(argc, argv);
+;
+ assign(f,"chunk21.avd");
+ reset(f,1);
+
+ seek(f,49);
+ blockread(f,offset,4);
+
+ seek(f,offset);
+
+ blockread(f,ch,sizeof(ch));
+
+ gd=3; gm=0; initgraph(gd,gm,"c:\\bp\\bgi");
+
+ getmem(p,ch.size);
+ blockread(f,p,ch.size);
+/* putimage(0,0,p^,0);*/
+
+
+/* with ch do
+  for bit:=0 to 3 do
+  begin;
+   port[$3c4]:=2; port[$3ce]:=4; port[$3C5]:=1 shl bit; port[$3CF]:=bit;
+   for gm:=0 to yl do
+    blockread(f,mem[$A000*gm*80],(ch.xl+7) div 8);
+  end;*/
+
+  mdrop(ch.x,ch.y,ch.xl,ch.yl,p);
+
+ close(f);
+return EXIT_SUCCESS;
+}
diff --git a/engines/avalanche/charmap.cpp b/engines/avalanche/charmap.cpp
new file mode 100644
index 0000000..8b38f8a
--- /dev/null
+++ b/engines/avalanche/charmap.cpp
@@ -0,0 +1,30 @@
+#include "ptoc.h"
+
+
+/*#include "Dos.h"*/
+
+struct infotype {
+            matrix<128,255,1,8,byte> chars;
+            string data;
+};
+infotype table;
+pointer where;
+byte w,fv,ff,num;
+int main(int argc, const char* argv[])
+{pio_initialize(argc, argv);
+;
+ getintvec(0x1f,where); move(where,table,1024);
+ for( w=128; w <= 255; w ++)
+ {; output << w << NL;
+ for( fv=1; fv <= 8; fv ++)
+ {;
+  num=table.chars[w][fv];
+  for( ff=1; ff <= 8; ff ++)
+  {;
+   if ((num & 128)==0)  output << "  "; else output << "ÛÛ";
+   num=num << 1;
+  }
+  output << NL;
+ } }
+return EXIT_SUCCESS;
+}
\ No newline at end of file
diff --git a/engines/avalanche/chunker.cpp b/engines/avalanche/chunker.cpp
new file mode 100644
index 0000000..6d48054
--- /dev/null
+++ b/engines/avalanche/chunker.cpp
@@ -0,0 +1,86 @@
+#include "ptoc.h"
+
+
+
+enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
+
+struct chunkblocktype {
+                  flavourtype flavour;
+                  integer x,y;
+                  integer xl,yl;
+                  longint size;
+                  boolean natural;
+
+                  boolean memorise; /* Hold it in memory? */
+};
+
+untyped_file f;
+string fn;
+byte num_chunks,fv;
+longint offset;
+chunkblocktype ch;
+
+int main(int argc, const char* argv[])
+{
+   pio_initialize(argc, argv);
+   output << NL;
+   output << "CHUNKER 12/3/1995 TT" << NL;
+   output << NL;
+
+   if (paramcount!=1) 
+   {
+      output << "which chunk file?" << NL;
+      exit(0);
+   }
+
+   fn=paramstr(1);
+   assign(f,fn);
+   reset(f,1);
+   output << "----- In chunk file " << fn << ", there are: -----" << NL;
+
+   seek(f,44);
+   blockread(f,num_chunks,1);
+   output << format(num_chunks,4) << " chunks:" << NL;
+
+   output << "  No  Hdr    Offset  Flvr  Mem Nat      X      Y  Width Height Size of image" << NL;
+
+   for( fv=1; fv <= num_chunks; fv ++)
+   {
+
+      output << "Ch" << format(fv,2) << ':';
+
+      seek(f,41+fv*4);
+
+      output << format(41+fv*4,4);
+      blockread(f,offset,4);
+      output << format(offset,10);
+
+      seek(f,offset);
+      blockread(f,ch,sizeof(ch));
+      {
+         if (ch.flavour==ch_bgi) 
+            output << " ch_BGI";
+         else
+            output << " ch_EGA";
+
+         if (ch.memorise) 
+            output << " yes";
+         else
+            output << " no ";
+
+         if (ch.natural) 
+            output << " yes";
+         else
+            output << " no ";
+
+         output << format(ch.x,7) << format(ch.y,7) << format(ch.xl,7) << format(ch.yl,7) << format(ch.size,10);
+      }
+
+      output << NL;
+   }
+
+   output << "---ENDS---" << NL;
+
+   close(f);
+   return EXIT_SUCCESS;
+}
\ No newline at end of file
diff --git a/engines/avalanche/chunkxf1.cpp b/engines/avalanche/chunkxf1.cpp
new file mode 100644
index 0000000..dce3722
--- /dev/null
+++ b/engines/avalanche/chunkxf1.cpp
@@ -0,0 +1,259 @@
+#include "ptoc.h"
+
+
+#include "graph.h"
+#include "cadburys.h"
+
+
+/*type
+ flavourtype = (ch_EGA,ch_BGI);
+
+ chunkblocktype = record
+                   flavour:flavourtype;
+                   x,y:integer;
+                   xl,yl:integer;
+                   size:longint;
+                   natural:boolean;
+
+                   memorise:boolean; { Hold it in memory? }
+                  end;*/
+
+const array<1,44,char> chunkheader = 
+string("Chunk-type AVD file, for an Avvy game.")+'\32'+'\261'+'\x30'+'\x1'+'\x75'+'\261';
+
+/* arraysize = 12000;*/
+
+/* offsets:array[1..30] of longint;*/
+byte num_chunks/*,this_chunk*/;
+integer gd,gm;
+/* f:file;*/
+/* aa:array[0..arraysize] of byte;*/
+
+void load()
+{
+ byte a0 /*absolute $A000:800*/;
+ byte a1 /*absolute $A400:800*/;
+ byte bit;
+ untyped_file f;
+;
+ assign(f,"chunkbit.avd"); reset(f,1);
+ seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a0,12080);
+ }
+ close(f);
+
+ assign(f,"place21.avd"); reset(f,1);
+ seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a1,12080);
+ }
+
+ close(f);
+ bit=getpixel(0,0);
+}
+
+void open_chunk()
+{;
+ assign(f,"chunk21.avd");
+ rewrite(f,1);
+ blockwrite(f,chunkheader,sizeof(chunkheader));
+ blockwrite(f,num_chunks,1);
+ blockwrite(f,offsets,num_chunks*4);
+
+ this_chunk=0;
+}
+
+void close_chunk()
+{;
+ seek(f,45);
+ blockwrite(f,offsets,num_chunks*4); /* make sure they're right! */
+ close(f);
+}
+/*
+procedure mgrab(x1,y1,x2,y2:integer; size:word);
+var yy:integer; aapos:word; length,bit:byte;
+begin;
+ if size>arraysize then
+ begin;
+  writeln('*** SORRY! *** Increase the arraysize constant to be greater');
+  writeln(' than ',size,'.');
+  halt;
+ end;
+
+ aapos:=0;
+
+ length:=x2-x1;
+
+ for bit:=0 to 3 do
+ begin;
+  port[$3c4]:=2; port[$3ce]:=4; port[$3C5]:=1 shl bit; port[$3CF]:=bit;
+  for yy:=y1 to y2 do
+  begin;
+   move(mem[$A400*yy*80+x1],aa[aapos],length);
+   move(aa[aapos],mem[$A400*yy*80],length);
+(*   fillchar(mem[$A400:yy*80+x1],length,#177);*)
+   inc(aapos,length);
+  end;
+ end;
+ bit:=getpixel(0,0);
+
+end;
+*/
+/*procedure grab(x1,y1,x2,y2,realx,realy:integer; flav:flavourtype;
+ mem,nat:boolean);
+ { yes, I *do* know how to spell "really"! }
+var
+ s:word;
+ p:pointer;
+ ch:chunkblocktype;
+begin;
+ inc(this_chunk);
+ offsets[this_chunk]:=filepos(f);
+
+
+ s:=imagesize(x1,y1,x2,y2);
+ getmem(p,s);
+ getimage(x1,y1,x2,y2,p^);
+
+ with ch do
+ begin;
+  flavour:=flav;
+  x:=realx; y:=realy;
+
+  xl:=x2-x1;
+  yl:=y2-y1;
+  size:=s;
+  memorise:=mem;
+  natural:=nat;
+ end;
+
+ setvisualpage(1);
+ setactivepage(1);
+ readln;
+ putimage(ch.x,ch.y,p^,0);
+
+ if flav=ch_EGA then
+ begin;
+  freemem(p,s);
+  s:=4*((x2-x1+7) div 8)*(y2-y1+1);
+  with ch do
+  begin;
+   size:=s;
+   x:=x div 8;
+   xl:=(xl+7) div 8;
+   mgrab(x,y,x+xl,y+yl,s);
+  end;
+ end;
+
+ readln;
+ setvisualpage(0);
+ setactivepage(0);
+
+ blockwrite(f,ch,sizeof(ch));
+
+ case flav of
+  ch_EGA : if not nat then blockwrite(f,aa,s);
+  ch_BGI : begin;
+            if not nat then blockwrite(f,p^,s);
+            freemem(p,s);
+           end;
+ end;
+{ rectangle(x1,y1,x2,y2);}
+end;*/
+
+/*procedure grab(x1,y1,x2,y2,realx,realy:integer; flav:flavourtype;
+ mem,nat:boolean);*/
+ /* yes, I *do* know how to spell "really"! */
+/*var
+ s:word;
+ p:pointer;
+ ch:chunkblocktype;
+begin;
+(* rectangle(x1,y1,x2,y2); exit;*)
+ inc(this_chunk);
+ offsets[this_chunk]:=filepos(f);
+
+
+ s:=imagesize(x1,y1,x2,y2);
+ getmem(p,s);
+ getimage(x1,y1,x2,y2,p^);
+
+ with ch do
+ begin;
+  flavour:=flav;
+  x:=realx; y:=realy;
+
+  xl:=x2-x1;
+  yl:=y2-y1;
+  size:=s;
+  memorise:=mem;
+  natural:=nat;
+ end;
+
+ setvisualpage(1);
+ setactivepage(1);
+ readln;
+ putimage(ch.x,ch.y,p^,0);
+
+ if flav=ch_EGA then
+ begin;
+  freemem(p,s);
+  s:=4*(((x2 div 8)-(x1 div 8))+2)*(y2-y1+1);
+  with ch do
+  begin;
+   size:=s;
+   x:=x div 8;
+   xl:=(xl div 8)+2;
+   mgrab(x,y,x+xl,y+yl,s);
+  end;
+ end else
+  with ch do { For BGI pictures. *//*
+  begin;
+   x:=x div 8;
+   xl:=(xl+7) div 8;
+   size:=imagesize(x*8,y,(x+xl)*8,y+yl);
+  end;
+
+ readln;
+ setvisualpage(0);
+ setactivepage(0);
+
+ blockwrite(f,ch,sizeof(ch));
+
+ case flav of
+  ch_EGA : if not nat then blockwrite(f,aa,s);
+  ch_BGI : begin;
+            if not nat then blockwrite(f,p^,s);
+            freemem(p,s);
+           end;
+ end;
+(* rectangle(x1,y1,x2,y2);*)
+end;*/
+
+int main(int argc, const char* argv[])
+{pio_initialize(argc, argv);
+;
+ gd=3; gm=0; initgraph(gd,gm,"c:\\bp\\bgi");
+ load();
+ setwritemode(xorput);
+
+ num_chunks=7;
+
+ open_chunk();
+
+ grab( 98,10,181,41,247,82,ch_ega,false,false); /* Drawbridge... */
+ grab(223,10,320,41,233,82,ch_ega,false,false);
+ grab(361,10,458,64,233,82,ch_ega,false,false);
+
+ grab( 11,10, 39,22,172,17,ch_bgi,true,true);
+ grab( 11,38, 39,50,172,17,ch_ega,true,false); /* Flag. */
+ grab( 11,24, 39,36,172,17,ch_ega,true,false);
+ grab( 11,10, 39,22,172,17,ch_ega,true,false);
+ close_chunk();
+return EXIT_SUCCESS;
+}
diff --git a/engines/avalanche/chunkxf2.cpp b/engines/avalanche/chunkxf2.cpp
new file mode 100644
index 0000000..5d77d29
--- /dev/null
+++ b/engines/avalanche/chunkxf2.cpp
@@ -0,0 +1,192 @@
+#include "ptoc.h"
+
+
+#include "graph.h"
+
+
+enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
+
+struct chunkblocktype {
+                  flavourtype flavour;
+                  integer x,y;
+                  integer xl,yl;
+                  longint size;
+                  boolean natural;
+
+                  boolean memorise; /* Hold it in memory? */
+};
+
+const array<1,44,char> chunkheader = 
+string("Chunk-type AVD file, for an Avvy game.")+'\32'+'\261'+'\x30'+'\x1'+'\x75'+'\261';
+
+const integer arraysize = 32000;
+
+array<1,30,longint> offsets;
+byte num_chunks,this_chunk;
+integer gd,gm;
+untyped_file f;
+array<0,arraysize,byte> aa;
+
+void load()
+{
+ byte a0 /*absolute $A000:800*/;
+ byte a1 /*absolute $A400:800*/;
+ byte bit;
+ untyped_file f;
+;
+
+ assign(f,"place9.avd"); reset(f,1);
+ seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a1,12080);
+ }
+
+ close(f);
+ bit=getpixel(0,0);
+}
+
+void load_temp(string which)
+{
+ byte a0 /*absolute $A000:800*/;
+ byte a1 /*absolute $A400:800*/;
+ byte bit;
+ untyped_file f;
+;
+ assign(f,which); reset(f,1);
+ seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a0,12080);
+ }
+ close(f);
+ bit=getpixel(0,0);
+}
+
+void open_chunk()
+{;
+ assign(f,"chunk9.avd");
+ rewrite(f,1);
+ blockwrite(f,chunkheader,sizeof(chunkheader));
+ blockwrite(f,num_chunks,1);
+ blockwrite(f,offsets,num_chunks*4);
+
+ this_chunk=0;
+}
+
+void close_chunk()
+{;
+ seek(f,45);
+ blockwrite(f,offsets,num_chunks*4); /* make sure they're right! */
+ close(f);
+}
+
+void mgrab(integer x1,integer y1,integer x2,integer y2, word size)
+{
+    integer yy; word aapos; byte length,bit;
+;
+ if (size>arraysize) 
+ {;
+  output << "*** SORRY! *** Increase the arraysize constant to be greater" << NL;
+  output << " than " << size << '.' << NL;
+  exit(0);
+ }
+
+ aapos=0;
+
+ length=x2-x1;
+
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  for( yy=y1; yy <= y2; yy ++)
+  {;
+   move(mem[0xa400*yy*80+x1],aa[aapos],length);
+   aapos += length;
+  }
+ }
+ bit=getpixel(0,0);
+}
+
+void grab(integer x1,integer y1,integer x2,integer y2, integer realx, integer realy, boolean mem,boolean nat)
+ /* yes, I *do* know how to spell "really"! */
+{
+ word s;
+ pointer p;
+ chunkblocktype ch;
+;
+/* rectangle(x1,y1,x2,y2); exit;*/
+ this_chunk += 1;
+ offsets[this_chunk]=filepos(f);
+
+
+ s=imagesize(x1,y1,x2,y2);
+ getmem(p,s);
+ getimage(x1,y1,x2,y2,p);
+
+ {;
+  if (nat) 
+   ch.flavour=ch_bgi;
+  else ch.flavour=ch_ega; /* At the moment, Celer can't handle natural ch_EGAs. */
+  ch.x=realx;
+  ch.y=realy;
+
+  ch.xl=x2-x1;
+  ch.yl=y2-y1;
+  ch.size=s;
+  ch.memorise=mem;
+  ch.natural=nat;
+ }
+
+ setvisualpage(1);
+ setactivepage(1);
+ input >> NL;
+ putimage(ch.x,ch.y,p,0);
+
+ freemem(p,s);
+ {;
+  if (ch.flavour==ch_bgi)  s=imagesize(ch.x*8,ch.y,(ch.x+ch.xl)*8,ch.y+ch.yl);
+   else s=4*((x2-x1+7) / 8)*(y2-y1+1);
+  ch.size=s;
+  ch.x=ch.x / 8;
+  ch.xl=(ch.xl+7) / 8;
+  mgrab(ch.x,ch.y,ch.x+ch.xl,ch.y+ch.yl,s);
+ }
+
+ input >> NL;
+ setvisualpage(0);
+ setactivepage(0);
+
+ blockwrite(f,ch,sizeof(ch));
+
+ if (! nat)  blockwrite(f,aa,s);
+}
+
+int main(int argc, const char* argv[])
+{pio_initialize(argc, argv);
+;
+ gd=3; gm=0; initgraph(gd,gm,"c:\\bp\\bgi");
+ load();
+ load_temp("d:chunkbit.avd");
+ setwritemode(xorput);
+
+ num_chunks=7;
+
+ open_chunk();
+
+ grab( 78, 78,232,102,212, 10,true,false); /* 154 across */
+ grab(235, 78,389,102,212, 10,true,false);
+ grab(392, 78,546,102,212, 10,true,false);
+ grab(392, 78,546,102,212, 10,true,true);
+
+ load_temp("d:chunkbi3.avd");
+
+ grab(437, 51,475, 78,147,120,false,false); /* 5 = door half-open. */
+ grab(397, 51,435, 78,147,120,false,false); /* 6 = door open. */
+ grab(397, 51,435, 78,147,120,true,true);   /* 7 = door shut. */
+
+ close_chunk();
+return EXIT_SUCCESS;
+}
diff --git a/engines/avalanche/chunkxf3.cpp b/engines/avalanche/chunkxf3.cpp
new file mode 100644
index 0000000..220d07b
--- /dev/null
+++ b/engines/avalanche/chunkxf3.cpp
@@ -0,0 +1,250 @@
+#include "ptoc.h"
+
+
+#include "graph.h"
+/*#include "Tommys.h"*/
+/*#include "Crt.h"*/
+#include "cadburys.h"
+
+
+/*type
+ flavourtype = (ch_EGA,ch_BGI);
+
+ chunkblocktype = record
+                   flavour:flavourtype;
+                   x,y:integer;
+                   xl,yl:integer;
+                   size:longint;
+                   natural:boolean;
+
+                   memorise:boolean; { Hold it in memory? }
+                  end;
+
+const
+ chunkheader : array[1..44] of char =
+ 'Chunk-type AVD file, for an Avvy game.'+#26+#177+#$30+#$01+#$75+#177;
+
+ arraysize = 12000;
+
+var
+ offsets:array[1..30] of longint;
+ num_chunks,this_chunk:byte;
+ gd,gm:integer;
+ f:file;
+ aa:array[0..arraysize] of byte;*/
+
+string strf(longint x)
+{
+    string q;
+string strf_result;
+;
+ str(x,q); strf_result=q;
+return strf_result;
+}
+
+void finder()
+{
+    char r; integer x,y;
+; 
+ setfillstyle(0,0); setcolor(14);
+ x=320; y=100; setwritemode(xorput);
+ do {
+  bar(0,0,200,10);
+  outtextxy(0,0,strf(x)+','+strf(y));
+  line(x-20,y,x+20,y); line(x,y-20,x,y+20);
+  do {; } while (!keypressed());
+  line(x-20,y,x+20,y); line(x,y-20,x,y+20);
+  switch (readkey()) {
+   case '\15': return; break;
+   case '8': y -= 10; break;
+   case '4': x -= 10; break;
+   case '6': x += 10; break;
+   case '2': y += 10; break;
+    case '\0': switch (readkey()) {
+         case cup: y -= 1; break;
+         case cdown: y += 1; break;
+         case cleft: x -= 1; break;
+         case cright: x += 1; break;
+        }
+        break;
+  }
+ } while (!false);
+}
+
+void loadtemp(string n)
+{
+ byte a0 /*absolute $A000:800*/;
+ byte a1 /*absolute $A400:800*/;
+ byte bit;
+ untyped_file f;
+;
+ assign(f,n); reset(f,1);
+ seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a0,12080);
+ }
+ close(f);
+ bit=getpixel(0,0);
+ finder();
+}
+
+void load()
+{
+ byte a0 /*absolute $A000:800*/;
+ byte a1 /*absolute $A400:800*/;
+ byte bit;
+ untyped_file f;
+;
+ assign(f,"place22.avd"); reset(f,1);
+ seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a1,12080);
+ }
+
+ close(f);
+ bit=getpixel(0,0);
+ setactivepage(1); setvisualpage(1); finder();
+ setactivepage(0); setvisualpage(0);
+}
+
+void open_chunk()
+{;
+ assign(f,"chunk22.avd");
+ rewrite(f,1);
+ blockwrite(f,chunkheader,sizeof(chunkheader));
+ blockwrite(f,num_chunks,1);
+ blockwrite(f,offsets,num_chunks*4);
+
+ this_chunk=0;
+}
+
+void close_chunk()
+{;
+ seek(f,45);
+ blockwrite(f,offsets,num_chunks*4); /* make sure they're right! */
+ close(f);
+}
+
+/*procedure mgrab(x1,y1,x2,y2:integer; size:word);
+var yy:integer; aapos:word; length,bit:byte;
+begin;
+ if size>arraysize then
+ begin;
+  writeln('*** SORRY! *** Increase the arraysize constant to be greater');
+  writeln(' than ',size,'.');
+  halt;
+ end;
+
+ aapos:=0;
+
+ length:=x2-x1;
+
+ for bit:=0 to 3 do
+ begin;
+  port[$3c4]:=2; port[$3ce]:=4; port[$3C5]:=1 shl bit; port[$3CF]:=bit;
+  for yy:=y1 to y2 do
+  begin;
+   move(mem[$A400*yy*80+x1],aa[aapos],length);
+   inc(aapos,length);
+  end;
+ end;
+ bit:=getpixel(0,0);
+
+end;
+
+procedure grab(x1,y1,x2,y2,realx,realy:integer; flav:flavourtype;
+ mem,nat:boolean);
+ { yes, I *do* know how to spell "really"! }
+var
+ s:word;
+ p:pointer;
+ ch:chunkblocktype;
+begin;
+ inc(this_chunk);
+ offsets[this_chunk]:=filepos(f);
+
+
+ s:=imagesize(x1,y1,x2,y2);
+ getmem(p,s);
+ getimage(x1,y1,x2,y2,p^);
+
+ with ch do
+ begin;
+  flavour:=flav;
+  x:=realx; y:=realy;
+
+  xl:=x2-x1;
+  yl:=y2-y1;
+  size:=s;
+  memorise:=mem;
+  natural:=nat;
+ end;
+
+ setvisualpage(1);
+ setactivepage(1);
+ readln;
+ putimage(ch.x,ch.y,p^,0);
+
+ if flav=ch_EGA then
+ begin;
+  freemem(p,s);
+  s:=4*((x2-x1+7) div 8)*(y2-y1+1);
+  with ch do
+  begin;
+   size:=s;
+   x:=x div 8;
+   xl:=(xl+7) div 8;
+   mgrab(x,y,x+xl,y+yl,s);
+  end;
+ end;
+
+ readln;
+ setvisualpage(0);
+ setactivepage(0);
+
+ blockwrite(f,ch,sizeof(ch));
+
+ case flav of
+  ch_EGA : if not nat then blockwrite(f,aa,s);
+  ch_BGI : begin;
+            if not nat then blockwrite(f,p^,s);
+            freemem(p,s);
+           end;
+ end;
+{ rectangle(x1,y1,x2,y2);}
+end;*/
+
+int main(int argc, const char* argv[])
+{pio_initialize(argc, argv);
+;
+ gd=3; gm=0; initgraph(gd,gm,"c:\\bp\\bgi");
+ loadtemp("chunkbit.avd"); load();
+ setwritemode(xorput);
+
+ num_chunks=9;
+
+ open_chunk();
+
+ grab(  0,103,169,159, 72,86,ch_ega,false,false); /* Stairs... */
+ grab(172,103,341,159, 72,86,ch_ega,false,false);
+
+ loadtemp("chunkbi3.avd");
+
+ grab(  0,130, 79,157,341,94,ch_bgi,true ,true );
+ grab(  0,130, 79,157,341,94,ch_ega,false,false);
+ grab(  0,102, 79,129,341,94,ch_ega,false,false);
+ grab(  0, 74, 79,101,341,94,ch_ega,false,false); /* Far door. */
+
+ loadtemp("chunkbi2.avd");
+
+ grab(393, 92,451,137,512,98,ch_bgi,true ,true ); /* Right-hand door. */
+ grab(393, 92,451,137,512,98,ch_ega,false,false);
+ grab(453, 92,511,137,512,98,ch_ega,false,false);
+
+ close_chunk();
+return EXIT_SUCCESS;
+}
diff --git a/engines/avalanche/chunkxf4.cpp b/engines/avalanche/chunkxf4.cpp
new file mode 100644
index 0000000..2dfa34d
--- /dev/null
+++ b/engines/avalanche/chunkxf4.cpp
@@ -0,0 +1,285 @@
+#include "ptoc.h"
+
+
+#include "graph.h"
+/*#include "Tommys.h"*/
+/*#include "Crt.h"*/
+
+
+enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
+
+struct chunkblocktype {
+                  flavourtype flavour;
+                  integer x,y;
+                  integer xl,yl;
+                  longint size;
+                  boolean natural;
+
+                  boolean memorise; /* Hold it in memory? */
+};
+
+enum kind {walled,unwalled, last_kind};
+
+const array<1,44,char> chunkheader = 
+string("Chunk-type AVD file, for an Avvy game.")+'\32'+'\261'+'\x30'+'\x1'+'\x75'+'\261';
+
+const integer arraysize = 12000;
+
+const kind w = walled; const kind uw = unwalled;
+
+array<1,50,longint> offsets;
+byte num_chunks,this_chunk;
+integer gd,gm;
+untyped_file f;
+array<0,arraysize,byte> aa;
+
+void rdln()
+{
+    char r;
+      return;
+ do { r=readkey(); } while (!(! keypressed()));
+}
+
+void load(kind k)
+{
+ byte a1 /*absolute $A400:800*/;
+ byte bit;
+ untyped_file f;
+
+
+ if (k==unwalled)  assign(f,"place29.avd");
+  else assign(f,"walled.avd");
+
+ reset(f,1);
+ seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a1,12080);
+ }
+
+ close(f);
+ bit=getpixel(0,0);
+}
+
+void finder()
+{
+    char r; integer x,y;
+      return;
+ setfillstyle(0,0); setcolor(14);
+ x=320; y=100; setwritemode(xorput);
+ do {
+  bar(0,0,200,10);
+  outtextxy(0,0,strf(x)+','+strf(y));
+  line(x-20,y,x+20,y); line(x,y-20,x,y+20);
+  do {; } while (!keypressed());
+  line(x-20,y,x+20,y); line(x,y-20,x,y+20);
+  switch (readkey()) {
+   case '\15': return; break;
+   case '8': y -= 10; break;
+   case '4': x -= 10; break;
+   case '6': x += 10; break;
+   case '2': y += 10; break;
+    case '\0': switch (readkey()) {
+         case cup: y -= 1; break;
+         case cdown: y += 1; break;
+         case cleft: x -= 1; break;
+         case cright: x += 1; break;
+        }
+        break;
+  }
+ } while (!false);
+}
+
+void loadtemp(string which)
+{
+ byte a0 /*absolute $A000:800*/;
+ byte bit;
+ untyped_file f;
+
+
+ assign(f,string("corr")+which+"tmp.avd"); reset(f,1);
+ seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a0,12080);
+ }
+ close(f);
+
+ bit=getpixel(0,0);
+
+ finder();
+}
+
+void open_chunk()
+{
+ assign(f,"chunk29.avd");
+ rewrite(f,1);
+ blockwrite(f,chunkheader,sizeof(chunkheader));
+ blockwrite(f,num_chunks,1);
+ blockwrite(f,offsets,num_chunks*4);
+
+ this_chunk=0;
+}
+
+void close_chunk()
+{
+ seek(f,45);
+ blockwrite(f,offsets,num_chunks*4); /* make sure they're right! */
+ close(f);
+}
+
+void mgrab(integer x1,integer y1,integer x2,integer y2, word size)
+{
+    integer yy; word aapos; byte length,bit;
+
+ if (size>arraysize) 
+ {
+  restorecrtmode();
+  output << "*** SORRY! *** Increase the arraysize constant to be greater" << NL;
+  output << " than " << size << '.' << NL;
+  exit(0);
+ }
+
+ aapos=0;
+
+ length=x2-x1;
+
+ for( bit=0; bit <= 3; bit ++)
+ {
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  for( yy=y1; yy <= y2; yy ++)
+  {
+   move(mem[0xa400*yy*80+x1],aa[aapos],length);
+   aapos += length;
+  }
+ }
+ bit=getpixel(0,0);
+
+}
+
+void grab(integer x1,integer y1,integer x2,integer y2,integer realx,integer realy, flavourtype flav,
+ boolean mem,boolean nat, kind k)
+ /* yes, I *do* know how to spell "really"! */
+{
+ word s;
+ pointer p;
+ chunkblocktype ch;
+
+/* rectangle(x1,y1,x2,y2); exit;*/
+ this_chunk += 1;
+ offsets[this_chunk]=filepos(f);
+
+
+ s=imagesize(x1,y1,x2,y2);
+ getmem(p,s);
+ getimage(x1,y1,x2,y2,p);
+
+ {
+  ch.flavour=flav;
+  ch.x=realx; ch.y=realy;
+
+  ch.xl=x2-x1;
+  ch.yl=y2-y1;
+  ch.size=s;
+  ch.memorise=mem;
+  ch.natural=nat;
+ }
+
+ load(k);
+
+ setvisualpage(1);
+ setactivepage(1);
+ rdln();
+ putimage(ch.x,ch.y,p,0);
+
+ if (flav==ch_ega) 
+ {
+  freemem(p,s);
+  s=4*(((x2 / 8)-(x1 / 8))+2)*(y2-y1+1);
+  {
+   ch.size=s;
+   ch.x=ch.x / 8;
+   ch.xl=((realx-ch.x*8)+(x2-x1)+7) / 8;
+   mgrab(ch.x,ch.y,ch.x+ch.xl,ch.y+ch.yl,s);
+  }
+ } else
+             /* For BGI pictures. */
+  {
+   ch.x=ch.x / 8;
+   ch.xl=(ch.xl+7) / 8;
+   ch.size=imagesize(ch.x*8,ch.y,(ch.x+ch.xl)*8,ch.y+ch.yl);
+  }
+
+ rdln();
+ setvisualpage(0);
+ setactivepage(0);
+
+ blockwrite(f,ch,sizeof(ch));
+
+ switch (flav) {
+  case ch_ega : if (! nat)  blockwrite(f,aa,s); break;
+  case ch_bgi : {
+            if (! nat)  blockwrite(f,p,s);
+            freemem(p,s);
+           }
+           break;
+ }
+/* rectangle(x1,y1,x2,y2);*/
+}
+
+int main(int argc, const char* argv[])
+{
+ pio_initialize(argc, argv);
+ gd=3; gm=0; initgraph(gd,gm,"c:\\bp\\bgi");
+ setwritemode(xorput);
+
+ loadtemp("2");
+
+ num_chunks=32;
+
+ open_chunk();
+
+ grab(  0, 11,100,104,260,41,ch_ega,false,false,uw); /*1 Geida's door. */
+ grab(103, 12,203, 55,207,61,ch_ega,false,false,uw); /*2 "Ite mingite" sign. */
+ grab(123, 59,185,103,254,90,ch_ega,false,false,uw); /*3 Normal N door (rt handle)*/
+ grab(227, 10,289, 56,254,88,ch_ega,false,false,uw); /*4 Normal N door (lt handle)*/
+ grab(207, 63,294,105,  9,47,ch_ega,false,false, w); /*5 Window in left wall. */
+ grab(312, 10,416, 56,233,88,ch_ega,false,false,uw); /*6 North archway */
+ grab(331, 78,384,101, 32,64,ch_ega,false,false, w); /*7 2 torches, L wall. */
+ grab(607,142,621,157,233,88,ch_ega,false,false,uw); /*8 1 torch, N wall. */
+ grab(417, 11,577, 59,311,61,ch_ega,false,false,uw); /*9 "The Wrong Way!" sign. */
+
+ loadtemp("3");
+
+ grab(  0, 11, 62, 63,557,108,ch_ega,false,false, w); /*10 Near right candle */
+ grab( 64, 11,120, 63, 18,108,ch_ega,false,false, w); /*11 Near left candle */
+ grab(122, 11,169, 55, 93,100,ch_ega,false,false, w); /*12 Far left candle */
+ grab(171, 11,222, 52,500,100,ch_ega,false,false, w); /*13 Far right candle */
+ grab( 32, 68, 84,104,285, 70,ch_ega,false,false,uw); /*14 Far window */
+ grab(138, 65,190, 92,233, 88,ch_ega,false,false,uw); /*15 Baron du Lustie pic 1 */
+ grab(244, 65,296, 92,103, 51,ch_ega,false,false,uw); /*16 Baron du Lustie pic 2 */
+ grab(172, 54,280, 63,233, 88,ch_ega,false,false,uw); /*17 "Art Gallery" sign */
+ grab(341, 18,402, 47,563, 48,ch_ega,false,false, w); /*18 Right wall torches */
+ grab(528, 10,639,160,528, 10,ch_ega,false,false,uw); /*19 Right wall */
+ grab(430, 50,526, 88,543, 50,ch_ega,false,false, w); /*20 Window in right wall */
+ grab(451, 91,494,152,566, 91,ch_ega,false,false, w); /*21 Door in right wall */
+ grab(238, 10,307, 14,484,156,ch_ega,false,false, w); /*22 Near wall door: right */
+ grab(239, 16,300, 20,300,156,ch_ega,false,false, w); /*23 Near wall door: middle */
+ grab(234, 22,306, 26,100,156,ch_ega,false,false, w); /*24 Near wall door: left */
+ grab( 25,113, 87,156,254, 90,ch_ega,false,false, w); /*25 Far door opening stage 1 */
+ grab(131,113,193,156,254, 90,ch_ega,false,false, w); /*26 Far door opening stage 2 */
+ grab(237,113,299,156,254, 90,ch_ega,false,false, w); /*27 Far door opening stage 3 */
+
+ loadtemp("4");
+
+ grab(  0, 11,112,160,  0, 11,ch_ega,false,false,uw); /*28 Left wall */
+ grab(144, 44,197, 76, 30, 44,ch_ega,false,false, w); /*29 Shield on L wall. */
+ grab(149, 90,192,152, 35, 90,ch_ega,false,false, w); /*30 Door in L wall. */
+ grab(463, 28,527, 43,252,100,ch_ega,false,false, w); /*31 Archway x 2 */
+ grab(463, 79,527, 94,252,100,ch_ega,false,false, w); /*32 Archway x 3 */
+
+ close_chunk();
+ return EXIT_SUCCESS;
+}
diff --git a/engines/avalanche/chunkxf5.cpp b/engines/avalanche/chunkxf5.cpp
new file mode 100644
index 0000000..c976683
--- /dev/null
+++ b/engines/avalanche/chunkxf5.cpp
@@ -0,0 +1,244 @@
+#include "ptoc.h"
+
+
+#include "graph.h"
+/*#include "Tommys.h"*/
+/*#include "Crt.h"*/
+
+
+enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
+
+struct chunkblocktype {
+                  flavourtype flavour;
+                  integer x,y;
+                  integer xl,yl;
+                  longint size;
+                  boolean natural;
+
+                  boolean memorise; /* Hold it in memory? */
+};
+
+const array<1,44,char> chunkheader = 
+string("Chunk-type AVD file, for an Avvy game.")+'\32'+'\261'+'\x30'+'\x1'+'\x75'+'\261';
+
+const integer arraysize = 12000;
+
+array<1,30,longint> offsets;
+byte num_chunks,this_chunk;
+integer gd,gm;
+untyped_file f;
+array<0,arraysize,byte> aa;
+
+void finder()
+{
+    char r; integer x,y;
+;
+ setfillstyle(0,0); setcolor(14);
+ x=320; y=100; setwritemode(xorput);
+ do {
+  bar(0,0,200,10);
+  outtextxy(0,0,strf(x)+','+strf(y));
+  line(x-20,y,x+20,y); line(x,y-20,x,y+20);
+  do {; } while (!keypressed());
+  line(x-20,y,x+20,y); line(x,y-20,x,y+20);
+  switch (readkey()) {
+   case '\15': return; break;
+   case '8': y -= 10; break;
+   case '4': x -= 10; break;
+   case '6': x += 10; break;
+   case '2': y += 10; break;
+    case '\0': switch (readkey()) {
+         case cup: y -= 1; break;
+         case cdown: y += 1; break;
+         case cleft: x -= 1; break;
+         case cright: x += 1; break;
+        }
+        break;
+  }
+ } while (!false);
+}
+
+void load()
+{
+ byte a1 /*absolute $A400:800*/;
+ byte bit;
+ untyped_file f;
+;
+
+ assign(f,"v:place1.avd"); reset(f,1);
+ seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a1,12080);
+ }
+
+ close(f);
+ bit=getpixel(0,0);
+
+ setvisualpage(1); setactivepage(1);
+ finder();
+}
+
+void loadtemp()
+{
+ byte a0 /*absolute $A000:800*/;
+ byte bit;
+ untyped_file f;
+;
+
+ assign(f,"chunkbi9.avd"); reset(f,1);
+ seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a0,12080);
+ }
+ close(f);
+
+ bit=getpixel(0,0);
+
+ setvisualpage(0); setactivepage(0);
+ finder();
+}
+
+void open_chunk()
+{;
+ assign(f,"chunk1.avd");
+ rewrite(f,1);
+ blockwrite(f,chunkheader,sizeof(chunkheader));
+ blockwrite(f,num_chunks,1);
+ blockwrite(f,offsets,num_chunks*4);
+
+ this_chunk=0;
+}
+
+void close_chunk()
+{;
+ seek(f,45);
+ blockwrite(f,offsets,num_chunks*4); /* make sure they're right! */
+ close(f);
+}
+
+void mgrab(integer x1,integer y1,integer x2,integer y2, word size)
+{
+    integer yy; word aapos; byte length,bit;
+;
+ if (size>arraysize) 
+ {;
+  restorecrtmode();
+  output << "*** SORRY! *** Increase the arraysize constant to be greater" << NL;
+  output << " than " << size << '.' << NL;
+  exit(0);
+ }
+
+ aapos=0;
+
+ length=x2-x1;
+
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  for( yy=y1; yy <= y2; yy ++)
+  {;
+   move(mem[0xa400*yy*80+x1],aa[aapos],length);
+   aapos += length;
+  }
+ }
+ bit=getpixel(0,0);
+
+}
+
+void grab(integer x1,integer y1,integer x2,integer y2,integer realx,integer realy, flavourtype flav,
+ boolean mem,boolean nat)
+ /* yes, I *do* know how to spell "really"! */
+{
+ word s;
+ pointer p;
+ chunkblocktype ch;
+;
+/* rectangle(x1,y1,x2,y2); exit;*/
+ this_chunk += 1;
+ offsets[this_chunk]=filepos(f);
+
+
+ s=imagesize(x1,y1,x2,y2);
+ getmem(p,s);
+ getimage(x1,y1,x2,y2,p);
+
+ {;
+  ch.flavour=flav;
+  ch.x=realx; ch.y=realy;
+
+  ch.xl=x2-x1;
+  ch.yl=y2-y1;
+  ch.size=s;
+  ch.memorise=mem;
+  ch.natural=nat;
+ }
+
+ setvisualpage(1);
+ setactivepage(1);
+ input >> NL;
+ if (! nat)  putimage(ch.x,ch.y,p,0);
+
+ if (flav==ch_ega) 
+ {;
+  freemem(p,s);
+  s=4*(((x2+7) / 8)-(x1 / 8))*(y2-y1+1);
+  {;
+   ch.size=s;
+   ch.x=ch.x / 8;
+   ch.xl=(ch.xl+7) / 8;
+   mgrab(ch.x,ch.y,ch.x+ch.xl,ch.y+ch.yl,s);
+  }
+ } else
+  {;
+   ch.x=ch.x / 8;
+   ch.xl=(ch.xl+7) / 8;
+   ch.size=imagesize(ch.x*8,ch.y,(ch.x+ch.xl)*8,ch.y+ch.yl);
+  }
+
+ input >> NL;
+ setvisualpage(0);
+ setactivepage(0);
+
+ blockwrite(f,ch,sizeof(ch));
+
+ switch (flav) {
+  case ch_ega : if (! nat)  blockwrite(f,aa,s); break;
+  case ch_bgi : {;
+            if (! nat)  blockwrite(f,p,s);
+            freemem(p,s);
+           }
+           break;
+ }
+/* rectangle(x1,y1,x2,y2);*/
+}
+
+int main(int argc, const char* argv[])
+{pio_initialize(argc, argv);
+;
+ gd=3; gm=0; initgraph(gd,gm,"c:\\bp\\bgi");
+ load();
+ loadtemp();
+ setwritemode(xorput);
+
+ num_chunks=9;
+
+ open_chunk();
+
+ grab( 48, 42, 94, 66,400,105,ch_ega, true,false); /*1 Avvy asleep. */
+ grab(100, 42,146, 66,400,105,ch_ega, true,false); /*2 Avvy asleep again. */
+ grab(152, 42,198, 66,400,105,ch_ega,false,false); /*3 Avvy awake in bed. */
+ grab(106,113,152,137,400,105,ch_bgi,true ,true ); /*4 No Avvy in bed. */
+
+ grab(206, 42,279, 75,150, 91,ch_ega,false,false); /*5 Open trunk. */
+ grab(206, 42,287, 75,150, 91,ch_bgi,true,  true); /*6 Shut trunk. */
+
+ grab( 69, 70,102, 88,431,100,ch_ega,false,false); /*7 Arkata 1. */
+ grab(118, 70,151, 88,431,100,ch_ega,false,false); /*8 Arkata 2. */
+ grab(167, 70,200, 88,431,100,ch_ega,false,false); /*9 Arkata 3. */
+ close_chunk();
+return EXIT_SUCCESS;
+}
diff --git a/engines/avalanche/chunkxf6.cpp b/engines/avalanche/chunkxf6.cpp
new file mode 100644
index 0000000..6652222
--- /dev/null
+++ b/engines/avalanche/chunkxf6.cpp
@@ -0,0 +1,251 @@
+#include "ptoc.h"
+
+
+#include "graph.h"
+/*#include "Tommys.h"*/
+/*#include "Crt.h"*/
+
+
+enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
+
+struct chunkblocktype {
+                  flavourtype flavour;
+                  integer x,y;
+                  integer xl,yl;
+                  longint size;
+                  boolean natural;
+
+                  boolean memorise; /* Hold it in memory? */
+};
+
+const array<1,44,char> chunkheader = 
+string("Chunk-type AVD file, for an Avvy game.")+'\32'+'\261'+'\x30'+'\x1'+'\x75'+'\261';
+
+const integer arraysize = 12000;
+
+const integer x_ofs = 165;
+const integer y_ofs = 58;
+
+array<1,30,longint> offsets;
+byte num_chunks,this_chunk;
+integer gd,gm;
+untyped_file f;
+array<0,arraysize,byte> aa;
+
+void finder()
+{
+    char r; integer x,y;
+;
+ setfillstyle(0,0); setcolor(14);
+ x=320; y=100; setwritemode(xorput);
+ do {
+  bar(0,0,200,10);
+  outtextxy(0,0,strf(x)+','+strf(y));
+  line(x-20,y,x+20,y); line(x,y-20,x,y+20);
+  do {; } while (!keypressed());
+  line(x-20,y,x+20,y); line(x,y-20,x,y+20);
+  switch (readkey()) {
+   case '\15': return; break;
+   case '8': y -= 10; break;
+   case '4': x -= 10; break;
+   case '6': x += 10; break;
+   case '2': y += 10; break;
+    case '\0': switch (readkey()) {
+         case cup: y -= 1; break;
+         case cdown: y += 1; break;
+         case cleft: x -= 1; break;
+         case cright: x += 1; break;
+        }
+        break;
+  }
+ } while (!false);
+}
+
+void load()
+{
+ byte a1 /*absolute $A400:800*/;
+ byte bit;
+ untyped_file f;
+;
+
+ assign(f,"v:place19.avd"); reset(f,1);
+ seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a1,12080);
+ }
+
+ close(f);
+ bit=getpixel(0,0);
+ setvisualpage(1); setactivepage(1);
+ finder();
+ setvisualpage(0); setactivepage(0);
+}
+
+void loadtemp()
+{
+ byte a0 /*absolute $A000:800*/;
+ byte bit;
+ untyped_file f;
+;
+
+ assign(f,"d:temp1.avd"); reset(f,1);
+ seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a0,12080);
+ }
+ close(f);
+
+ bit=getpixel(0,0);
+
+/* finder;*/
+}
+
+void open_chunk()
+{;
+ assign(f,"chunk19.avd");
+ rewrite(f,1);
+ blockwrite(f,chunkheader,sizeof(chunkheader));
+ blockwrite(f,num_chunks,1);
+ blockwrite(f,offsets,num_chunks*4);
+
+ this_chunk=0;
+}
+
+void close_chunk()
+{;
+ seek(f,45);
+ blockwrite(f,offsets,num_chunks*4); /* make sure they're right! */
+ close(f);
+}
+
+void mgrab(integer x1,integer y1,integer x2,integer y2, word size)
+{
+    integer yy; word aapos; byte length,bit;
+;
+ if (size>arraysize) 
+ {;
+  restorecrtmode();
+  output << "*** SORRY! *** Increase the arraysize constant to be greater" << NL;
+  output << " than " << size << '.' << NL;
+  exit(0);
+ }
+
+ aapos=0;
+
+ length=x2-x1;
+
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  for( yy=y1; yy <= y2; yy ++)
+  {;
+   move(mem[0xa400*yy*80+x1],aa[aapos],length);
+   aapos += length;
+  }
+ }
+ bit=getpixel(0,0);
+
+}
+
+void grab(integer x1,integer y1,integer x2,integer y2,integer realx,integer realy, flavourtype flav,
+ boolean mem,boolean nat)
+ /* yes, I *do* know how to spell "really"! */
+{
+ word s;
+ pointer p;
+ chunkblocktype ch;
+;
+ x1 -= x_ofs; x2 -= x_ofs;
+ y1 -= y_ofs; y2 -= y_ofs;
+/* rectangle(x1,y1,x2,y2); exit;*/
+ this_chunk += 1;
+ offsets[this_chunk]=filepos(f);
+
+
+ s=imagesize(x1,y1,x2,y2);
+ getmem(p,s);
+ getimage(x1,y1,x2,y2,p);
+
+ {;
+  ch.flavour=flav;
+  ch.x=realx; ch.y=realy;
+
+  ch.xl=x2-x1;
+  ch.yl=y2-y1;
+  ch.size=s;
+  ch.memorise=mem;
+  ch.natural=nat;
+ }
+
+ setvisualpage(1);
+ setactivepage(1);
+/* readln;*/
+ putimage(ch.x,ch.y,p,0);
+
+ if (flav==ch_ega) 
+ {;
+  freemem(p,s);
+  s=4*(((x2 / 8)-(x1 / 8))+2)*(y2-y1+1);
+  {;
+   ch.size=s;
+   ch.x=ch.x / 8;
+   ch.xl=(ch.xl / 8)+2;
+   mgrab(ch.x,ch.y,ch.x+ch.xl,ch.y+ch.yl,s);
+  }
+ } else
+             /* For BGI pictures. */
+  {;
+   ch.x=ch.x / 8;
+   ch.xl=(ch.xl+7) / 8;
+   ch.size=imagesize(ch.x*8,ch.y,(ch.x+ch.xl)*8,ch.y+ch.yl);
+  }
+
+/* readln;*/
+ setvisualpage(0);
+ setactivepage(0);
+
+ blockwrite(f,ch,sizeof(ch));
+
+ switch (flav) {
+  case ch_ega : if (! nat)  blockwrite(f,aa,s); break;
+  case ch_bgi : {;
+            if (! nat)  blockwrite(f,p,s);
+            freemem(p,s);
+           }
+           break;
+ }
+/* rectangle(x1,y1,x2,y2);*/
+}
+
+int main(int argc, const char* argv[])
+{pio_initialize(argc, argv);
+;
+ gd=3; gm=0; initgraph(gd,gm,"c:\\bp\\bgi");
+ load();
+ loadtemp();
+ setwritemode(xorput);
+
+ num_chunks=13;
+
+ open_chunk();
+
+ grab(165, 68,207, 87,127,105,ch_ega,false,false); /*1 The settle with no lute*/
+ grab(209, 68,255, 96,159, 84,ch_bgi, true, true); /*2 Dogfood looks right. */
+ grab(209, 68,255, 96,159, 84,ch_ega, true,false); /*3 Dogfood- straight ahead. */
+ grab(257, 68,303, 96,159, 84,ch_ega, true,false); /*4 Dogfood- left. */
+ grab(305, 68,351, 96,159, 84,ch_ega, true,false); /*5 DF drinks: stage 1. */
+ grab(353, 68,399, 96,159, 84,ch_ega, true,false); /*6 DF drinks: stage 2. */
+ grab(401, 68,447, 96,159, 84,ch_ega, true,false); /*7 DF drinks: stage 3. */
+ grab(449, 84,465, 94,392, 87,ch_ega, true,false); /*8 Ibythneth smiles. */
+ grab(449, 75,488, 82,341,123,ch_ega, true,false); /*9 No habit under the settle. */
+ grab(508, 68,580,106,485,105,ch_ega, true,false); /*10 M gets your drink. */
+ grab(508, 68,580,106,485,105,ch_bgi, true, true); /*11 M gets up again. */
+ grab(470, 84,486, 91,510,108,ch_ega, true,false); /*12 M looks right. */
+ grab(488, 84,504, 91,510,108,ch_ega, true,false); /*13 M winks. */
+ close_chunk();
+return EXIT_SUCCESS;
+}
diff --git a/engines/avalanche/chunkxf7.cpp b/engines/avalanche/chunkxf7.cpp
new file mode 100644
index 0000000..97bacb5
--- /dev/null
+++ b/engines/avalanche/chunkxf7.cpp
@@ -0,0 +1,236 @@
+#include "ptoc.h"
+
+
+#include "graph.h"
+/*#include "Tommys.h"*/
+/*#include "Crt.h"*/
+
+
+enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
+
+struct chunkblocktype {
+                  flavourtype flavour;
+                  integer x,y;
+                  integer xl,yl;
+                  longint size;
+                  boolean natural;
+
+                  boolean memorise; /* Hold it in memory? */
+};
+
+const array<1,44,char> chunkheader = 
+string("Chunk-type AVD file, for an Avvy game.")+'\32'+'\261'+'\x30'+'\x1'+'\x75'+'\261';
+
+const integer arraysize = 12000;
+
+array<1,30,longint> offsets;
+byte num_chunks,this_chunk;
+integer gd,gm;
+untyped_file f;
+array<0,arraysize,byte> aa;
+
+void finder()
+{
+    char r; integer x,y;
+;
+ setfillstyle(0,0); setcolor(14);
+ x=320; y=100; setwritemode(xorput);
+ do {
+  bar(0,0,200,10);
+  outtextxy(0,0,strf(x)+','+strf(y));
+  line(x-20,y,x+20,y); line(x,y-20,x,y+20);
+  do {; } while (!keypressed());
+  line(x-20,y,x+20,y); line(x,y-20,x,y+20);
+  switch (readkey()) {
+   case '\15': return; break;
+   case '8': y -= 10; break;
+   case '4': x -= 10; break;
+   case '6': x += 10; break;
+   case '2': y += 10; break;
+    case '\0': switch (readkey()) {
+         case cup: y -= 1; break;
+         case cdown: y += 1; break;
+         case cleft: x -= 1; break;
+         case cright: x += 1; break;
+        }
+        break;
+  }
+ } while (!false);
+}
+
+void load()
+{
+ byte a1 /*absolute $A400:800*/;
+ byte bit;
+ untyped_file f;
+;
+
+ assign(f,"place25.avd"); reset(f,1);
+ seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a1,12080);
+ }
+
+ close(f);
+ bit=getpixel(0,0);
+ setvisualpage(1); setactivepage(1);
+ finder();
+ setvisualpage(0); setactivepage(0);
+}
+
+void loadtemp()
+{
+ byte a0 /*absolute $A000:800*/;
+ byte bit;
+ untyped_file f;
+;
+
+ assign(f,"chunkbi3.avd"); reset(f,1);
+ seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a0,12080);
+ }
+ close(f);
+
+ bit=getpixel(0,0);
+
+ finder();
+}
+
+void open_chunk()
+{;
+ assign(f,"chunk25.avd");
+ rewrite(f,1);
+ blockwrite(f,chunkheader,sizeof(chunkheader));
+ blockwrite(f,num_chunks,1);
+ blockwrite(f,offsets,num_chunks*4);
+
+ this_chunk=0;
+}
+
+void close_chunk()
+{;
+ seek(f,45);
+ blockwrite(f,offsets,num_chunks*4); /* make sure they're right! */
+ close(f);
+}
+
+void mgrab(integer x1,integer y1,integer x2,integer y2, word size)
+{
+    integer yy; word aapos; byte length,bit;
+;
+ if (size>arraysize) 
+ {;
+  restorecrtmode();
+  output << "*** SORRY! *** Increase the arraysize constant to be greater" << NL;
+  output << " than " << size << '.' << NL;
+  exit(0);
+ }
+
+ aapos=0;
+
+ length=x2-x1;
+
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  for( yy=y1; yy <= y2; yy ++)
+  {;
+   move(mem[0xa400*yy*80+x1],aa[aapos],length);
+   aapos += length;
+  }
+ }
+ bit=getpixel(0,0);
+
+}
+
+void grab(integer x1,integer y1,integer x2,integer y2,integer realx,integer realy, flavourtype flav,
+ boolean mem,boolean nat)
+ /* yes, I *do* know how to spell "really"! */
+{
+ word s;
+ pointer p;
+ chunkblocktype ch;
+;
+/* rectangle(x1,y1,x2,y2); exit;*/
+ this_chunk += 1;
+ offsets[this_chunk]=filepos(f);
+
+
+ s=imagesize(x1,y1,x2,y2);
+ getmem(p,s);
+ getimage(x1,y1,x2,y2,p);
+
+ {;
+  ch.flavour=flav;
+  ch.x=realx; ch.y=realy;
+
+  ch.xl=x2-x1;
+  ch.yl=y2-y1;
+  ch.size=s;
+  ch.memorise=mem;
+  ch.natural=nat;
+ }
+
+ setvisualpage(1);
+ setactivepage(1);
+ input >> NL;
+ putimage(ch.x,ch.y,p,0);
+
+ if (flav==ch_ega) 
+ {;
+  freemem(p,s);
+  s=4*(((x2 / 8)-(x1 / 8))+2)*(y2-y1+1);
+  {;
+   ch.size=s;
+   ch.x=ch.x / 8;
+   ch.xl=(ch.xl / 8)+2;
+   mgrab(ch.x,ch.y,ch.x+ch.xl,ch.y+ch.yl,s);
+  }
+ } else
+             /* For BGI pictures. */
+  {;
+   ch.x=ch.x / 8;
+   ch.xl=(ch.xl+7) / 8;
+   ch.size=imagesize(ch.x*8,ch.y,(ch.x+ch.xl)*8,ch.y+ch.yl);
+  }
+
+ input >> NL;
+ setvisualpage(0);
+ setactivepage(0);
+
+ blockwrite(f,ch,sizeof(ch));
+
+ switch (flav) {
+  case ch_ega : if (! nat)  blockwrite(f,aa,s); break;
+  case ch_bgi : {;
+            if (! nat)  blockwrite(f,p,s);
+            freemem(p,s);
+           }
+           break;
+ }
+/* rectangle(x1,y1,x2,y2);*/
+}
+
+int main(int argc, const char* argv[])
+{pio_initialize(argc, argv);
+;
+ gd=3; gm=0; initgraph(gd,gm,"c:\\bp\\bgi");
+ load();
+ loadtemp();
+ setwritemode(xorput);
+
+ num_chunks=3;
+
+ open_chunk();
+
+ grab( 16, 24,101, 45,448,116,ch_ega, true,false); /*2 The fire again. */
+ grab(118, 20,203, 45,448,112,ch_bgi, true, true); /*1 The natural fire. */
+ grab(118, 20,203, 45,448,112,ch_ega, true,false); /*3 Third stage of the fire. */
+ close_chunk();
+return EXIT_SUCCESS;
+}
diff --git a/engines/avalanche/chunkxf8.cpp b/engines/avalanche/chunkxf8.cpp
new file mode 100644
index 0000000..4435ee4
--- /dev/null
+++ b/engines/avalanche/chunkxf8.cpp
@@ -0,0 +1,243 @@
+#include "ptoc.h"
+
+
+#include "graph.h"
+/*#include "Tommys.h"*/
+/*#include "Crt.h"*/
+
+
+enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
+
+struct chunkblocktype {
+                  flavourtype flavour;
+                  integer x,y;
+                  integer xl,yl;
+                  longint size;
+                  boolean natural;
+
+                  boolean memorise; /* Hold it in memory? */
+};
+
+const array<1,44,char> chunkheader = 
+string("Chunk-type AVD file, for an Avvy game.")+'\32'+'\261'+'\x30'+'\x1'+'\x75'+'\261';
+
+const integer arraysize = 12000;
+
+array<1,30,longint> offsets;
+byte num_chunks,this_chunk;
+integer gd,gm;
+untyped_file f;
+array<0,arraysize,byte> aa;
+
+void finder()
+{
+    char r; integer x,y;
+;
+ setfillstyle(0,0); setcolor(14);
+ x=320; y=100; setwritemode(xorput);
+ do {
+  bar(0,0,200,10);
+  outtextxy(0,0,strf(x)+','+strf(y));
+  line(x-20,y,x+20,y); line(x,y-20,x,y+20);
+  do {; } while (!keypressed());
+  line(x-20,y,x+20,y); line(x,y-20,x,y+20);
+  switch (readkey()) {
+   case '\15': return; break;
+   case '8': y -= 10; break;
+   case '4': x -= 10; break;
+   case '6': x += 10; break;
+   case '2': y += 10; break;
+    case '\0': switch (readkey()) {
+         case cup: y -= 1; break;
+         case cdown: y += 1; break;
+         case cleft: x -= 1; break;
+         case cright: x += 1; break;
+        }
+        break;
+  }
+ } while (!false);
+}
+
+void load()
+{
+ byte a1 /*absolute $A400:800*/;
+ byte bit;
+ untyped_file f;
+;
+
+ assign(f,"place23.avd"); reset(f,1);
+ seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a1,12080);
+ }
+
+ close(f);
+ bit=getpixel(0,0);
+ setvisualpage(1); setactivepage(1);
+ finder();
+ setvisualpage(0); setactivepage(0);
+}
+
+void loadtemp(string x)
+{
+ byte a0 /*absolute $A000:800*/;
+ byte bit;
+ untyped_file f;
+;
+
+ assign(f,x); reset(f,1);
+ seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a0,12080);
+ }
+ close(f);
+
+ bit=getpixel(0,0);
+
+ finder();
+}
+
+void open_chunk()
+{;
+ assign(f,"chunk23.avd");
+ rewrite(f,1);
+ blockwrite(f,chunkheader,sizeof(chunkheader));
+ blockwrite(f,num_chunks,1);
+ blockwrite(f,offsets,num_chunks*4);
+
+ this_chunk=0;
+}
+
+void close_chunk()
+{;
+ seek(f,45);
+ blockwrite(f,offsets,num_chunks*4); /* make sure they're right! */
+ close(f);
+}
+
+void mgrab(integer x1,integer y1,integer x2,integer y2, word size)
+{
+    integer yy; word aapos; byte length,bit;
+;
+ if (size>arraysize) 
+ {;
+  restorecrtmode();
+  output << "*** SORRY! *** Increase the arraysize constant to be greater" << NL;
+  output << " than " << size << '.' << NL;
+  exit(0);
+ }
+
+ aapos=0;
+
+ length=x2-x1;
+
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  for( yy=y1; yy <= y2; yy ++)
+  {;
+   move(mem[0xa400*yy*80+x1],aa[aapos],length);
+   aapos += length;
+  }
+ }
+ bit=getpixel(0,0);
+
+}
+
+void grab(integer x1,integer y1,integer x2,integer y2,integer realx,integer realy, flavourtype flav,
+ boolean mem,boolean nat)
+ /* yes, I *do* know how to spell "really"! */
+{
+ word s;
+ pointer p;
+ chunkblocktype ch;
+;
+/* rectangle(x1,y1,x2,y2); exit;*/
+ this_chunk += 1;
+ offsets[this_chunk]=filepos(f);
+
+
+ s=imagesize(x1,y1,x2,y2);
+ getmem(p,s);
+ getimage(x1,y1,x2,y2,p);
+
+ {;
+  ch.flavour=flav;
+  ch.x=realx; ch.y=realy;
+
+  ch.xl=x2-x1;
+  ch.yl=y2-y1;
+  ch.size=s;
+  ch.memorise=mem;
+  ch.natural=nat;
+ }
+
+ setvisualpage(1);
+ setactivepage(1);
+ input >> NL;
+ putimage(ch.x,ch.y,p,0);
+
+ if (flav==ch_ega) 
+ {;
+  freemem(p,s);
+  s=4*(((x2 / 8)-(x1 / 8))+2)*(y2-y1+1);
+  {;
+   ch.size=s;
+   ch.x=ch.x / 8;
+   ch.xl=(ch.xl / 8)+2;
+   mgrab(ch.x,ch.y,ch.x+ch.xl,ch.y+ch.yl,s);
+  }
+ } else
+             /* For BGI pictures. */
+  {;
+   ch.x=ch.x / 8;
+   ch.xl=(ch.xl+7) / 8;
+   ch.size=imagesize(ch.x*8,ch.y,(ch.x+ch.xl)*8,ch.y+ch.yl);
+  }
+
+ input >> NL;
+ setvisualpage(0);
+ setactivepage(0);
+
+ blockwrite(f,ch,sizeof(ch));
+
+ switch (flav) {
+  case ch_ega : if (! nat)  blockwrite(f,aa,s); break;
+  case ch_bgi : {;
+            if (! nat)  blockwrite(f,p,s);
+            freemem(p,s);
+           }
+           break;
+ }
+/* rectangle(x1,y1,x2,y2);*/
+}
+
+int main(int argc, const char* argv[])
+{pio_initialize(argc, argv);
+;
+ gd=3; gm=0; initgraph(gd,gm,"c:\\bp\\bgi");
+ load();
+ loadtemp("chunkbi3.avd");
+ setwritemode(xorput);
+
+ num_chunks=6;
+
+ open_chunk();
+
+ grab(226, 21,242, 29,348, 96,ch_bgi, true,true ); /*1 Looking forwards. */
+ grab(226, 21,242, 29,348, 96,ch_ega, true,false); /*2 Looking left. */
+ grab(253, 21,269, 29,348, 96,ch_ega, true,false); /*3 Looking right. */
+ grab(240, 11,256, 19,348, 96,ch_ega, true,false); /*4 Blinking. */
+
+ loadtemp("chunkbi4.avd");
+
+ grab( 48, 83,110,126,324, 96,ch_ega,false,false); /*5 Eyes shut... */
+ grab(112, 83,173,126,325, 96,ch_ega,false,false); /*6 Asleep. */
+
+ close_chunk();
+return EXIT_SUCCESS;
+}
diff --git a/engines/avalanche/chunkxf9.cpp b/engines/avalanche/chunkxf9.cpp
new file mode 100644
index 0000000..96241d1
--- /dev/null
+++ b/engines/avalanche/chunkxf9.cpp
@@ -0,0 +1,237 @@
+#include "ptoc.h"
+
+
+#include "graph.h"
+/*#include "Tommys.h"*/
+/*#include "Crt.h"*/
+
+
+enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
+
+struct chunkblocktype {
+                  flavourtype flavour;
+                  integer x,y;
+                  integer xl,yl;
+                  longint size;
+                  boolean natural;
+
+                  boolean memorise; /* Hold it in memory? */
+};
+
+const array<1,44,char> chunkheader = 
+string("Chunk-type AVD file, for an Avvy game.")+'\32'+'\261'+'\x30'+'\x1'+'\x75'+'\261';
+
+const integer arraysize = 12000;
+
+array<1,30,longint> offsets;
+byte num_chunks,this_chunk;
+integer gd,gm;
+untyped_file f;
+array<0,arraysize,byte> aa;
+
+void finder()
+{
+    char r; integer x,y;
+;
+ setfillstyle(0,0); setcolor(14);
+ x=320; y=100; setwritemode(xorput);
+ do {
+  bar(0,0,200,10);
+  outtextxy(0,0,strf(x)+','+strf(y));
+  line(x-20,y,x+20,y); line(x,y-20,x,y+20);
+  do {; } while (!keypressed());
+  line(x-20,y,x+20,y); line(x,y-20,x,y+20);
+  switch (readkey()) {
+   case '\15': return; break;
+   case '8': y -= 10; break;
+   case '4': x -= 10; break;
+   case '6': x += 10; break;
+   case '2': y += 10; break;
+    case '\0': switch (readkey()) {
+         case cup: y -= 1; break;
+         case cdown: y += 1; break;
+         case cleft: x -= 1; break;
+         case cright: x += 1; break;
+        }
+        break;
+  }
+ } while (!false);
+}
+
+void load()
+{
+ byte a1 /*absolute $A400:800*/;
+ byte bit;
+ untyped_file f;
+;
+
+ assign(f,"place42.avd"); reset(f,1);
+ seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a1,12080);
+ }
+
+ close(f);
+ bit=getpixel(0,0);
+ setvisualpage(1); setactivepage(1);
+ finder();
+ setvisualpage(0); setactivepage(0);
+}
+
+void loadtemp()
+{
+ byte a0 /*absolute $A000:800*/;
+ byte bit;
+ untyped_file f;
+;
+
+ assign(f,"a:chunkbi3.avd"); reset(f,1);
+ seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a0,12080);
+ }
+ close(f);
+
+ bit=getpixel(0,0);
+
+ finder();
+}
+
+void open_chunk()
+{;
+ assign(f,"chunk42.avd");
+ rewrite(f,1);
+ blockwrite(f,chunkheader,sizeof(chunkheader));
+ blockwrite(f,num_chunks,1);
+ blockwrite(f,offsets,num_chunks*4);
+
+ this_chunk=0;
+}
+
+void close_chunk()
+{;
+ seek(f,45);
+ blockwrite(f,offsets,num_chunks*4); /* make sure they're right! */
+ close(f);
+}
+
+void mgrab(integer x1,integer y1,integer x2,integer y2, word size)
+{
+    integer yy; word aapos; byte length,bit;
+;
+ if (size>arraysize) 
+ {;
+  restorecrtmode();
+  output << "*** SORRY! *** Increase the arraysize constant to be greater" << NL;
+  output << " than " << size << '.' << NL;
+  exit(0);
+ }
+
+ aapos=0;
+
+ length=x2-x1;
+
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  for( yy=y1; yy <= y2; yy ++)
+  {;
+   move(mem[0xa400*yy*80+x1],aa[aapos],length);
+   aapos += length;
+  }
+ }
+ bit=getpixel(0,0);
+
+}
+
+void grab(integer x1,integer y1,integer x2,integer y2,integer realx,integer realy, flavourtype flav,
+ boolean mem,boolean nat)
+ /* yes, I *do* know how to spell "really"! */
+{
+ word s;
+ pointer p;
+ chunkblocktype ch;
+;
+/* rectangle(x1,y1,x2,y2); exit;*/
+ this_chunk += 1;
+ offsets[this_chunk]=filepos(f);
+
+
+ s=imagesize(x1,y1,x2,y2);
+ getmem(p,s);
+ getimage(x1,y1,x2,y2,p);
+
+ {;
+  ch.flavour=flav;
+  ch.x=realx; ch.y=realy;
+
+  ch.xl=x2-x1;
+  ch.yl=y2-y1;
+  ch.size=s;
+  ch.memorise=mem;
+  ch.natural=nat;
+ }
+
+ setvisualpage(1);
+ setactivepage(1);
+ input >> NL;
+ putimage(ch.x,ch.y,p,0);
+
+ if (flav==ch_ega) 
+ {;
+  freemem(p,s);
+  s=4*(((x2 / 8)-(x1 / 8))+2)*(y2-y1+1);
+  {;
+   ch.size=s;
+   ch.x=ch.x / 8;
+   ch.xl=(ch.xl / 8)+2;
+   mgrab(ch.x,ch.y,ch.x+ch.xl,ch.y+ch.yl,s);
+  }
+ } else
+             /* For BGI pictures. */
+  {;
+   ch.x=ch.x / 8;
+   ch.xl=(ch.xl+7) / 8;
+   ch.size=imagesize(ch.x*8,ch.y,(ch.x+ch.xl)*8,ch.y+ch.yl);
+  }
+
+ input >> NL;
+ setvisualpage(0);
+ setactivepage(0);
+
+ blockwrite(f,ch,sizeof(ch));
+
+ switch (flav) {
+  case ch_ega : if (! nat)  blockwrite(f,aa,s); break;
+  case ch_bgi : {;
+            if (! nat)  blockwrite(f,p,s);
+            freemem(p,s);
+           }
+           break;
+ }
+/* rectangle(x1,y1,x2,y2);*/
+}
+
+int main(int argc, const char* argv[])
+{pio_initialize(argc, argv);
+;
+ gd=3; gm=0; initgraph(gd,gm,"c:\\bp\\bgi");
+ load();
+ loadtemp();
+ setwritemode(xorput);
+
+ num_chunks=4;
+
+ open_chunk();
+
+ grab(276, 36,329, 73, 94, 97,ch_bgi, true,true ); /*1 Not tied to the tree.*/
+ grab(276, 36,329, 73, 94, 97,ch_ega,false,false); /*2 Tied to the tree. */
+ grab(182, 80,226, 88,311,132,ch_ega,false,false); /*3 Mushrooms have gone! */
+ grab(253, 75,267, 82,114, 98,ch_ega,false,false); /*4 Avalot blinks. */
+ close_chunk();
+return EXIT_SUCCESS;
+}
diff --git a/engines/avalanche/chunkxfa.cpp b/engines/avalanche/chunkxfa.cpp
new file mode 100644
index 0000000..6493e52
--- /dev/null
+++ b/engines/avalanche/chunkxfa.cpp
@@ -0,0 +1,240 @@
+#include "ptoc.h"
+
+
+#include "graph.h"
+/*#include "Tommys.h"*/
+/*#include "Crt.h"*/
+
+
+enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
+
+struct chunkblocktype {
+                  flavourtype flavour;
+                  integer x,y;
+                  integer xl,yl;
+                  longint size;
+                  boolean natural;
+
+                  boolean memorise; /* Hold it in memory? */
+};
+
+const array<1,44,char> chunkheader = 
+string("Chunk-type AVD file, for an Avvy game.")+'\32'+'\261'+'\x30'+'\x1'+'\x75'+'\261';
+
+const integer arraysize = 12000;
+
+array<1,30,longint> offsets;
+byte num_chunks,this_chunk;
+integer gd,gm;
+untyped_file f;
+array<0,arraysize,byte> aa;
+
+void finder()
+{
+    char r; integer x,y;
+; 
+ setfillstyle(0,0); setcolor(14);
+ x=320; y=100; setwritemode(xorput);
+ do {
+  bar(0,0,200,10);
+  outtextxy(0,0,strf(x)+','+strf(y));
+  line(x-20,y,x+20,y); line(x,y-20,x,y+20);
+  do {; } while (!keypressed());
+  line(x-20,y,x+20,y); line(x,y-20,x,y+20);
+  switch (readkey()) {
+   case '\15': return; break;
+   case '8': y -= 10; break;
+   case '4': x -= 10; break;
+   case '6': x += 10; break;
+   case '2': y += 10; break;
+    case '\0': switch (readkey()) {
+         case cup: y -= 1; break;
+         case cdown: y += 1; break;
+         case cleft: x -= 1; break;
+         case cright: x += 1; break;
+        }
+        break;
+  }
+ } while (!false);
+}
+
+void load()
+{
+ byte a1 /*absolute $A400:800*/;
+ byte bit;
+ untyped_file f;
+;
+
+ assign(f,"place7.avd"); reset(f,1);
+ seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a1,12080);
+ }
+
+ close(f);
+ bit=getpixel(0,0);
+ setvisualpage(1); setactivepage(1);
+/* finder;*/
+ setvisualpage(0); setactivepage(0);
+}
+
+void loadtemp()
+{
+ byte a0 /*absolute $A000:800*/;
+ byte bit;
+ untyped_file f;
+;
+
+ assign(f,"chunkbi3.avd"); reset(f,1);
+ seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a0,12080);
+ }
+ close(f);
+
+ bit=getpixel(0,0);
+
+/* finder;*/
+}
+
+void open_chunk()
+{;
+ assign(f,"chunk7.avd");
+ rewrite(f,1);
+ blockwrite(f,chunkheader,sizeof(chunkheader));
+ blockwrite(f,num_chunks,1);
+ blockwrite(f,offsets,num_chunks*4);
+
+ this_chunk=0;
+}
+
+void close_chunk()
+{;
+ seek(f,45);
+ blockwrite(f,offsets,num_chunks*4); /* make sure they're right! */
+ close(f);
+}
+
+void mgrab(integer x1,integer y1,integer x2,integer y2, word size)
+{
+    integer yy; word aapos; byte length,bit;
+;
+ if (size>arraysize) 
+ {;
+  restorecrtmode();
+  output << "*** SORRY! *** Increase the arraysize constant to be greater" << NL;
+  output << " than " << size << '.' << NL;
+  exit(0);
+ }
+
+ aapos=0;
+
+ length=x2-x1;
+
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  for( yy=y1; yy <= y2; yy ++)
+  {;
+   move(mem[0xa400*yy*80+x1],aa[aapos],length);
+   aapos += length;
+  }
+ }
+ bit=getpixel(0,0);
+
+}
+
+void grab(integer x1,integer y1,integer x2,integer y2,integer realx,integer realy, flavourtype flav,
+ boolean mem,boolean nat)
+ /* yes, I *do* know how to spell "really"! */
+{
+ word s;
+ pointer p;
+ chunkblocktype ch;
+;
+/* rectangle(x1,y1,x2,y2); exit;*/
+ this_chunk += 1;
+ offsets[this_chunk]=filepos(f);
+
+
+ s=imagesize(x1,y1,x2,y2);
+ getmem(p,s);
+ getimage(x1,y1,x2,y2,p);
+
+ {;
+  ch.flavour=flav;
+  ch.x=realx; ch.y=realy;
+
+  ch.xl=x2-x1;
+  ch.yl=y2-y1;
+  ch.size=s;
+  ch.memorise=mem;
+  ch.natural=nat;
+ }
+
+ setvisualpage(1);
+ setactivepage(1);
+ input >> NL;
+ putimage(ch.x,ch.y,p,0);
+
+ if (flav==ch_ega) 
+ {;
+  freemem(p,s);
+  s=4*(((x2 / 8)-(x1 / 8))+2)*(y2-y1+1);
+  {;
+   ch.size=s;
+   ch.x=ch.x / 8;
+   ch.xl=(ch.xl / 8)+2;
+   mgrab(ch.x,ch.y,ch.x+ch.xl,ch.y+ch.yl,s);
+  }
+ } else
+             /* For BGI pictures. */
+  {;
+   ch.x=ch.x / 8;
+   ch.xl=(ch.xl+7) / 8;
+   ch.size=imagesize(ch.x*8,ch.y,(ch.x+ch.xl)*8,ch.y+ch.yl);
+  }
+
+ input >> NL;
+ setvisualpage(0);
+ setactivepage(0);
+
+ blockwrite(f,ch,sizeof(ch));
+
+ switch (flav) {
+  case ch_ega : if (! nat)  blockwrite(f,aa,s); break;
+  case ch_bgi : {;
+            if (! nat)  blockwrite(f,p,s);
+            freemem(p,s);
+           }
+           break;
+ }
+/* rectangle(x1,y1,x2,y2);*/
+}
+
+int main(int argc, const char* argv[])
+{pio_initialize(argc, argv);
+;
+ gd=3; gm=0; initgraph(gd,gm,"c:\\bp\\bgi");
+ load();
+ loadtemp();
+ setwritemode(xorput);
+
+ num_chunks=7;
+
+ open_chunk();
+
+ grab(220, 32,269, 62,370,115,ch_ega,false,false); /*1 Jacques awake... */
+ grab(400, 12,450, 48,369,112,ch_ega,false,false); /*2 Jacques gone! */
+ grab(116, 47,176, 98,393, 87,ch_ega,false,false); /*3 Jacques going... */
+ grab(333, 31,393, 82,393, 87,ch_ega,false,false); /*4 The open door. */
+ grab(396, 80,452,135, 39, 91,ch_ega,false,false); /*5 The left door opening. */
+ grab(455, 80,510,135, 39, 91,ch_ega,false,false); /*6 The left door open. */
+ grab(455, 80,510,135, 39, 91,ch_bgi,true ,true ); /*7 The left door shut. */
+ close_chunk();
+return EXIT_SUCCESS;
+}
diff --git a/engines/avalanche/chunkxfb.cpp b/engines/avalanche/chunkxfb.cpp
new file mode 100644
index 0000000..7fda96c
--- /dev/null
+++ b/engines/avalanche/chunkxfb.cpp
@@ -0,0 +1,238 @@
+#include "ptoc.h"
+
+
+#include "graph.h"
+/*#include "Tommys.h"*/
+/*#include "Crt.h"*/
+
+
+enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
+
+struct chunkblocktype {
+                  flavourtype flavour;
+                  integer x,y;
+                  integer xl,yl;
+                  longint size;
+                  boolean natural;
+
+                  boolean memorise; /* Hold it in memory? */
+};
+
+const array<1,44,char> chunkheader = 
+string("Chunk-type AVD file, for an Avvy game.")+'\32'+'\261'+'\x30'+'\x1'+'\x75'+'\261';
+
+const integer arraysize = 12000;
+
+array<1,30,longint> offsets;
+byte num_chunks,this_chunk;
+integer gd,gm;
+untyped_file f;
+array<0,arraysize,byte> aa;
+
+void finder()
+{
+    char r; integer x,y;
+; 
+ setfillstyle(0,0); setcolor(14);
+ x=320; y=100; setwritemode(xorput);
+ do {
+  bar(0,0,200,10);
+  outtextxy(0,0,strf(x)+','+strf(y));
+  line(x-20,y,x+20,y); line(x,y-20,x,y+20);
+  do {; } while (!keypressed());
+  line(x-20,y,x+20,y); line(x,y-20,x,y+20);
+  switch (readkey()) {
+   case '\15': return; break;
+   case '8': y -= 10; break;
+   case '4': x -= 10; break;
+   case '6': x += 10; break;
+   case '2': y += 10; break;
+    case '\0': switch (readkey()) {
+         case cup: y -= 1; break;
+         case cdown: y += 1; break;
+         case cleft: x -= 1; break;
+         case cright: x += 1; break;
+        }
+        break;
+  }
+ } while (!false);
+}
+
+void load()
+{
+ byte a1 /*absolute $A400:800*/;
+ byte bit;
+ untyped_file f;
+;
+
+ assign(f,"place71.avd"); reset(f,1);
+ seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a1,12080);
+ }
+
+ close(f);
+ bit=getpixel(0,0);
+ setvisualpage(1); setactivepage(1);
+ finder();
+ setvisualpage(0); setactivepage(0);
+}
+
+void loadtemp()
+{
+ byte a0 /*absolute $A000:800*/;
+ byte bit;
+ untyped_file f;
+;
+
+ assign(f,"d:chunkbi2.avd"); reset(f,1);
+ seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a0,12080);
+ }
+ close(f);
+
+ bit=getpixel(0,0);
+
+ finder();
+}
+
+void open_chunk()
+{;
+ assign(f,"chunk71.avd");
+ rewrite(f,1);
+ blockwrite(f,chunkheader,sizeof(chunkheader));
+ blockwrite(f,num_chunks,1);
+ blockwrite(f,offsets,num_chunks*4);
+
+ this_chunk=0;
+}
+
+void close_chunk()
+{;
+ seek(f,45);
+ blockwrite(f,offsets,num_chunks*4); /* make sure they're right! */
+ close(f);
+}
+
+void mgrab(integer x1,integer y1,integer x2,integer y2, word size)
+{
+    integer yy; word aapos; byte length,bit;
+;
+ if (size>arraysize) 
+ {;
+  restorecrtmode();
+  output << "*** SORRY! *** Increase the arraysize constant to be greater" << NL;
+  output << " than " << size << '.' << NL;
+  exit(0);
+ }
+
+ aapos=0;
+
+ length=x2-x1;
+
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  for( yy=y1; yy <= y2; yy ++)
+  {;
+   move(mem[0xa400*yy*80+x1],aa[aapos],length);
+   aapos += length;
+  }
+ }
+ bit=getpixel(0,0);
+
+}
+
+void grab(integer x1,integer y1,integer x2,integer y2,integer realx,integer realy, flavourtype flav,
+ boolean mem,boolean nat)
+ /* yes, I *do* know how to spell "really"! */
+{
+ word s;
+ pointer p;
+ chunkblocktype ch;
+;
+/* rectangle(x1,y1,x2,y2); exit;*/
+ this_chunk += 1;
+ offsets[this_chunk]=filepos(f);
+
+
+ s=imagesize(x1,y1,x2,y2);
+ getmem(p,s);
+ getimage(x1,y1,x2,y2,p);
+
+ {;
+  ch.flavour=flav;
+  ch.x=realx; ch.y=realy;
+
+  ch.xl=x2-x1;
+  ch.yl=y2-y1;
+  ch.size=s;
+  ch.memorise=mem;
+  ch.natural=nat;
+ }
+
+ setvisualpage(1);
+ setactivepage(1);
+ input >> NL;
+ putimage(ch.x,ch.y,p,0);
+
+ if (flav==ch_ega) 
+ {;
+  freemem(p,s);
+  s=4*(((x2 / 8)-(x1 / 8))+2)*(y2-y1+1);
+  {;
+   ch.size=s;
+   ch.x=ch.x / 8;
+   ch.xl=(ch.xl / 8)+2;
+   mgrab(ch.x,ch.y,ch.x+ch.xl,ch.y+ch.yl,s);
+  }
+ } else
+             /* For BGI pictures. */
+  {;
+   ch.x=ch.x / 8;
+   ch.xl=(ch.xl+7) / 8;
+   ch.size=imagesize(ch.x*8,ch.y,(ch.x+ch.xl)*8,ch.y+ch.yl);
+  }
+
+ input >> NL;
+ setvisualpage(0);
+ setactivepage(0);
+
+ blockwrite(f,ch,sizeof(ch));
+
+ switch (flav) {
+  case ch_ega : if (! nat)  blockwrite(f,aa,s); break;
+  case ch_bgi : {;
+            if (! nat)  blockwrite(f,p,s);
+            freemem(p,s);
+           }
+           break;
+ }
+/* rectangle(x1,y1,x2,y2);*/
+}
+
+int main(int argc, const char* argv[])
+{pio_initialize(argc, argv);
+;
+ gd=3; gm=0; initgraph(gd,gm,"c:\\bp\\bgi");
+ load();
+ loadtemp();
+ setwritemode(xorput);
+
+ num_chunks=5;
+
+ open_chunk();
+
+ grab( 54, 57,124,116,188, 94,ch_ega,false,false); /*1 Door half-shut. */
+ grab(144, 57,203,116,188, 94,ch_ega,false,false); /*2 Door shut. */
+ grab(513, 92,572,151,188, 94,ch_ega,false,false); /*3 Door with arrow. */
+ grab(610, 94,627,106,367,122,ch_ega,false,false); /*4 Holder with no pen. */
+ grab( 54, 57,124,116,188, 94,ch_bgi,true ,true ); /*5 Door wide open. */
+ close_chunk();
+return EXIT_SUCCESS;
+}
diff --git a/engines/avalanche/chunkxfc.cpp b/engines/avalanche/chunkxfc.cpp
new file mode 100644
index 0000000..aefb15f
--- /dev/null
+++ b/engines/avalanche/chunkxfc.cpp
@@ -0,0 +1,236 @@
+#include "ptoc.h"
+
+
+#include "graph.h"
+/*#include "Tommys.h"*/
+/*#include "Crt.h"*/
+
+
+enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
+
+struct chunkblocktype {
+                  flavourtype flavour;
+                  integer x,y;
+                  integer xl,yl;
+                  longint size;
+                  boolean natural;
+
+                  boolean memorise; /* Hold it in memory? */
+};
+
+const array<1,44,char> chunkheader = 
+string("Chunk-type AVD file, for an Avvy game.")+'\32'+'\261'+'\x30'+'\x1'+'\x75'+'\261';
+
+const integer arraysize = 12000;
+
+array<1,30,longint> offsets;
+byte num_chunks,this_chunk;
+integer gd,gm;
+untyped_file f;
+array<0,arraysize,byte> aa;
+
+void finder()
+{
+    char r; integer x,y;
+; 
+ setfillstyle(0,0); setcolor(14);
+ x=320; y=100; setwritemode(xorput);
+ do {
+  bar(0,0,200,10);
+  outtextxy(0,0,strf(x)+','+strf(y));
+  line(x-20,y,x+20,y); line(x,y-20,x,y+20);
+  do {; } while (!keypressed());
+  line(x-20,y,x+20,y); line(x,y-20,x,y+20);
+  switch (readkey()) {
+   case '\15': return; break;
+   case '8': y -= 10; break;
+   case '4': x -= 10; break;
+   case '6': x += 10; break;
+   case '2': y += 10; break;
+    case '\0': switch (readkey()) {
+         case cup: y -= 1; break;
+         case cdown: y += 1; break;
+         case cleft: x -= 1; break;
+         case cright: x += 1; break;
+        }
+        break;
+  }
+ } while (!false);
+}
+
+void load()
+{
+ byte a1 /*absolute $A400:800*/;
+ byte bit;
+ untyped_file f;
+;
+
+ assign(f,"place2.avd"); reset(f,1);
+ seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a1,12080);
+ }
+
+ close(f);
+ bit=getpixel(0,0);
+ setvisualpage(1); setactivepage(1);
+ finder();
+ setvisualpage(0); setactivepage(0);
+}
+
+void loadtemp()
+{
+ byte a0 /*absolute $A000:800*/;
+ byte bit;
+ untyped_file f;
+;
+
+ assign(f,"d:chunkbi2.avd"); reset(f,1);
+ seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a0,12080);
+ }
+ close(f);
+
+ bit=getpixel(0,0);
+
+ finder();
+}
+
+void open_chunk()
+{;
+ assign(f,"chunk2.avd");
+ rewrite(f,1);
+ blockwrite(f,chunkheader,sizeof(chunkheader));
+ blockwrite(f,num_chunks,1);
+ blockwrite(f,offsets,num_chunks*4);
+
+ this_chunk=0;
+}
+
+void close_chunk()
+{;
+ seek(f,45);
+ blockwrite(f,offsets,num_chunks*4); /* make sure they're right! */
+ close(f);
+}
+
+void mgrab(integer x1,integer y1,integer x2,integer y2, word size)
+{
+    integer yy; word aapos; byte length,bit;
+;
+ if (size>arraysize) 
+ {;
+  restorecrtmode();
+  output << "*** SORRY! *** Increase the arraysize constant to be greater" << NL;
+  output << " than " << size << '.' << NL;
+  exit(0);
+ }
+
+ aapos=0;
+
+ length=x2-x1;
+
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  for( yy=y1; yy <= y2; yy ++)
+  {;
+   move(mem[0xa400*yy*80+x1],aa[aapos],length);
+   aapos += length;
+  }
+ }
+ bit=getpixel(0,0);
+
+}
+
+void grab(integer x1,integer y1,integer x2,integer y2,integer realx,integer realy, flavourtype flav,
+ boolean mem,boolean nat)
+ /* yes, I *do* know how to spell "really"! */
+{
+ word s;
+ pointer p;
+ chunkblocktype ch;
+;
+/* rectangle(x1,y1,x2,y2); exit;*/
+ this_chunk += 1;
+ offsets[this_chunk]=filepos(f);
+
+
+ s=imagesize(x1,y1,x2,y2);
+ getmem(p,s);
+ getimage(x1,y1,x2,y2,p);
+
+ {;
+  ch.flavour=flav;
+  ch.x=realx; ch.y=realy;
+
+  ch.xl=x2-x1;
+  ch.yl=y2-y1;
+  ch.size=s;
+  ch.memorise=mem;
+  ch.natural=nat;
+ }
+
+ setvisualpage(1);
+ setactivepage(1);
+ input >> NL;
+ putimage(ch.x,ch.y,p,0);
+
+ if (flav==ch_ega) 
+ {;
+  freemem(p,s);
+  s=4*(((x2 / 8)-(x1 / 8))+2)*(y2-y1+1);
+  {;
+   ch.size=s;
+   ch.x=ch.x / 8;
+   ch.xl=(ch.xl / 8)+2;
+   mgrab(ch.x,ch.y,ch.x+ch.xl,ch.y+ch.yl,s);
+  }
+ } else
+             /* For BGI pictures. */
+  {;
+   ch.x=ch.x / 8;
+   ch.xl=(ch.xl+7) / 8;
+   ch.size=imagesize(ch.x*8,ch.y,(ch.x+ch.xl)*8,ch.y+ch.yl);
+  }
+
+ input >> NL;
+ setvisualpage(0);
+ setactivepage(0);
+
+ blockwrite(f,ch,sizeof(ch));
+
+ switch (flav) {
+  case ch_ega : if (! nat)  blockwrite(f,aa,s); break;
+  case ch_bgi : {;
+            if (! nat)  blockwrite(f,p,s);
+            freemem(p,s);
+           }
+           break;
+ }
+/* rectangle(x1,y1,x2,y2);*/
+}
+
+int main(int argc, const char* argv[])
+{pio_initialize(argc, argv);
+;
+ gd=3; gm=0; initgraph(gd,gm,"c:\\bp\\bgi");
+ load();
+ loadtemp();
+ setwritemode(xorput);
+
+ num_chunks=3;
+
+ open_chunk();
+
+ grab( 59, 15,166, 55,226, 86,ch_ega,false,false); /*1 Door half-shut. */
+ grab(171, 15,278, 55,226, 86,ch_ega,false,false); /*2 Door half-open. */
+ grab(283, 15,390, 55,226, 86,ch_ega,false,false); /*3 Door open. */
+ close_chunk();
+return EXIT_SUCCESS;
+}
diff --git a/engines/avalanche/chunkxfd.cpp b/engines/avalanche/chunkxfd.cpp
new file mode 100644
index 0000000..e87fbba
--- /dev/null
+++ b/engines/avalanche/chunkxfd.cpp
@@ -0,0 +1,236 @@
+#include "ptoc.h"
+
+
+#include "graph.h"
+/*#include "Tommys.h"*/
+/*#include "Crt.h"*/
+
+
+enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
+
+struct chunkblocktype {
+                  flavourtype flavour;
+                  integer x,y;
+                  integer xl,yl;
+                  longint size;
+                  boolean natural;
+
+                  boolean memorise; /* Hold it in memory? */
+};
+
+const array<1,44,char> chunkheader = 
+string("Chunk-type AVD file, for an Avvy game.")+'\32'+'\261'+'\x30'+'\x1'+'\x75'+'\261';
+
+const integer arraysize = 12000;
+
+array<1,30,longint> offsets;
+byte num_chunks,this_chunk;
+integer gd,gm;
+untyped_file f;
+array<0,arraysize,byte> aa;
+
+void finder()
+{
+    char r; integer x,y;
+; 
+ setfillstyle(0,0); setcolor(14);
+ x=320; y=100; setwritemode(xorput);
+ do {
+  bar(0,0,200,10);
+  outtextxy(0,0,strf(x)+','+strf(y));
+  line(x-20,y,x+20,y); line(x,y-20,x,y+20);
+  do {; } while (!keypressed());
+  line(x-20,y,x+20,y); line(x,y-20,x,y+20);
+  switch (readkey()) {
+   case '\15': return; break;
+   case '8': y -= 10; break;
+   case '4': x -= 10; break;
+   case '6': x += 10; break;
+   case '2': y += 10; break;
+    case '\0': switch (readkey()) {
+         case cup: y -= 1; break;
+         case cdown: y += 1; break;
+         case cleft: x -= 1; break;
+         case cright: x += 1; break;
+        }
+        break;
+  }
+ } while (!false);
+}
+
+void load()
+{
+ byte a1 /*absolute $A400:800*/;
+ byte bit;
+ untyped_file f;
+;
+
+ assign(f,"place15.avd"); reset(f,1);
+ seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a1,12080);
+ }
+
+ close(f);
+ bit=getpixel(0,0);
+ setvisualpage(1); setactivepage(1);
+ finder();
+ setvisualpage(0); setactivepage(0);
+}
+
+void loadtemp()
+{
+ byte a0 /*absolute $A000:800*/;
+ byte bit;
+ untyped_file f;
+;
+
+ assign(f,"d:chunkbi3.avd"); reset(f,1);
+ seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a0,12080);
+ }
+ close(f);
+
+ bit=getpixel(0,0);
+
+ finder();
+}
+
+void open_chunk()
+{;
+ assign(f,"chunk15.avd");
+ rewrite(f,1);
+ blockwrite(f,chunkheader,sizeof(chunkheader));
+ blockwrite(f,num_chunks,1);
+ blockwrite(f,offsets,num_chunks*4);
+
+ this_chunk=0;
+}
+
+void close_chunk()
+{;
+ seek(f,45);
+ blockwrite(f,offsets,num_chunks*4); /* make sure they're right! */
+ close(f);
+}
+
+void mgrab(integer x1,integer y1,integer x2,integer y2, word size)
+{
+    integer yy; word aapos; byte length,bit;
+;
+ if (size>arraysize) 
+ {;
+  restorecrtmode();
+  output << "*** SORRY! *** Increase the arraysize constant to be greater" << NL;
+  output << " than " << size << '.' << NL;
+  exit(0);
+ }
+
+ aapos=0;
+
+ length=x2-x1;
+
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  for( yy=y1; yy <= y2; yy ++)
+  {;
+   move(mem[0xa400*yy*80+x1],aa[aapos],length);
+   aapos += length;
+  }
+ }
+ bit=getpixel(0,0);
+
+}
+
+void grab(integer x1,integer y1,integer x2,integer y2,integer realx,integer realy, flavourtype flav,
+ boolean mem,boolean nat)
+ /* yes, I *do* know how to spell "really"! */
+{
+ word s;
+ pointer p;
+ chunkblocktype ch;
+;
+/* rectangle(x1,y1,x2,y2); exit;*/
+ this_chunk += 1;
+ offsets[this_chunk]=filepos(f);
+
+
+ s=imagesize(x1,y1,x2,y2);
+ getmem(p,s);
+ getimage(x1,y1,x2,y2,p);
+
+ {;
+  ch.flavour=flav;
+  ch.x=realx; ch.y=realy;
+
+  ch.xl=x2-x1;
+  ch.yl=y2-y1;
+  ch.size=s;
+  ch.memorise=mem;
+  ch.natural=nat;
+ }
+
+ setvisualpage(1);
+ setactivepage(1);
+ input >> NL;
+ putimage(ch.x,ch.y,p,0);
+
+ if (flav==ch_ega) 
+ {;
+  freemem(p,s);
+  s=4*(((x2 / 8)-(x1 / 8))+2)*(y2-y1+1);
+  {;
+   ch.size=s;
+   ch.x=ch.x / 8;
+   ch.xl=(ch.xl / 8)+2;
+   mgrab(ch.x,ch.y,ch.x+ch.xl,ch.y+ch.yl,s);
+  }
+ } else
+             /* For BGI pictures. */
+  {;
+   ch.x=ch.x / 8;
+   ch.xl=(ch.xl+7) / 8;
+   ch.size=imagesize(ch.x*8,ch.y,(ch.x+ch.xl)*8,ch.y+ch.yl);
+  }
+
+ input >> NL;
+ setvisualpage(0);
+ setactivepage(0);
+
+ blockwrite(f,ch,sizeof(ch));
+
+ switch (flav) {
+  case ch_ega : if (! nat)  blockwrite(f,aa,s); break;
+  case ch_bgi : {;
+            if (! nat)  blockwrite(f,p,s);
+            freemem(p,s);
+           }
+           break;
+ }
+/* rectangle(x1,y1,x2,y2);*/
+}
+
+int main(int argc, const char* argv[])
+{pio_initialize(argc, argv);
+;
+ gd=3; gm=0; initgraph(gd,gm,"c:\\bp\\bgi");
+ load();
+ loadtemp();
+ setwritemode(xorput);
+
+ num_chunks=3;
+
+ open_chunk();
+
+ grab(535, 11,633, 74, 46, 97,ch_ega,false,false); /*1 Door half-open. */
+ grab(539, 76,637,139, 46, 97,ch_ega,false,false); /*2 Door open. */
+ grab(539, 76,637,139, 46, 97,ch_bgi,true ,true ); /*3 Door shut. */
+ close_chunk();
+return EXIT_SUCCESS;
+}
diff --git a/engines/avalanche/chunkxfe.cpp b/engines/avalanche/chunkxfe.cpp
new file mode 100644
index 0000000..adb7f86
--- /dev/null
+++ b/engines/avalanche/chunkxfe.cpp
@@ -0,0 +1,236 @@
+#include "ptoc.h"
+
+
+#include "graph.h"
+/*#include "Tommys.h"*/
+/*#include "Crt.h"*/
+
+
+enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
+
+struct chunkblocktype {
+                  flavourtype flavour;
+                  integer x,y;
+                  integer xl,yl;
+                  longint size;
+                  boolean natural;
+
+                  boolean memorise; /* Hold it in memory? */
+};
+
+const array<1,44,char> chunkheader = 
+string("Chunk-type AVD file, for an Avvy game.")+'\32'+'\261'+'\x30'+'\x1'+'\x75'+'\261';
+
+const integer arraysize = 12000;
+
+array<1,30,longint> offsets;
+byte num_chunks,this_chunk;
+integer gd,gm;
+untyped_file f;
+array<0,arraysize,byte> aa;
+
+void finder()
+{
+    char r; integer x,y;
+; 
+ setfillstyle(0,0); setcolor(14);
+ x=320; y=100; setwritemode(xorput);
+ do {
+  bar(0,0,200,10);
+  outtextxy(0,0,strf(x)+','+strf(y));
+  line(x-20,y,x+20,y); line(x,y-20,x,y+20);
+  do {; } while (!keypressed());
+  line(x-20,y,x+20,y); line(x,y-20,x,y+20);
+  switch (readkey()) {
+   case '\15': return; break;
+   case '8': y -= 10; break;
+   case '4': x -= 10; break;
+   case '6': x += 10; break;
+   case '2': y += 10; break;
+    case '\0': switch (readkey()) {
+         case cup: y -= 1; break;
+         case cdown: y += 1; break;
+         case cleft: x -= 1; break;
+         case cright: x += 1; break;
+        }
+        break;
+  }
+ } while (!false);
+}
+
+void load()
+{
+ byte a1 /*absolute $A400:800*/;
+ byte bit;
+ untyped_file f;
+;
+
+ assign(f,"place5.avd"); reset(f,1);
+ seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a1,12080);
+ }
+
+ close(f);
+ bit=getpixel(0,0);
+ setvisualpage(1); setactivepage(1);
+ finder();
+ setvisualpage(0); setactivepage(0);
+}
+
+void loadtemp()
+{
+ byte a0 /*absolute $A000:800*/;
+ byte bit;
+ untyped_file f;
+;
+
+ assign(f,"chunkbi2.avd"); reset(f,1);
+ seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a0,12080);
+ }
+ close(f);
+
+ bit=getpixel(0,0);
+
+ finder();
+}
+
+void open_chunk()
+{;
+ assign(f,"chunk5.avd");
+ rewrite(f,1);
+ blockwrite(f,chunkheader,sizeof(chunkheader));
+ blockwrite(f,num_chunks,1);
+ blockwrite(f,offsets,num_chunks*4);
+
+ this_chunk=0;
+}
+
+void close_chunk()
+{;
+ seek(f,45);
+ blockwrite(f,offsets,num_chunks*4); /* make sure they're right! */
+ close(f);
+}
+
+void mgrab(integer x1,integer y1,integer x2,integer y2, word size)
+{
+    integer yy; word aapos; byte length,bit;
+;
+ if (size>arraysize) 
+ {;
+  restorecrtmode();
+  output << "*** SORRY! *** Increase the arraysize constant to be greater" << NL;
+  output << " than " << size << '.' << NL;
+  exit(0);
+ }
+
+ aapos=0;
+
+ length=x2-x1;
+
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  for( yy=y1; yy <= y2; yy ++)
+  {;
+   move(mem[0xa400*yy*80+x1],aa[aapos],length);
+   aapos += length;
+  }
+ }
+ bit=getpixel(0,0);
+
+}
+
+void grab(integer x1,integer y1,integer x2,integer y2,integer realx,integer realy, flavourtype flav,
+ boolean mem,boolean nat)
+ /* yes, I *do* know how to spell "really"! */
+{
+ word s;
+ pointer p;
+ chunkblocktype ch;
+;
+/* rectangle(x1,y1,x2,y2); exit;*/
+ this_chunk += 1;
+ offsets[this_chunk]=filepos(f);
+
+
+ s=imagesize(x1,y1,x2,y2);
+ getmem(p,s);
+ getimage(x1,y1,x2,y2,p);
+
+ {;
+  ch.flavour=flav;
+  ch.x=realx; ch.y=realy;
+
+  ch.xl=x2-x1;
+  ch.yl=y2-y1;
+  ch.size=s;
+  ch.memorise=mem;
+  ch.natural=nat;
+ }
+
+ setvisualpage(1);
+ setactivepage(1);
+ input >> NL;
+ putimage(ch.x,ch.y,p,0);
+
+ if (flav==ch_ega) 
+ {;
+  freemem(p,s);
+  s=4*(((x2 / 8)-(x1 / 8))+2)*(y2-y1+1);
+  {;
+   ch.size=s;
+   ch.x=ch.x / 8;
+   ch.xl=(ch.xl / 8)+2;
+   mgrab(ch.x,ch.y,ch.x+ch.xl,ch.y+ch.yl,s);
+  }
+ } else
+             /* For BGI pictures. */
+  {;
+   ch.x=ch.x / 8;
+   ch.xl=(ch.xl+7) / 8;
+   ch.size=imagesize(ch.x*8,ch.y,(ch.x+ch.xl)*8,ch.y+ch.yl);
+  }
+
+ input >> NL;
+ setvisualpage(0);
+ setactivepage(0);
+
+ blockwrite(f,ch,sizeof(ch));
+
+ switch (flav) {
+  case ch_ega : if (! nat)  blockwrite(f,aa,s); break;
+  case ch_bgi : {;
+            if (! nat)  blockwrite(f,p,s);
+            freemem(p,s);
+           }
+           break;
+ }
+/* rectangle(x1,y1,x2,y2);*/
+}
+
+int main(int argc, const char* argv[])
+{pio_initialize(argc, argv);
+;
+ gd=3; gm=0; initgraph(gd,gm,"c:\\bp\\bgi");
+ load();
+ loadtemp();
+ setwritemode(xorput);
+
+ num_chunks=3;
+
+ open_chunk();
+
+ grab(252, 57,375,132,501, 85,ch_ega,false,false); /*1 Door half-open. */
+ grab(418, 15,553, 90,504, 85,ch_ega,false,false); /*2 Door open. */
+ grab(252, 57,375,132,504, 85,ch_bgi,true ,true ); /*3 Door shut. */
+ close_chunk();
+return EXIT_SUCCESS;
+}
diff --git a/engines/avalanche/chunkxff.cpp b/engines/avalanche/chunkxff.cpp
new file mode 100644
index 0000000..9fb2a2e
--- /dev/null
+++ b/engines/avalanche/chunkxff.cpp
@@ -0,0 +1,236 @@
+#include "ptoc.h"
+
+
+#include "graph.h"
+/*#include "Tommys.h"*/
+/*#include "Crt.h"*/
+
+
+enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
+
+struct chunkblocktype {
+                  flavourtype flavour;
+                  integer x,y;
+                  integer xl,yl;
+                  longint size;
+                  boolean natural;
+
+                  boolean memorise; /* Hold it in memory? */
+};
+
+const array<1,44,char> chunkheader = 
+string("Chunk-type AVD file, for an Avvy game.")+'\32'+'\261'+'\x30'+'\x1'+'\x75'+'\261';
+
+const integer arraysize = 12000;
+
+array<1,30,longint> offsets;
+byte num_chunks,this_chunk;
+integer gd,gm;
+untyped_file f;
+array<0,arraysize,byte> aa;
+
+void finder()
+{
+    char r; integer x,y;
+; 
+ setfillstyle(0,0); setcolor(14);
+ x=320; y=100; setwritemode(xorput);
+ do {
+  bar(0,0,200,10);
+  outtextxy(0,0,strf(x)+','+strf(y));
+  line(x-20,y,x+20,y); line(x,y-20,x,y+20);
+  do {; } while (!keypressed());
+  line(x-20,y,x+20,y); line(x,y-20,x,y+20);
+  switch (readkey()) {
+   case '\15': return; break;
+   case '8': y -= 10; break;
+   case '4': x -= 10; break;
+   case '6': x += 10; break;
+   case '2': y += 10; break;
+    case '\0': switch (readkey()) {
+         case cup: y -= 1; break;
+         case cdown: y += 1; break;
+         case cleft: x -= 1; break;
+         case cright: x += 1; break;
+        }
+        break;
+  }
+ } while (!false);
+}
+
+void load()
+{
+ byte a1 /*absolute $A400:800*/;
+ byte bit;
+ untyped_file f;
+;
+
+ assign(f,"place13.avd"); reset(f,1);
+ seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a1,12080);
+ }
+
+ close(f);
+ bit=getpixel(0,0);
+ setvisualpage(1); setactivepage(1);
+ finder();
+ setvisualpage(0); setactivepage(0);
+}
+
+void loadtemp()
+{
+ byte a0 /*absolute $A000:800*/;
+ byte bit;
+ untyped_file f;
+;
+
+ assign(f,"chunkbi3.avd"); reset(f,1);
+ seek(f,177);
+ for( bit=0; bit <= 3; bit ++)
+ {;
+  port[0x3c4]=2; port[0x3ce]=4; port[0x3c5]=1 << bit; port[0x3cf]=bit;
+  blockread(f,a0,12080);
+ }
+ close(f);
+
+ bit=getpixel(0,0);
+
+ finder();
+}
+
+void open_chunk()
+{;
+ assign(f,"chunk13.avd");
+ rewrite(f,1);
+ blockwrite(f,chunkheader,sizeof(chunkheader));
+ blockwrite(f,num_chunks,1);
+ blockwrite(f,offsets,num_chunks*4);
+
+ this_chunk=0;
+}
+
+void close_chunk()
+{;
+ seek(f,45);
+ blockwrite(f,offsets,num_chunks*4); /* make sure they're right! */
+ close(f);
+}
+
+void mgrab(integer x1,integer y1,integer x2,integer y2, word size)
+{
+    integer yy; word aapos; byte length,bit;
+;
+ if (size>arraysize) 
+ {;
+  restorecrtmode();
+  output << "*** SORRY! *** Increase the arraysize constant to be greater" << NL;
+  output << " than " << size << '.' << NL;
+  exit(0);
+ }
+
+ aapos=0;
+
+ length=x2-x1;


Commit: cc5b8732bbd525c1e6a50ab73eadbd6b2bf2398c
    https://github.com/scummvm/scummvm/commit/cc5b8732bbd525c1e6a50ab73eadbd6b2bf2398c
Author: uruk (koppirnyo at gmail.com)
Date: 2013-06-17T02:57:27-07:00

Commit Message:
AVALANCHE: Remove #include "ptoc.h" lines from the beginning every .cpp files.

Changed paths:
    engines/avalanche/1stoff.cpp
    engines/avalanche/access.cpp
    engines/avalanche/acci.cpp
    engines/avalanche/also.cpp
    engines/avalanche/andexor.cpp
    engines/avalanche/andexor2.cpp
    engines/avalanche/andextst.cpp
    engines/avalanche/arch.cpp
    engines/avalanche/avalot9.cpp
    engines/avalanche/avbkgrnd.cpp
    engines/avalanche/avmenu.cpp
    engines/avalanche/avvyans.cpp
    engines/avalanche/avvyans2.cpp
    engines/avalanche/avvymonk.cpp
    engines/avalanche/bakchunk.cpp
    engines/avalanche/basher.cpp
    engines/avalanche/bootstrp.cpp
    engines/avalanche/cadburys.cpp
    engines/avalanche/celer.cpp
    engines/avalanche/ch_egats.cpp
    engines/avalanche/charmap.cpp
    engines/avalanche/chunker.cpp
    engines/avalanche/chunkxf1.cpp
    engines/avalanche/chunkxf2.cpp
    engines/avalanche/chunkxf3.cpp
    engines/avalanche/chunkxf4.cpp
    engines/avalanche/chunkxf5.cpp
    engines/avalanche/chunkxf6.cpp
    engines/avalanche/chunkxf7.cpp
    engines/avalanche/chunkxf8.cpp
    engines/avalanche/chunkxf9.cpp
    engines/avalanche/chunkxfa.cpp
    engines/avalanche/chunkxfb.cpp
    engines/avalanche/chunkxfc.cpp
    engines/avalanche/chunkxfd.cpp
    engines/avalanche/chunkxfe.cpp
    engines/avalanche/chunkxff.cpp
    engines/avalanche/chunkxfg.cpp
    engines/avalanche/chunkxfh.cpp
    engines/avalanche/chunkxfi.cpp
    engines/avalanche/chunkxfj.cpp
    engines/avalanche/chunkxfk.cpp
    engines/avalanche/chunkxfl.cpp
    engines/avalanche/clock.cpp
    engines/avalanche/closing.cpp
    engines/avalanche/convert.cpp
    engines/avalanche/convmous.cpp
    engines/avalanche/credits.cpp
    engines/avalanche/displtxt.cpp
    engines/avalanche/dropdown.cpp
    engines/avalanche/dwidth.cpp
    engines/avalanche/edhead.cpp
    engines/avalanche/edna.cpp
    engines/avalanche/enhanced.cpp
    engines/avalanche/enid.cpp
    engines/avalanche/filer.cpp
    engines/avalanche/fileunit.cpp
    engines/avalanche/filing.cpp
    engines/avalanche/folktemp.cpp
    engines/avalanche/fontslid.cpp
    engines/avalanche/frere.cpp
    engines/avalanche/g-room.cpp
    engines/avalanche/golden.cpp
    engines/avalanche/gyro.cpp
    engines/avalanche/help.cpp
    engines/avalanche/help2.cpp
    engines/avalanche/helpbak.cpp
    engines/avalanche/helper.cpp
    engines/avalanche/hibits.cpp
    engines/avalanche/highs.cpp
    engines/avalanche/hiz.cpp
    engines/avalanche/incline.cpp
    engines/avalanche/initxf.cpp
    engines/avalanche/inputtes.cpp
    engines/avalanche/intro.cpp
    engines/avalanche/ints.cpp
    engines/avalanche/joysetup.cpp
    engines/avalanche/joystick.cpp
    engines/avalanche/loading.cpp
    engines/avalanche/logger.cpp
    engines/avalanche/lucerna.cpp
    engines/avalanche/magic2.cpp
    engines/avalanche/magidraw.cpp
    engines/avalanche/magishuf.cpp
    engines/avalanche/make!.cpp
    engines/avalanche/makeregi.cpp
    engines/avalanche/makesez.cpp
    engines/avalanche/makevmou.cpp
    engines/avalanche/menuxf.cpp
    engines/avalanche/minstran.cpp
    engines/avalanche/newsprit.cpp
    engines/avalanche/nim.cpp
    engines/avalanche/nimdraw.cpp
    engines/avalanche/nimunit.cpp
    engines/avalanche/oldfiler.cpp
    engines/avalanche/oldhighs.cpp
    engines/avalanche/oldincln.cpp
    engines/avalanche/oldtrip.cpp
    engines/avalanche/omtest.cpp
    engines/avalanche/oopmenu.cpp
    engines/avalanche/overlap.cpp
    engines/avalanche/overscro.cpp
    engines/avalanche/particle.cpp
    engines/avalanche/pictemp.cpp
    engines/avalanche/pictemp2.cpp
    engines/avalanche/pingo.cpp
    engines/avalanche/plottest.cpp
    engines/avalanche/preview1.cpp
    engines/avalanche/qintro.cpp
    engines/avalanche/qstars.cpp
    engines/avalanche/rawupd.cpp
    engines/avalanche/readsez.cpp
    engines/avalanche/reginam.cpp
    engines/avalanche/sackb1.cpp
    engines/avalanche/sackb3.cpp
    engines/avalanche/saving.cpp
    engines/avalanche/scr_1.cpp
    engines/avalanche/scr_2.cpp
    engines/avalanche/scr_3.cpp
    engines/avalanche/scr_4.cpp
    engines/avalanche/scr_5.cpp
    engines/avalanche/scr_9.cpp
    engines/avalanche/scrolls.cpp
    engines/avalanche/sequence.cpp
    engines/avalanche/setup.cpp
    engines/avalanche/seu.cpp
    engines/avalanche/seu_avvy.cpp
    engines/avalanche/sezedit.cpp
    engines/avalanche/sezunit.cpp
    engines/avalanche/sezxfr.cpp
    engines/avalanche/shell1.cpp
    engines/avalanche/shell2.cpp
    engines/avalanche/slope.cpp
    engines/avalanche/spread.cpp
    engines/avalanche/spread2.cpp
    engines/avalanche/squish.cpp
    engines/avalanche/ss_blank.cpp
    engines/avalanche/ss_clock.cpp
    engines/avalanche/stars.cpp
    engines/avalanche/status.cpp
    engines/avalanche/sticks.cpp
    engines/avalanche/sunrise.cpp
    engines/avalanche/tempo.cpp
    engines/avalanche/test.cpp
    engines/avalanche/test2.cpp
    engines/avalanche/testblit.cpp
    engines/avalanche/testcard.cpp
    engines/avalanche/testenh.cpp
    engines/avalanche/timeout.cpp
    engines/avalanche/travel.cpp
    engines/avalanche/trip.cpp
    engines/avalanche/trip3.cpp
    engines/avalanche/trip42.cpp
    engines/avalanche/trip5.cpp
    engines/avalanche/trip5tst.cpp
    engines/avalanche/trip5xf.cpp
    engines/avalanche/tripoop.cpp
    engines/avalanche/ttmenuxf.cpp
    engines/avalanche/unsquish.cpp
    engines/avalanche/viewdocs.cpp
    engines/avalanche/visa.cpp
    engines/avalanche/visatest.cpp
    engines/avalanche/xf_gover.cpp
    engines/avalanche/xf_help.cpp
    engines/avalanche/xf_visa.cpp
    engines/avalanche/xfbutton.cpp
    engines/avalanche/xfghost.cpp
    engines/avalanche/zapdraw.cpp



diff --git a/engines/avalanche/1stoff.cpp b/engines/avalanche/1stoff.cpp
index 99198b4..e8debc3 100644
--- a/engines/avalanche/1stoff.cpp
+++ b/engines/avalanche/1stoff.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/access.cpp b/engines/avalanche/access.cpp
index 37c9649..faa00bb 100644
--- a/engines/avalanche/access.cpp
+++ b/engines/avalanche/access.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/acci.cpp b/engines/avalanche/acci.cpp
index 86fac18..32fde0c 100644
--- a/engines/avalanche/acci.cpp
+++ b/engines/avalanche/acci.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*  $D-*/
 /*
diff --git a/engines/avalanche/also.cpp b/engines/avalanche/also.cpp
index 17853e6..e5af131 100644
--- a/engines/avalanche/also.cpp
+++ b/engines/avalanche/also.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/andexor.cpp b/engines/avalanche/andexor.cpp
index 03cedfd..9cf259e 100644
--- a/engines/avalanche/andexor.cpp
+++ b/engines/avalanche/andexor.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
                  /* Trippancy IV - original file */
 #include "graph.h"
diff --git a/engines/avalanche/andexor2.cpp b/engines/avalanche/andexor2.cpp
index 41f27af..b5355d7 100644
--- a/engines/avalanche/andexor2.cpp
+++ b/engines/avalanche/andexor2.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
                   /* Trippancy IV - original file */
 #include "graph.h"
diff --git a/engines/avalanche/andextst.cpp b/engines/avalanche/andextst.cpp
index 8aff717..db5c659 100644
--- a/engines/avalanche/andextst.cpp
+++ b/engines/avalanche/andextst.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/arch.cpp b/engines/avalanche/arch.cpp
index 1ff2f1f..e05f173 100644
--- a/engines/avalanche/arch.cpp
+++ b/engines/avalanche/arch.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/avalot9.cpp b/engines/avalanche/avalot9.cpp
index a439f87..3780b79 100644
--- a/engines/avalanche/avalot9.cpp
+++ b/engines/avalanche/avalot9.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/avbkgrnd.cpp b/engines/avalanche/avbkgrnd.cpp
index 13e6cea..6488fb8 100644
--- a/engines/avalanche/avbkgrnd.cpp
+++ b/engines/avalanche/avbkgrnd.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/avmenu.cpp b/engines/avalanche/avmenu.cpp
index 3cfff7d..9b366a9 100644
--- a/engines/avalanche/avmenu.cpp
+++ b/engines/avalanche/avmenu.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/avvyans.cpp b/engines/avalanche/avvyans.cpp
index 6875687..1985194 100644
--- a/engines/avalanche/avvyans.cpp
+++ b/engines/avalanche/avvyans.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/avvyans2.cpp b/engines/avalanche/avvyans2.cpp
index 915a33d..9702ec2 100644
--- a/engines/avalanche/avvyans2.cpp
+++ b/engines/avalanche/avvyans2.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/avvymonk.cpp b/engines/avalanche/avvymonk.cpp
index 5a4b70c..7d5143b 100644
--- a/engines/avalanche/avvymonk.cpp
+++ b/engines/avalanche/avvymonk.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/bakchunk.cpp b/engines/avalanche/bakchunk.cpp
index 5cea62d..296c55a 100644
--- a/engines/avalanche/bakchunk.cpp
+++ b/engines/avalanche/bakchunk.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/basher.cpp b/engines/avalanche/basher.cpp
index 56cfcca..3ac401e 100644
--- a/engines/avalanche/basher.cpp
+++ b/engines/avalanche/basher.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/bootstrp.cpp b/engines/avalanche/bootstrp.cpp
index a903679..141c69b 100644
--- a/engines/avalanche/bootstrp.cpp
+++ b/engines/avalanche/bootstrp.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*#include "Dos.h"*/
diff --git a/engines/avalanche/cadburys.cpp b/engines/avalanche/cadburys.cpp
index b891123..3839875 100644
--- a/engines/avalanche/cadburys.cpp
+++ b/engines/avalanche/cadburys.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 #define __cadburys_implementation__
 
diff --git a/engines/avalanche/celer.cpp b/engines/avalanche/celer.cpp
index 61357f5..bedab4b 100644
--- a/engines/avalanche/celer.cpp
+++ b/engines/avalanche/celer.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/ch_egats.cpp b/engines/avalanche/ch_egats.cpp
index a27c261..0488d21 100644
--- a/engines/avalanche/ch_egats.cpp
+++ b/engines/avalanche/ch_egats.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/charmap.cpp b/engines/avalanche/charmap.cpp
index 8b38f8a..0eb701b 100644
--- a/engines/avalanche/charmap.cpp
+++ b/engines/avalanche/charmap.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*#include "Dos.h"*/
diff --git a/engines/avalanche/chunker.cpp b/engines/avalanche/chunker.cpp
index 6d48054..00cb696 100644
--- a/engines/avalanche/chunker.cpp
+++ b/engines/avalanche/chunker.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 
diff --git a/engines/avalanche/chunkxf1.cpp b/engines/avalanche/chunkxf1.cpp
index dce3722..4b8d99e 100644
--- a/engines/avalanche/chunkxf1.cpp
+++ b/engines/avalanche/chunkxf1.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/chunkxf2.cpp b/engines/avalanche/chunkxf2.cpp
index 5d77d29..252f132 100644
--- a/engines/avalanche/chunkxf2.cpp
+++ b/engines/avalanche/chunkxf2.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/chunkxf3.cpp b/engines/avalanche/chunkxf3.cpp
index 220d07b..d8b89dd 100644
--- a/engines/avalanche/chunkxf3.cpp
+++ b/engines/avalanche/chunkxf3.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/chunkxf4.cpp b/engines/avalanche/chunkxf4.cpp
index 2dfa34d..4a644d2 100644
--- a/engines/avalanche/chunkxf4.cpp
+++ b/engines/avalanche/chunkxf4.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/chunkxf5.cpp b/engines/avalanche/chunkxf5.cpp
index c976683..a2d02f9 100644
--- a/engines/avalanche/chunkxf5.cpp
+++ b/engines/avalanche/chunkxf5.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/chunkxf6.cpp b/engines/avalanche/chunkxf6.cpp
index 6652222..b319f2b 100644
--- a/engines/avalanche/chunkxf6.cpp
+++ b/engines/avalanche/chunkxf6.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/chunkxf7.cpp b/engines/avalanche/chunkxf7.cpp
index 97bacb5..8d2f7a9 100644
--- a/engines/avalanche/chunkxf7.cpp
+++ b/engines/avalanche/chunkxf7.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/chunkxf8.cpp b/engines/avalanche/chunkxf8.cpp
index 4435ee4..98ada51 100644
--- a/engines/avalanche/chunkxf8.cpp
+++ b/engines/avalanche/chunkxf8.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/chunkxf9.cpp b/engines/avalanche/chunkxf9.cpp
index 96241d1..156827b 100644
--- a/engines/avalanche/chunkxf9.cpp
+++ b/engines/avalanche/chunkxf9.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/chunkxfa.cpp b/engines/avalanche/chunkxfa.cpp
index 6493e52..1703d4f 100644
--- a/engines/avalanche/chunkxfa.cpp
+++ b/engines/avalanche/chunkxfa.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/chunkxfb.cpp b/engines/avalanche/chunkxfb.cpp
index 7fda96c..71fd991 100644
--- a/engines/avalanche/chunkxfb.cpp
+++ b/engines/avalanche/chunkxfb.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/chunkxfc.cpp b/engines/avalanche/chunkxfc.cpp
index aefb15f..ec5ff4b 100644
--- a/engines/avalanche/chunkxfc.cpp
+++ b/engines/avalanche/chunkxfc.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/chunkxfd.cpp b/engines/avalanche/chunkxfd.cpp
index e87fbba..9752345 100644
--- a/engines/avalanche/chunkxfd.cpp
+++ b/engines/avalanche/chunkxfd.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/chunkxfe.cpp b/engines/avalanche/chunkxfe.cpp
index adb7f86..bc11f36 100644
--- a/engines/avalanche/chunkxfe.cpp
+++ b/engines/avalanche/chunkxfe.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/chunkxff.cpp b/engines/avalanche/chunkxff.cpp
index 9fb2a2e..e2c6a27 100644
--- a/engines/avalanche/chunkxff.cpp
+++ b/engines/avalanche/chunkxff.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/chunkxfg.cpp b/engines/avalanche/chunkxfg.cpp
index 077a330..762a44a 100644
--- a/engines/avalanche/chunkxfg.cpp
+++ b/engines/avalanche/chunkxfg.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/chunkxfh.cpp b/engines/avalanche/chunkxfh.cpp
index 163ae51..4736700 100644
--- a/engines/avalanche/chunkxfh.cpp
+++ b/engines/avalanche/chunkxfh.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/chunkxfi.cpp b/engines/avalanche/chunkxfi.cpp
index 84157a8..917d83b 100644
--- a/engines/avalanche/chunkxfi.cpp
+++ b/engines/avalanche/chunkxfi.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/chunkxfj.cpp b/engines/avalanche/chunkxfj.cpp
index 34a7109..1f7f234 100644
--- a/engines/avalanche/chunkxfj.cpp
+++ b/engines/avalanche/chunkxfj.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/chunkxfk.cpp b/engines/avalanche/chunkxfk.cpp
index 70748b9..38523f6 100644
--- a/engines/avalanche/chunkxfk.cpp
+++ b/engines/avalanche/chunkxfk.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/chunkxfl.cpp b/engines/avalanche/chunkxfl.cpp
index 01a0550..8b942d9 100644
--- a/engines/avalanche/chunkxfl.cpp
+++ b/engines/avalanche/chunkxfl.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/clock.cpp b/engines/avalanche/clock.cpp
index 16ec6f5..6674401 100644
--- a/engines/avalanche/clock.cpp
+++ b/engines/avalanche/clock.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*#include "Dos.h"*/
diff --git a/engines/avalanche/closing.cpp b/engines/avalanche/closing.cpp
index b2af987..bfed58e 100644
--- a/engines/avalanche/closing.cpp
+++ b/engines/avalanche/closing.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/convert.cpp b/engines/avalanche/convert.cpp
index 08639ee..ca41b36 100644
--- a/engines/avalanche/convert.cpp
+++ b/engines/avalanche/convert.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/convmous.cpp b/engines/avalanche/convmous.cpp
index c607b11..b5efcba 100644
--- a/engines/avalanche/convmous.cpp
+++ b/engines/avalanche/convmous.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/credits.cpp b/engines/avalanche/credits.cpp
index 7669c85..d37849b 100644
--- a/engines/avalanche/credits.cpp
+++ b/engines/avalanche/credits.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/displtxt.cpp b/engines/avalanche/displtxt.cpp
index 3c706dc..376c346 100644
--- a/engines/avalanche/displtxt.cpp
+++ b/engines/avalanche/displtxt.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/dropdown.cpp b/engines/avalanche/dropdown.cpp
index 6c03a47..9319408 100644
--- a/engines/avalanche/dropdown.cpp
+++ b/engines/avalanche/dropdown.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/dwidth.cpp b/engines/avalanche/dwidth.cpp
index f66a417..aa0fd75 100644
--- a/engines/avalanche/dwidth.cpp
+++ b/engines/avalanche/dwidth.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/edhead.cpp b/engines/avalanche/edhead.cpp
index 9fcb685..c06d2b1 100644
--- a/engines/avalanche/edhead.cpp
+++ b/engines/avalanche/edhead.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 
diff --git a/engines/avalanche/edna.cpp b/engines/avalanche/edna.cpp
index 74352fe..d700a85 100644
--- a/engines/avalanche/edna.cpp
+++ b/engines/avalanche/edna.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*$M 10000,0,1000*/ /*$V-*/
 
diff --git a/engines/avalanche/enhanced.cpp b/engines/avalanche/enhanced.cpp
index 299aec2..34a46ff 100644
--- a/engines/avalanche/enhanced.cpp
+++ b/engines/avalanche/enhanced.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 #define __enhanced_implementation__
 
diff --git a/engines/avalanche/enid.cpp b/engines/avalanche/enid.cpp
index 89e1327..fb2577a 100644
--- a/engines/avalanche/enid.cpp
+++ b/engines/avalanche/enid.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/filer.cpp b/engines/avalanche/filer.cpp
index 036aa94..4ae92c3 100644
--- a/engines/avalanche/filer.cpp
+++ b/engines/avalanche/filer.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/fileunit.cpp b/engines/avalanche/fileunit.cpp
index a944fbc..d9de210 100644
--- a/engines/avalanche/fileunit.cpp
+++ b/engines/avalanche/fileunit.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 #define __fileunit_implementation__
                /* v:filer.pas - "avvyfiler" - in unit form. */
diff --git a/engines/avalanche/filing.cpp b/engines/avalanche/filing.cpp
index f990f8c..841163f 100644
--- a/engines/avalanche/filing.cpp
+++ b/engines/avalanche/filing.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/folktemp.cpp b/engines/avalanche/folktemp.cpp
index c715aa9..47d5d58 100644
--- a/engines/avalanche/folktemp.cpp
+++ b/engines/avalanche/folktemp.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
                   /* Get 'em back! */
 #include "graph.h"
diff --git a/engines/avalanche/fontslid.cpp b/engines/avalanche/fontslid.cpp
index 4a2ceb2..31154aa 100644
--- a/engines/avalanche/fontslid.cpp
+++ b/engines/avalanche/fontslid.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/frere.cpp b/engines/avalanche/frere.cpp
index b3118dd..5f1b517 100644
--- a/engines/avalanche/frere.cpp
+++ b/engines/avalanche/frere.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/g-room.cpp b/engines/avalanche/g-room.cpp
index fc8f47e..386a16c 100644
--- a/engines/avalanche/g-room.cpp
+++ b/engines/avalanche/g-room.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/golden.cpp b/engines/avalanche/golden.cpp
index 009a828..3643f43 100644
--- a/engines/avalanche/golden.cpp
+++ b/engines/avalanche/golden.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*$I c:\sleep5\DSMI.INC*/ #include "graph.h"
diff --git a/engines/avalanche/gyro.cpp b/engines/avalanche/gyro.cpp
index b530e45..0e05d77 100644
--- a/engines/avalanche/gyro.cpp
+++ b/engines/avalanche/gyro.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/help.cpp b/engines/avalanche/help.cpp
index d155263..804ded4 100644
--- a/engines/avalanche/help.cpp
+++ b/engines/avalanche/help.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/help2.cpp b/engines/avalanche/help2.cpp
index b062015..148f578 100644
--- a/engines/avalanche/help2.cpp
+++ b/engines/avalanche/help2.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/helpbak.cpp b/engines/avalanche/helpbak.cpp
index 9182523..367fd20 100644
--- a/engines/avalanche/helpbak.cpp
+++ b/engines/avalanche/helpbak.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/helper.cpp b/engines/avalanche/helper.cpp
index 50e6a07..0708413 100644
--- a/engines/avalanche/helper.cpp
+++ b/engines/avalanche/helper.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/hibits.cpp b/engines/avalanche/hibits.cpp
index 8dba55c..c6a80cb 100644
--- a/engines/avalanche/hibits.cpp
+++ b/engines/avalanche/hibits.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 file<char> inf,outf;
diff --git a/engines/avalanche/highs.cpp b/engines/avalanche/highs.cpp
index 2ffd271..38d929e 100644
--- a/engines/avalanche/highs.cpp
+++ b/engines/avalanche/highs.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/hiz.cpp b/engines/avalanche/hiz.cpp
index bcff8ab..d9508b5 100644
--- a/engines/avalanche/hiz.cpp
+++ b/engines/avalanche/hiz.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*$M 6000,600,600*/
diff --git a/engines/avalanche/incline.cpp b/engines/avalanche/incline.cpp
index 4103089..8cc8170 100644
--- a/engines/avalanche/incline.cpp
+++ b/engines/avalanche/incline.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/initxf.cpp b/engines/avalanche/initxf.cpp
index 964aa51..a485c1b 100644
--- a/engines/avalanche/initxf.cpp
+++ b/engines/avalanche/initxf.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/inputtes.cpp b/engines/avalanche/inputtes.cpp
index 0c7300b..7d95ff9 100644
--- a/engines/avalanche/inputtes.cpp
+++ b/engines/avalanche/inputtes.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/intro.cpp b/engines/avalanche/intro.cpp
index 5d34d69..54cd3e6 100644
--- a/engines/avalanche/intro.cpp
+++ b/engines/avalanche/intro.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*$I c:\sleep5\DSMI.INC*/
diff --git a/engines/avalanche/ints.cpp b/engines/avalanche/ints.cpp
index 71c2d47..acb607c 100644
--- a/engines/avalanche/ints.cpp
+++ b/engines/avalanche/ints.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
               /* Avalot interrupt handler */
 /*#include "Dos.h"*/
diff --git a/engines/avalanche/joysetup.cpp b/engines/avalanche/joysetup.cpp
index 0c07a35..7d22a50 100644
--- a/engines/avalanche/joysetup.cpp
+++ b/engines/avalanche/joysetup.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
                        /* Avalot joystick setup routines. To be incorporated
                          into Setup2 whenever I get a chance. */
diff --git a/engines/avalanche/joystick.cpp b/engines/avalanche/joystick.cpp
index 20f803e..c3ab14a 100644
--- a/engines/avalanche/joystick.cpp
+++ b/engines/avalanche/joystick.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 #define __joystick_implementation__
 
diff --git a/engines/avalanche/loading.cpp b/engines/avalanche/loading.cpp
index 4e48cb5..9bc4a0c 100644
--- a/engines/avalanche/loading.cpp
+++ b/engines/avalanche/loading.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/logger.cpp b/engines/avalanche/logger.cpp
index 5029dab..b95e450 100644
--- a/engines/avalanche/logger.cpp
+++ b/engines/avalanche/logger.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/lucerna.cpp b/engines/avalanche/lucerna.cpp
index e268ac9..777e9bd 100644
--- a/engines/avalanche/lucerna.cpp
+++ b/engines/avalanche/lucerna.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/magic2.cpp b/engines/avalanche/magic2.cpp
index 03f54d0..b7e9d12 100644
--- a/engines/avalanche/magic2.cpp
+++ b/engines/avalanche/magic2.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/magidraw.cpp b/engines/avalanche/magidraw.cpp
index 282eb5d..3c6b35e 100644
--- a/engines/avalanche/magidraw.cpp
+++ b/engines/avalanche/magidraw.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/magishuf.cpp b/engines/avalanche/magishuf.cpp
index 09db4d2..0f1c494 100644
--- a/engines/avalanche/magishuf.cpp
+++ b/engines/avalanche/magishuf.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*#include "Dos.h"*/
diff --git a/engines/avalanche/make!.cpp b/engines/avalanche/make!.cpp
index 447f540..2079547 100644
--- a/engines/avalanche/make!.cpp
+++ b/engines/avalanche/make!.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
                                  /* Phew! */
 #include "graph.h"
diff --git a/engines/avalanche/makeregi.cpp b/engines/avalanche/makeregi.cpp
index 574d346..2e927c8 100644
--- a/engines/avalanche/makeregi.cpp
+++ b/engines/avalanche/makeregi.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
                        /* regname's name starts at $7D1 (2001). */
 
diff --git a/engines/avalanche/makesez.cpp b/engines/avalanche/makesez.cpp
index 50e5810..c264dc1 100644
--- a/engines/avalanche/makesez.cpp
+++ b/engines/avalanche/makesez.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 
diff --git a/engines/avalanche/makevmou.cpp b/engines/avalanche/makevmou.cpp
index 5ed3885..a5f3e25 100644
--- a/engines/avalanche/makevmou.cpp
+++ b/engines/avalanche/makevmou.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/menuxf.cpp b/engines/avalanche/menuxf.cpp
index 1919b11..6a5342e 100644
--- a/engines/avalanche/menuxf.cpp
+++ b/engines/avalanche/menuxf.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/minstran.cpp b/engines/avalanche/minstran.cpp
index 824fc80..29b3da7 100644
--- a/engines/avalanche/minstran.cpp
+++ b/engines/avalanche/minstran.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/newsprit.cpp b/engines/avalanche/newsprit.cpp
index 073e546..5f21ecd 100644
--- a/engines/avalanche/newsprit.cpp
+++ b/engines/avalanche/newsprit.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/nim.cpp b/engines/avalanche/nim.cpp
index e5da17a..7dab81b 100644
--- a/engines/avalanche/nim.cpp
+++ b/engines/avalanche/nim.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/nimdraw.cpp b/engines/avalanche/nimdraw.cpp
index afcac6d..21618d6 100644
--- a/engines/avalanche/nimdraw.cpp
+++ b/engines/avalanche/nimdraw.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/nimunit.cpp b/engines/avalanche/nimunit.cpp
index 0becd47..4aae41b 100644
--- a/engines/avalanche/nimunit.cpp
+++ b/engines/avalanche/nimunit.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/oldfiler.cpp b/engines/avalanche/oldfiler.cpp
index c54a469..c917060 100644
--- a/engines/avalanche/oldfiler.cpp
+++ b/engines/avalanche/oldfiler.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/oldhighs.cpp b/engines/avalanche/oldhighs.cpp
index 1aed0c5..4286ee2 100644
--- a/engines/avalanche/oldhighs.cpp
+++ b/engines/avalanche/oldhighs.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/oldincln.cpp b/engines/avalanche/oldincln.cpp
index 252d8b3..6dd38b6 100644
--- a/engines/avalanche/oldincln.cpp
+++ b/engines/avalanche/oldincln.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/oldtrip.cpp b/engines/avalanche/oldtrip.cpp
index 5e0fb99..1dddecb 100644
--- a/engines/avalanche/oldtrip.cpp
+++ b/engines/avalanche/oldtrip.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/omtest.cpp b/engines/avalanche/omtest.cpp
index 52b1a03..a683bf2 100644
--- a/engines/avalanche/omtest.cpp
+++ b/engines/avalanche/omtest.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/oopmenu.cpp b/engines/avalanche/oopmenu.cpp
index 5c1b13f..641b9ba 100644
--- a/engines/avalanche/oopmenu.cpp
+++ b/engines/avalanche/oopmenu.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 #define __oopmenu_implementation__
 
diff --git a/engines/avalanche/overlap.cpp b/engines/avalanche/overlap.cpp
index 973bafb..b39b5ba 100644
--- a/engines/avalanche/overlap.cpp
+++ b/engines/avalanche/overlap.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/overscro.cpp b/engines/avalanche/overscro.cpp
index 6e0b9fc..e4a2fc9 100644
--- a/engines/avalanche/overscro.cpp
+++ b/engines/avalanche/overscro.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/particle.cpp b/engines/avalanche/particle.cpp
index e4c5b3e..30f0cd3 100644
--- a/engines/avalanche/particle.cpp
+++ b/engines/avalanche/particle.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/pictemp.cpp b/engines/avalanche/pictemp.cpp
index 144d956..cc5386d 100644
--- a/engines/avalanche/pictemp.cpp
+++ b/engines/avalanche/pictemp.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/pictemp2.cpp b/engines/avalanche/pictemp2.cpp
index 54e9e0d..d396c67 100644
--- a/engines/avalanche/pictemp2.cpp
+++ b/engines/avalanche/pictemp2.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
                   /* Get 'em back! */
 #include "graph.h"
diff --git a/engines/avalanche/pingo.cpp b/engines/avalanche/pingo.cpp
index 1bb3066..5a98ba3 100644
--- a/engines/avalanche/pingo.cpp
+++ b/engines/avalanche/pingo.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/plottest.cpp b/engines/avalanche/plottest.cpp
index 80f7937..b9c7fc7 100644
--- a/engines/avalanche/plottest.cpp
+++ b/engines/avalanche/plottest.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/preview1.cpp b/engines/avalanche/preview1.cpp
index aff9f1b..bd5e4d4 100644
--- a/engines/avalanche/preview1.cpp
+++ b/engines/avalanche/preview1.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/qintro.cpp b/engines/avalanche/qintro.cpp
index 3843d80..b727033 100644
--- a/engines/avalanche/qintro.cpp
+++ b/engines/avalanche/qintro.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*#include "Dos.h"*/
diff --git a/engines/avalanche/qstars.cpp b/engines/avalanche/qstars.cpp
index 3a31a9e..d6877ae 100644
--- a/engines/avalanche/qstars.cpp
+++ b/engines/avalanche/qstars.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
                /* Demonstration of the Bigo II system. */
 #include "graph.h"
diff --git a/engines/avalanche/rawupd.cpp b/engines/avalanche/rawupd.cpp
index a911e1d..d37a113 100644
--- a/engines/avalanche/rawupd.cpp
+++ b/engines/avalanche/rawupd.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*#include "Dos.h"*/
diff --git a/engines/avalanche/readsez.cpp b/engines/avalanche/readsez.cpp
index 744d221..9937a46 100644
--- a/engines/avalanche/readsez.cpp
+++ b/engines/avalanche/readsez.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 
diff --git a/engines/avalanche/reginam.cpp b/engines/avalanche/reginam.cpp
index c85dee3..65bd0b5 100644
--- a/engines/avalanche/reginam.cpp
+++ b/engines/avalanche/reginam.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 const array<1,36,char> letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
diff --git a/engines/avalanche/sackb1.cpp b/engines/avalanche/sackb1.cpp
index 8007388..b84788a 100644
--- a/engines/avalanche/sackb1.cpp
+++ b/engines/avalanche/sackb1.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/sackb3.cpp b/engines/avalanche/sackb3.cpp
index b48379d..4d70bf6 100644
--- a/engines/avalanche/sackb3.cpp
+++ b/engines/avalanche/sackb3.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*$M 16384,0,0*/
 
diff --git a/engines/avalanche/saving.cpp b/engines/avalanche/saving.cpp
index 6f35a21..962495f 100644
--- a/engines/avalanche/saving.cpp
+++ b/engines/avalanche/saving.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/scr_1.cpp b/engines/avalanche/scr_1.cpp
index 5118cd8..258ca6b 100644
--- a/engines/avalanche/scr_1.cpp
+++ b/engines/avalanche/scr_1.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/scr_2.cpp b/engines/avalanche/scr_2.cpp
index 7a88efc..55eba41 100644
--- a/engines/avalanche/scr_2.cpp
+++ b/engines/avalanche/scr_2.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/scr_3.cpp b/engines/avalanche/scr_3.cpp
index 0c866fc..96c9d9e 100644
--- a/engines/avalanche/scr_3.cpp
+++ b/engines/avalanche/scr_3.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/scr_4.cpp b/engines/avalanche/scr_4.cpp
index 605a1dc..183104e 100644
--- a/engines/avalanche/scr_4.cpp
+++ b/engines/avalanche/scr_4.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/scr_5.cpp b/engines/avalanche/scr_5.cpp
index e90e55e..ab2359f 100644
--- a/engines/avalanche/scr_5.cpp
+++ b/engines/avalanche/scr_5.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/scr_9.cpp b/engines/avalanche/scr_9.cpp
index e136347..6d46fac 100644
--- a/engines/avalanche/scr_9.cpp
+++ b/engines/avalanche/scr_9.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/scrolls.cpp b/engines/avalanche/scrolls.cpp
index 4a2a0d9..4f02f06 100644
--- a/engines/avalanche/scrolls.cpp
+++ b/engines/avalanche/scrolls.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/sequence.cpp b/engines/avalanche/sequence.cpp
index 00c838a..fccb01b 100644
--- a/engines/avalanche/sequence.cpp
+++ b/engines/avalanche/sequence.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/setup.cpp b/engines/avalanche/setup.cpp
index 60f91e3..32fee35 100644
--- a/engines/avalanche/setup.cpp
+++ b/engines/avalanche/setup.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/seu.cpp b/engines/avalanche/seu.cpp
index 9b1c1c2..f1729f2 100644
--- a/engines/avalanche/seu.cpp
+++ b/engines/avalanche/seu.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/seu_avvy.cpp b/engines/avalanche/seu_avvy.cpp
index fb236b9..c9c30f8 100644
--- a/engines/avalanche/seu_avvy.cpp
+++ b/engines/avalanche/seu_avvy.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/sezedit.cpp b/engines/avalanche/sezedit.cpp
index 946e318..5db639c 100644
--- a/engines/avalanche/sezedit.cpp
+++ b/engines/avalanche/sezedit.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*$M 65520,0,655360*/
diff --git a/engines/avalanche/sezunit.cpp b/engines/avalanche/sezunit.cpp
index 755f247..1f15cf1 100644
--- a/engines/avalanche/sezunit.cpp
+++ b/engines/avalanche/sezunit.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 #define __sezunit_implementation__
 
diff --git a/engines/avalanche/sezxfr.cpp b/engines/avalanche/sezxfr.cpp
index bcc4603..37c9cf0 100644
--- a/engines/avalanche/sezxfr.cpp
+++ b/engines/avalanche/sezxfr.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/shell1.cpp b/engines/avalanche/shell1.cpp
index e8dfb59..75296bf 100644
--- a/engines/avalanche/shell1.cpp
+++ b/engines/avalanche/shell1.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*$M $800,0,0*/
diff --git a/engines/avalanche/shell2.cpp b/engines/avalanche/shell2.cpp
index 053bca9..b0ef13a 100644
--- a/engines/avalanche/shell2.cpp
+++ b/engines/avalanche/shell2.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*#include "Dos.h"*/
diff --git a/engines/avalanche/slope.cpp b/engines/avalanche/slope.cpp
index a4b2f8a..c566246 100644
--- a/engines/avalanche/slope.cpp
+++ b/engines/avalanche/slope.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 
diff --git a/engines/avalanche/spread.cpp b/engines/avalanche/spread.cpp
index 57361e8..5e52228 100644
--- a/engines/avalanche/spread.cpp
+++ b/engines/avalanche/spread.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/spread2.cpp b/engines/avalanche/spread2.cpp
index 96545c2..267bf8e 100644
--- a/engines/avalanche/spread2.cpp
+++ b/engines/avalanche/spread2.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/squish.cpp b/engines/avalanche/squish.cpp
index 4f8cad4..6ff3b90 100644
--- a/engines/avalanche/squish.cpp
+++ b/engines/avalanche/squish.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 
diff --git a/engines/avalanche/ss_blank.cpp b/engines/avalanche/ss_blank.cpp
index 670d12c..f8bc96b 100644
--- a/engines/avalanche/ss_blank.cpp
+++ b/engines/avalanche/ss_blank.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*#include "Dos.h"*/
diff --git a/engines/avalanche/ss_clock.cpp b/engines/avalanche/ss_clock.cpp
index 1880ee5..e169f37 100644
--- a/engines/avalanche/ss_clock.cpp
+++ b/engines/avalanche/ss_clock.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*#include "Dos.h"*/
diff --git a/engines/avalanche/stars.cpp b/engines/avalanche/stars.cpp
index 309d9a4..5181241 100644
--- a/engines/avalanche/stars.cpp
+++ b/engines/avalanche/stars.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
                /* Demonstration of the Bigo II system. */
 /* $I c:\sleep5\DSMI.INC*/
diff --git a/engines/avalanche/status.cpp b/engines/avalanche/status.cpp
index 1e046fc..761f11c 100644
--- a/engines/avalanche/status.cpp
+++ b/engines/avalanche/status.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/sticks.cpp b/engines/avalanche/sticks.cpp
index 1fc11cd..b47b6fb 100644
--- a/engines/avalanche/sticks.cpp
+++ b/engines/avalanche/sticks.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/sunrise.cpp b/engines/avalanche/sunrise.cpp
index 1ed894a..4a0e3ac 100644
--- a/engines/avalanche/sunrise.cpp
+++ b/engines/avalanche/sunrise.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/tempo.cpp b/engines/avalanche/tempo.cpp
index 634f321..b8887ef 100644
--- a/engines/avalanche/tempo.cpp
+++ b/engines/avalanche/tempo.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/test.cpp b/engines/avalanche/test.cpp
index 6d48084..1ac5671 100644
--- a/engines/avalanche/test.cpp
+++ b/engines/avalanche/test.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*$M 2048,0,0*/
diff --git a/engines/avalanche/test2.cpp b/engines/avalanche/test2.cpp
index a4f678d..e5b2347 100644
--- a/engines/avalanche/test2.cpp
+++ b/engines/avalanche/test2.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*#include "Dos.h"*/
diff --git a/engines/avalanche/testblit.cpp b/engines/avalanche/testblit.cpp
index bc00393..2949f30 100644
--- a/engines/avalanche/testblit.cpp
+++ b/engines/avalanche/testblit.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/testcard.cpp b/engines/avalanche/testcard.cpp
index 064b0a1..e1e8696 100644
--- a/engines/avalanche/testcard.cpp
+++ b/engines/avalanche/testcard.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/testenh.cpp b/engines/avalanche/testenh.cpp
index 8077ca3..34e1d67 100644
--- a/engines/avalanche/testenh.cpp
+++ b/engines/avalanche/testenh.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*#include "Enhanced.h"*/
diff --git a/engines/avalanche/timeout.cpp b/engines/avalanche/timeout.cpp
index 26ab449..d5b964d 100644
--- a/engines/avalanche/timeout.cpp
+++ b/engines/avalanche/timeout.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/travel.cpp b/engines/avalanche/travel.cpp
index b759767..6f48f99 100644
--- a/engines/avalanche/travel.cpp
+++ b/engines/avalanche/travel.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/trip.cpp b/engines/avalanche/trip.cpp
index 3dc89ac..58ae537 100644
--- a/engines/avalanche/trip.cpp
+++ b/engines/avalanche/trip.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/trip3.cpp b/engines/avalanche/trip3.cpp
index c67f6e1..d95eba5 100644
--- a/engines/avalanche/trip3.cpp
+++ b/engines/avalanche/trip3.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 #define __trip3_implementation__
             /* Project Minstrel- Trippancy routines */
diff --git a/engines/avalanche/trip42.cpp b/engines/avalanche/trip42.cpp
index b55b209..923e32e 100644
--- a/engines/avalanche/trip42.cpp
+++ b/engines/avalanche/trip42.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/trip5.cpp b/engines/avalanche/trip5.cpp
index 3674b1f..721268b 100644
--- a/engines/avalanche/trip5.cpp
+++ b/engines/avalanche/trip5.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/trip5tst.cpp b/engines/avalanche/trip5tst.cpp
index 4b95ff4..c669cc7 100644
--- a/engines/avalanche/trip5tst.cpp
+++ b/engines/avalanche/trip5tst.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/trip5xf.cpp b/engines/avalanche/trip5xf.cpp
index 0aa5f32..f6225b4 100644
--- a/engines/avalanche/trip5xf.cpp
+++ b/engines/avalanche/trip5xf.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/tripoop.cpp b/engines/avalanche/tripoop.cpp
index 15035c8..b8db1a7 100644
--- a/engines/avalanche/tripoop.cpp
+++ b/engines/avalanche/tripoop.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
                  /* Trip Oop (Trippancy 4 Andexor */
 #include "graph.h"
diff --git a/engines/avalanche/ttmenuxf.cpp b/engines/avalanche/ttmenuxf.cpp
index 51903e9..2d870fa 100644
--- a/engines/avalanche/ttmenuxf.cpp
+++ b/engines/avalanche/ttmenuxf.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/unsquish.cpp b/engines/avalanche/unsquish.cpp
index ad8bd58..9183e1b 100644
--- a/engines/avalanche/unsquish.cpp
+++ b/engines/avalanche/unsquish.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
                             /*$S-*/
 #include "graph.h"
diff --git a/engines/avalanche/viewdocs.cpp b/engines/avalanche/viewdocs.cpp
index effb1c5..a9e1e6e 100644
--- a/engines/avalanche/viewdocs.cpp
+++ b/engines/avalanche/viewdocs.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
                    /*$S-*/
 /*#include "dos.h"*/
diff --git a/engines/avalanche/visa.cpp b/engines/avalanche/visa.cpp
index f5bd511..664dca9 100644
--- a/engines/avalanche/visa.cpp
+++ b/engines/avalanche/visa.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/visatest.cpp b/engines/avalanche/visatest.cpp
index 52970ad..df856f6 100644
--- a/engines/avalanche/visatest.cpp
+++ b/engines/avalanche/visatest.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/xf_gover.cpp b/engines/avalanche/xf_gover.cpp
index 67bb5ff..683e6ca 100644
--- a/engines/avalanche/xf_gover.cpp
+++ b/engines/avalanche/xf_gover.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/xf_help.cpp b/engines/avalanche/xf_help.cpp
index 1f80639..b0f6844 100644
--- a/engines/avalanche/xf_help.cpp
+++ b/engines/avalanche/xf_help.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/xf_visa.cpp b/engines/avalanche/xf_visa.cpp
index 888df55..5fe7156 100644
--- a/engines/avalanche/xf_visa.cpp
+++ b/engines/avalanche/xf_visa.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/xfbutton.cpp b/engines/avalanche/xfbutton.cpp
index dfbaf5e..980eff8 100644
--- a/engines/avalanche/xfbutton.cpp
+++ b/engines/avalanche/xfbutton.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/xfghost.cpp b/engines/avalanche/xfghost.cpp
index 8809bb5..86996ba 100644
--- a/engines/avalanche/xfghost.cpp
+++ b/engines/avalanche/xfghost.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"
diff --git a/engines/avalanche/zapdraw.cpp b/engines/avalanche/zapdraw.cpp
index 5645fa9..2c4f712 100644
--- a/engines/avalanche/zapdraw.cpp
+++ b/engines/avalanche/zapdraw.cpp
@@ -1,4 +1,4 @@
-#include "ptoc.h"
+
 
 
 #include "graph.h"


Commit: a183d560c1bd2c234b9bc7a8aa32af9b0f0d6182
    https://github.com/scummvm/scummvm/commit/a183d560c1bd2c234b9bc7a8aa32af9b0f0d6182
Author: uruk (koppirnyo at gmail.com)
Date: 2013-06-17T04:42:47-07:00

Commit Message:
AVALANCHE: Add standard header.

Changed paths:
    engines/avalanche/1stoff.cpp
    engines/avalanche/access.cpp
    engines/avalanche/access.h
    engines/avalanche/acci.cpp
    engines/avalanche/acci.h
    engines/avalanche/also.cpp
    engines/avalanche/andexor.cpp
    engines/avalanche/andexor2.cpp
    engines/avalanche/andextst.cpp
    engines/avalanche/arch.cpp
    engines/avalanche/arch.h
    engines/avalanche/avalot9.cpp
    engines/avalanche/avbkgrnd.cpp
    engines/avalanche/avmenu.cpp
    engines/avalanche/avvyans.cpp
    engines/avalanche/avvyans2.cpp
    engines/avalanche/avvymonk.cpp
    engines/avalanche/bakchunk.cpp
    engines/avalanche/basher.cpp
    engines/avalanche/basher.h
    engines/avalanche/bootstrp.cpp
    engines/avalanche/cadburys.cpp
    engines/avalanche/cadburys.h
    engines/avalanche/celer.cpp
    engines/avalanche/celer.h
    engines/avalanche/ch_egats.cpp
    engines/avalanche/charmap.cpp
    engines/avalanche/chunker.cpp
    engines/avalanche/chunkxf1.cpp
    engines/avalanche/chunkxf2.cpp
    engines/avalanche/chunkxf3.cpp
    engines/avalanche/chunkxf4.cpp
    engines/avalanche/chunkxf5.cpp
    engines/avalanche/chunkxf6.cpp
    engines/avalanche/chunkxf7.cpp
    engines/avalanche/chunkxf8.cpp
    engines/avalanche/chunkxf9.cpp
    engines/avalanche/chunkxfa.cpp
    engines/avalanche/chunkxfb.cpp
    engines/avalanche/chunkxfc.cpp
    engines/avalanche/chunkxfd.cpp
    engines/avalanche/chunkxfe.cpp
    engines/avalanche/chunkxff.cpp
    engines/avalanche/chunkxfg.cpp
    engines/avalanche/chunkxfh.cpp
    engines/avalanche/chunkxfi.cpp
    engines/avalanche/chunkxfj.cpp
    engines/avalanche/chunkxfk.cpp
    engines/avalanche/chunkxfl.cpp
    engines/avalanche/clock.cpp
    engines/avalanche/closing.cpp
    engines/avalanche/closing.h
    engines/avalanche/convert.cpp
    engines/avalanche/convmous.cpp
    engines/avalanche/credits.cpp
    engines/avalanche/displtxt.cpp
    engines/avalanche/dropdown.cpp
    engines/avalanche/dropdown.h
    engines/avalanche/dwidth.cpp
    engines/avalanche/edhead.cpp
    engines/avalanche/edna.cpp
    engines/avalanche/enhanced.cpp
    engines/avalanche/enhanced.h
    engines/avalanche/enid.cpp
    engines/avalanche/enid.h
    engines/avalanche/filer.cpp
    engines/avalanche/fileunit.cpp
    engines/avalanche/fileunit.h
    engines/avalanche/filing.cpp
    engines/avalanche/folktemp.cpp
    engines/avalanche/fontslid.cpp
    engines/avalanche/frere.cpp
    engines/avalanche/g-room.cpp
    engines/avalanche/golden.cpp
    engines/avalanche/gyro.cpp
    engines/avalanche/gyro.h
    engines/avalanche/help.cpp
    engines/avalanche/help2.cpp
    engines/avalanche/helpbak.cpp
    engines/avalanche/helpbak.h
    engines/avalanche/helper.cpp
    engines/avalanche/helper.h
    engines/avalanche/hibits.cpp
    engines/avalanche/highs.cpp
    engines/avalanche/highs.h
    engines/avalanche/hiz.cpp
    engines/avalanche/incline.cpp
    engines/avalanche/incline.h
    engines/avalanche/initxf.cpp
    engines/avalanche/inputtes.cpp
    engines/avalanche/intro.cpp
    engines/avalanche/ints.cpp
    engines/avalanche/joysetup.cpp
    engines/avalanche/joystick.cpp
    engines/avalanche/joystick.h
    engines/avalanche/loading.cpp
    engines/avalanche/logger.cpp
    engines/avalanche/logger.h
    engines/avalanche/lucerna.cpp
    engines/avalanche/lucerna.h
    engines/avalanche/magic2.cpp
    engines/avalanche/magidraw.cpp
    engines/avalanche/magishuf.cpp
    engines/avalanche/make!.cpp
    engines/avalanche/makeregi.cpp
    engines/avalanche/makesez.cpp
    engines/avalanche/makevmou.cpp
    engines/avalanche/menuxf.cpp
    engines/avalanche/minstran.cpp
    engines/avalanche/newsprit.cpp
    engines/avalanche/nim.cpp
    engines/avalanche/nimdraw.cpp
    engines/avalanche/nimunit.cpp
    engines/avalanche/nimunit.h
    engines/avalanche/oldfiler.cpp
    engines/avalanche/oldhighs.cpp
    engines/avalanche/oldincln.cpp
    engines/avalanche/oldincln.h
    engines/avalanche/oldtrip.cpp
    engines/avalanche/oldtrip.h
    engines/avalanche/omtest.cpp
    engines/avalanche/oopmenu.cpp
    engines/avalanche/oopmenu.h
    engines/avalanche/overlap.cpp
    engines/avalanche/overscro.cpp
    engines/avalanche/particle.cpp
    engines/avalanche/pictemp.cpp
    engines/avalanche/pictemp2.cpp
    engines/avalanche/pingo.cpp
    engines/avalanche/pingo.h
    engines/avalanche/plottest.cpp
    engines/avalanche/preview1.cpp
    engines/avalanche/qintro.cpp
    engines/avalanche/qstars.cpp
    engines/avalanche/rawupd.cpp
    engines/avalanche/readsez.cpp
    engines/avalanche/reginam.cpp
    engines/avalanche/sackb1.cpp
    engines/avalanche/sackb1.h
    engines/avalanche/sackb3.cpp
    engines/avalanche/sackblas.cpp
    engines/avalanche/saving.cpp
    engines/avalanche/scr_1.cpp
    engines/avalanche/scr_2.cpp
    engines/avalanche/scr_3.cpp
    engines/avalanche/scr_4.cpp
    engines/avalanche/scr_5.cpp
    engines/avalanche/scr_9.cpp
    engines/avalanche/scrolls.cpp
    engines/avalanche/scrolls.h
    engines/avalanche/sequence.cpp
    engines/avalanche/sequence.h
    engines/avalanche/setup.cpp
    engines/avalanche/seu.cpp
    engines/avalanche/seu_avvy.cpp
    engines/avalanche/sez.cpp
    engines/avalanche/sezedit.cpp
    engines/avalanche/sezunit.cpp
    engines/avalanche/sezunit.h
    engines/avalanche/sezxfr.cpp
    engines/avalanche/shell1.cpp
    engines/avalanche/shell2.cpp
    engines/avalanche/slope.cpp
    engines/avalanche/spread.cpp
    engines/avalanche/spread2.cpp
    engines/avalanche/squish.cpp
    engines/avalanche/ss_blank.cpp
    engines/avalanche/ss_clock.cpp
    engines/avalanche/stars.cpp
    engines/avalanche/status.cpp
    engines/avalanche/sticks.cpp
    engines/avalanche/sticks.h
    engines/avalanche/sunrise.cpp
    engines/avalanche/tempo.cpp
    engines/avalanche/test.cpp
    engines/avalanche/test2.cpp
    engines/avalanche/testblit.cpp
    engines/avalanche/testcard.cpp
    engines/avalanche/testenh.cpp
    engines/avalanche/timeout.cpp
    engines/avalanche/timeout.h
    engines/avalanche/travel.cpp
    engines/avalanche/trip.cpp
    engines/avalanche/trip.h
    engines/avalanche/trip3.cpp
    engines/avalanche/trip3.h
    engines/avalanche/trip42.cpp
    engines/avalanche/trip42.h
    engines/avalanche/trip5.cpp
    engines/avalanche/trip5.h
    engines/avalanche/trip5tst.cpp
    engines/avalanche/trip5xf.cpp
    engines/avalanche/tripoop.cpp
    engines/avalanche/ttmenuxf.cpp
    engines/avalanche/unsquish.cpp
    engines/avalanche/viewdocs.cpp
    engines/avalanche/visa.cpp
    engines/avalanche/visa.h
    engines/avalanche/visatest.cpp
    engines/avalanche/waver.cpp
    engines/avalanche/xf_gover.cpp
    engines/avalanche/xf_help.cpp
    engines/avalanche/xf_visa.cpp
    engines/avalanche/xfbutton.cpp
    engines/avalanche/xfghost.cpp
    engines/avalanche/zapdraw.cpp



diff --git a/engines/avalanche/1stoff.cpp b/engines/avalanche/1stoff.cpp
index e8debc3..2ba27a6 100644
--- a/engines/avalanche/1stoff.cpp
+++ b/engines/avalanche/1stoff.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/access.cpp b/engines/avalanche/access.cpp
index faa00bb..71aaa7c 100644
--- a/engines/avalanche/access.cpp
+++ b/engines/avalanche/access.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*
diff --git a/engines/avalanche/access.h b/engines/avalanche/access.h
index 825deeb..a6d412f 100644
--- a/engines/avalanche/access.h
+++ b/engines/avalanche/access.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __access_h__
 #define __access_h__
 
diff --git a/engines/avalanche/acci.cpp b/engines/avalanche/acci.cpp
index 32fde0c..f816019 100644
--- a/engines/avalanche/acci.cpp
+++ b/engines/avalanche/acci.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*  $D-*/
diff --git a/engines/avalanche/acci.h b/engines/avalanche/acci.h
index f9d1265..ab220b3 100644
--- a/engines/avalanche/acci.h
+++ b/engines/avalanche/acci.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __acci_h__
 #define __acci_h__
 
diff --git a/engines/avalanche/also.cpp b/engines/avalanche/also.cpp
index e5af131..9fac1d0 100644
--- a/engines/avalanche/also.cpp
+++ b/engines/avalanche/also.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/andexor.cpp b/engines/avalanche/andexor.cpp
index 9cf259e..f1db882 100644
--- a/engines/avalanche/andexor.cpp
+++ b/engines/avalanche/andexor.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
                  /* Trippancy IV - original file */
diff --git a/engines/avalanche/andexor2.cpp b/engines/avalanche/andexor2.cpp
index b5355d7..5c77fc8 100644
--- a/engines/avalanche/andexor2.cpp
+++ b/engines/avalanche/andexor2.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
                   /* Trippancy IV - original file */
diff --git a/engines/avalanche/andextst.cpp b/engines/avalanche/andextst.cpp
index db5c659..6e9ec94 100644
--- a/engines/avalanche/andextst.cpp
+++ b/engines/avalanche/andextst.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/arch.cpp b/engines/avalanche/arch.cpp
index e05f173..f59d28d 100644
--- a/engines/avalanche/arch.cpp
+++ b/engines/avalanche/arch.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*
diff --git a/engines/avalanche/arch.h b/engines/avalanche/arch.h
index cb0960f..031f9f3 100644
--- a/engines/avalanche/arch.h
+++ b/engines/avalanche/arch.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __arch_h__
 #define __arch_h__
 
diff --git a/engines/avalanche/avalot9.cpp b/engines/avalanche/avalot9.cpp
index 3780b79..d960a39 100644
--- a/engines/avalanche/avalot9.cpp
+++ b/engines/avalanche/avalot9.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*
diff --git a/engines/avalanche/avbkgrnd.cpp b/engines/avalanche/avbkgrnd.cpp
index 6488fb8..4b7beba 100644
--- a/engines/avalanche/avbkgrnd.cpp
+++ b/engines/avalanche/avbkgrnd.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/avmenu.cpp b/engines/avalanche/avmenu.cpp
index 9b366a9..aa1ea69 100644
--- a/engines/avalanche/avmenu.cpp
+++ b/engines/avalanche/avmenu.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/avvyans.cpp b/engines/avalanche/avvyans.cpp
index 1985194..f45966b 100644
--- a/engines/avalanche/avvyans.cpp
+++ b/engines/avalanche/avvyans.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/avvyans2.cpp b/engines/avalanche/avvyans2.cpp
index 9702ec2..7bdb1e9 100644
--- a/engines/avalanche/avvyans2.cpp
+++ b/engines/avalanche/avvyans2.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/avvymonk.cpp b/engines/avalanche/avvymonk.cpp
index 7d5143b..74cc61d 100644
--- a/engines/avalanche/avvymonk.cpp
+++ b/engines/avalanche/avvymonk.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/bakchunk.cpp b/engines/avalanche/bakchunk.cpp
index 296c55a..fb148e2 100644
--- a/engines/avalanche/bakchunk.cpp
+++ b/engines/avalanche/bakchunk.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/basher.cpp b/engines/avalanche/basher.cpp
index 3ac401e..0e6e164 100644
--- a/engines/avalanche/basher.cpp
+++ b/engines/avalanche/basher.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*
diff --git a/engines/avalanche/basher.h b/engines/avalanche/basher.h
index 1afecae..22ad306 100644
--- a/engines/avalanche/basher.h
+++ b/engines/avalanche/basher.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __basher_h__
 #define __basher_h__
 
diff --git a/engines/avalanche/bootstrp.cpp b/engines/avalanche/bootstrp.cpp
index 141c69b..1d74184 100644
--- a/engines/avalanche/bootstrp.cpp
+++ b/engines/avalanche/bootstrp.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/cadburys.cpp b/engines/avalanche/cadburys.cpp
index 3839875..e37821a 100644
--- a/engines/avalanche/cadburys.cpp
+++ b/engines/avalanche/cadburys.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 #define __cadburys_implementation__
diff --git a/engines/avalanche/cadburys.h b/engines/avalanche/cadburys.h
index 65e7bd7..917fd4b 100644
--- a/engines/avalanche/cadburys.h
+++ b/engines/avalanche/cadburys.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __cadburys_h__
 #define __cadburys_h__
 
diff --git a/engines/avalanche/celer.cpp b/engines/avalanche/celer.cpp
index bedab4b..e700c62 100644
--- a/engines/avalanche/celer.cpp
+++ b/engines/avalanche/celer.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*
diff --git a/engines/avalanche/celer.h b/engines/avalanche/celer.h
index f6ad52f..409729f 100644
--- a/engines/avalanche/celer.h
+++ b/engines/avalanche/celer.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __celer_h__
 #define __celer_h__
 
diff --git a/engines/avalanche/ch_egats.cpp b/engines/avalanche/ch_egats.cpp
index 0488d21..64f1c9d 100644
--- a/engines/avalanche/ch_egats.cpp
+++ b/engines/avalanche/ch_egats.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/charmap.cpp b/engines/avalanche/charmap.cpp
index 0eb701b..6839b85 100644
--- a/engines/avalanche/charmap.cpp
+++ b/engines/avalanche/charmap.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/chunker.cpp b/engines/avalanche/chunker.cpp
index 00cb696..6903439 100644
--- a/engines/avalanche/chunker.cpp
+++ b/engines/avalanche/chunker.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/chunkxf1.cpp b/engines/avalanche/chunkxf1.cpp
index 4b8d99e..b2dc01a 100644
--- a/engines/avalanche/chunkxf1.cpp
+++ b/engines/avalanche/chunkxf1.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/chunkxf2.cpp b/engines/avalanche/chunkxf2.cpp
index 252f132..2c25a52 100644
--- a/engines/avalanche/chunkxf2.cpp
+++ b/engines/avalanche/chunkxf2.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/chunkxf3.cpp b/engines/avalanche/chunkxf3.cpp
index d8b89dd..7f3adf4 100644
--- a/engines/avalanche/chunkxf3.cpp
+++ b/engines/avalanche/chunkxf3.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/chunkxf4.cpp b/engines/avalanche/chunkxf4.cpp
index 4a644d2..ad64d6e 100644
--- a/engines/avalanche/chunkxf4.cpp
+++ b/engines/avalanche/chunkxf4.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/chunkxf5.cpp b/engines/avalanche/chunkxf5.cpp
index a2d02f9..9c80b53 100644
--- a/engines/avalanche/chunkxf5.cpp
+++ b/engines/avalanche/chunkxf5.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/chunkxf6.cpp b/engines/avalanche/chunkxf6.cpp
index b319f2b..a2089f4 100644
--- a/engines/avalanche/chunkxf6.cpp
+++ b/engines/avalanche/chunkxf6.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/chunkxf7.cpp b/engines/avalanche/chunkxf7.cpp
index 8d2f7a9..8f02032 100644
--- a/engines/avalanche/chunkxf7.cpp
+++ b/engines/avalanche/chunkxf7.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/chunkxf8.cpp b/engines/avalanche/chunkxf8.cpp
index 98ada51..6dacd0c 100644
--- a/engines/avalanche/chunkxf8.cpp
+++ b/engines/avalanche/chunkxf8.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/chunkxf9.cpp b/engines/avalanche/chunkxf9.cpp
index 156827b..a94f432 100644
--- a/engines/avalanche/chunkxf9.cpp
+++ b/engines/avalanche/chunkxf9.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/chunkxfa.cpp b/engines/avalanche/chunkxfa.cpp
index 1703d4f..fd10258 100644
--- a/engines/avalanche/chunkxfa.cpp
+++ b/engines/avalanche/chunkxfa.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/chunkxfb.cpp b/engines/avalanche/chunkxfb.cpp
index 71fd991..4698be2 100644
--- a/engines/avalanche/chunkxfb.cpp
+++ b/engines/avalanche/chunkxfb.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/chunkxfc.cpp b/engines/avalanche/chunkxfc.cpp
index ec5ff4b..30b13e2 100644
--- a/engines/avalanche/chunkxfc.cpp
+++ b/engines/avalanche/chunkxfc.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/chunkxfd.cpp b/engines/avalanche/chunkxfd.cpp
index 9752345..e8e7860 100644
--- a/engines/avalanche/chunkxfd.cpp
+++ b/engines/avalanche/chunkxfd.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/chunkxfe.cpp b/engines/avalanche/chunkxfe.cpp
index bc11f36..f2eb675 100644
--- a/engines/avalanche/chunkxfe.cpp
+++ b/engines/avalanche/chunkxfe.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/chunkxff.cpp b/engines/avalanche/chunkxff.cpp
index e2c6a27..1b0b7d7 100644
--- a/engines/avalanche/chunkxff.cpp
+++ b/engines/avalanche/chunkxff.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/chunkxfg.cpp b/engines/avalanche/chunkxfg.cpp
index 762a44a..bb289b3 100644
--- a/engines/avalanche/chunkxfg.cpp
+++ b/engines/avalanche/chunkxfg.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/chunkxfh.cpp b/engines/avalanche/chunkxfh.cpp
index 4736700..210c08b 100644
--- a/engines/avalanche/chunkxfh.cpp
+++ b/engines/avalanche/chunkxfh.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/chunkxfi.cpp b/engines/avalanche/chunkxfi.cpp
index 917d83b..27d4122 100644
--- a/engines/avalanche/chunkxfi.cpp
+++ b/engines/avalanche/chunkxfi.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/chunkxfj.cpp b/engines/avalanche/chunkxfj.cpp
index 1f7f234..0f19c65 100644
--- a/engines/avalanche/chunkxfj.cpp
+++ b/engines/avalanche/chunkxfj.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/chunkxfk.cpp b/engines/avalanche/chunkxfk.cpp
index 38523f6..78083b6 100644
--- a/engines/avalanche/chunkxfk.cpp
+++ b/engines/avalanche/chunkxfk.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/chunkxfl.cpp b/engines/avalanche/chunkxfl.cpp
index 8b942d9..c5f9797 100644
--- a/engines/avalanche/chunkxfl.cpp
+++ b/engines/avalanche/chunkxfl.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/clock.cpp b/engines/avalanche/clock.cpp
index 6674401..849846a 100644
--- a/engines/avalanche/clock.cpp
+++ b/engines/avalanche/clock.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/closing.cpp b/engines/avalanche/closing.cpp
index bfed58e..aa72aef 100644
--- a/engines/avalanche/closing.cpp
+++ b/engines/avalanche/closing.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*
diff --git a/engines/avalanche/closing.h b/engines/avalanche/closing.h
index 97dd37e..2c4eec4 100644
--- a/engines/avalanche/closing.h
+++ b/engines/avalanche/closing.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __closing_h__
 #define __closing_h__
 
diff --git a/engines/avalanche/convert.cpp b/engines/avalanche/convert.cpp
index ca41b36..d0b0f23 100644
--- a/engines/avalanche/convert.cpp
+++ b/engines/avalanche/convert.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/convmous.cpp b/engines/avalanche/convmous.cpp
index b5efcba..ef79ff8 100644
--- a/engines/avalanche/convmous.cpp
+++ b/engines/avalanche/convmous.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/credits.cpp b/engines/avalanche/credits.cpp
index d37849b..2481229 100644
--- a/engines/avalanche/credits.cpp
+++ b/engines/avalanche/credits.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/displtxt.cpp b/engines/avalanche/displtxt.cpp
index 376c346..e002978 100644
--- a/engines/avalanche/displtxt.cpp
+++ b/engines/avalanche/displtxt.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/dropdown.cpp b/engines/avalanche/dropdown.cpp
index 9319408..320a555 100644
--- a/engines/avalanche/dropdown.cpp
+++ b/engines/avalanche/dropdown.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*
diff --git a/engines/avalanche/dropdown.h b/engines/avalanche/dropdown.h
index 9d32fb9..349b1a0 100644
--- a/engines/avalanche/dropdown.h
+++ b/engines/avalanche/dropdown.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __dropdown_h__
 #define __dropdown_h__
 
diff --git a/engines/avalanche/dwidth.cpp b/engines/avalanche/dwidth.cpp
index aa0fd75..ec9e250 100644
--- a/engines/avalanche/dwidth.cpp
+++ b/engines/avalanche/dwidth.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/edhead.cpp b/engines/avalanche/edhead.cpp
index c06d2b1..e8eca65 100644
--- a/engines/avalanche/edhead.cpp
+++ b/engines/avalanche/edhead.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/edna.cpp b/engines/avalanche/edna.cpp
index d700a85..ebc7e4c 100644
--- a/engines/avalanche/edna.cpp
+++ b/engines/avalanche/edna.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*$M 10000,0,1000*/ /*$V-*/
diff --git a/engines/avalanche/enhanced.cpp b/engines/avalanche/enhanced.cpp
index 34a46ff..543d768 100644
--- a/engines/avalanche/enhanced.cpp
+++ b/engines/avalanche/enhanced.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 #define __enhanced_implementation__
diff --git a/engines/avalanche/enhanced.h b/engines/avalanche/enhanced.h
index a028648..d7296ca 100644
--- a/engines/avalanche/enhanced.h
+++ b/engines/avalanche/enhanced.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __enhanced_h__
 #define __enhanced_h__
 
diff --git a/engines/avalanche/enid.cpp b/engines/avalanche/enid.cpp
index fb2577a..c3dd4a8 100644
--- a/engines/avalanche/enid.cpp
+++ b/engines/avalanche/enid.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*
diff --git a/engines/avalanche/enid.h b/engines/avalanche/enid.h
index abf20a2..6ebfc3d 100644
--- a/engines/avalanche/enid.h
+++ b/engines/avalanche/enid.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __enid_h__
 #define __enid_h__
 
diff --git a/engines/avalanche/filer.cpp b/engines/avalanche/filer.cpp
index 4ae92c3..ba76ee2 100644
--- a/engines/avalanche/filer.cpp
+++ b/engines/avalanche/filer.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/fileunit.cpp b/engines/avalanche/fileunit.cpp
index d9de210..6d758b6 100644
--- a/engines/avalanche/fileunit.cpp
+++ b/engines/avalanche/fileunit.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 #define __fileunit_implementation__
diff --git a/engines/avalanche/fileunit.h b/engines/avalanche/fileunit.h
index 08f9262..0f5fb7a 100644
--- a/engines/avalanche/fileunit.h
+++ b/engines/avalanche/fileunit.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __fileunit_h__
 #define __fileunit_h__
 
diff --git a/engines/avalanche/filing.cpp b/engines/avalanche/filing.cpp
index 841163f..bc6ce17 100644
--- a/engines/avalanche/filing.cpp
+++ b/engines/avalanche/filing.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*
diff --git a/engines/avalanche/folktemp.cpp b/engines/avalanche/folktemp.cpp
index 47d5d58..ac371f3 100644
--- a/engines/avalanche/folktemp.cpp
+++ b/engines/avalanche/folktemp.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
                   /* Get 'em back! */
diff --git a/engines/avalanche/fontslid.cpp b/engines/avalanche/fontslid.cpp
index 31154aa..863de0b 100644
--- a/engines/avalanche/fontslid.cpp
+++ b/engines/avalanche/fontslid.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/frere.cpp b/engines/avalanche/frere.cpp
index 5f1b517..a4a6951 100644
--- a/engines/avalanche/frere.cpp
+++ b/engines/avalanche/frere.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/g-room.cpp b/engines/avalanche/g-room.cpp
index 386a16c..521cbb2 100644
--- a/engines/avalanche/g-room.cpp
+++ b/engines/avalanche/g-room.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/golden.cpp b/engines/avalanche/golden.cpp
index 3643f43..3b64783 100644
--- a/engines/avalanche/golden.cpp
+++ b/engines/avalanche/golden.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/gyro.cpp b/engines/avalanche/gyro.cpp
index 0e05d77..e7fdc2a 100644
--- a/engines/avalanche/gyro.cpp
+++ b/engines/avalanche/gyro.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*
diff --git a/engines/avalanche/gyro.h b/engines/avalanche/gyro.h
index 8a1fdb5..5d6128b 100644
--- a/engines/avalanche/gyro.h
+++ b/engines/avalanche/gyro.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __gyro_h__
 #define __gyro_h__
 
diff --git a/engines/avalanche/help.cpp b/engines/avalanche/help.cpp
index 804ded4..7768fb6 100644
--- a/engines/avalanche/help.cpp
+++ b/engines/avalanche/help.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/help2.cpp b/engines/avalanche/help2.cpp
index 148f578..aae1cc8 100644
--- a/engines/avalanche/help2.cpp
+++ b/engines/avalanche/help2.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/helpbak.cpp b/engines/avalanche/helpbak.cpp
index 367fd20..087f199 100644
--- a/engines/avalanche/helpbak.cpp
+++ b/engines/avalanche/helpbak.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*
diff --git a/engines/avalanche/helpbak.h b/engines/avalanche/helpbak.h
index 12a7869..ac8898a 100644
--- a/engines/avalanche/helpbak.h
+++ b/engines/avalanche/helpbak.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __helpbak_h__
 #define __helpbak_h__
 
diff --git a/engines/avalanche/helper.cpp b/engines/avalanche/helper.cpp
index 0708413..76680b0 100644
--- a/engines/avalanche/helper.cpp
+++ b/engines/avalanche/helper.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*
diff --git a/engines/avalanche/helper.h b/engines/avalanche/helper.h
index 9c1c43c..86d1930 100644
--- a/engines/avalanche/helper.h
+++ b/engines/avalanche/helper.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __helper_h__
 #define __helper_h__
 
diff --git a/engines/avalanche/hibits.cpp b/engines/avalanche/hibits.cpp
index c6a80cb..ed041f5 100644
--- a/engines/avalanche/hibits.cpp
+++ b/engines/avalanche/hibits.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/highs.cpp b/engines/avalanche/highs.cpp
index 38d929e..552211b 100644
--- a/engines/avalanche/highs.cpp
+++ b/engines/avalanche/highs.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*
diff --git a/engines/avalanche/highs.h b/engines/avalanche/highs.h
index 3d6eb65..187b31c 100644
--- a/engines/avalanche/highs.h
+++ b/engines/avalanche/highs.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __highs_h__
 #define __highs_h__
 
diff --git a/engines/avalanche/hiz.cpp b/engines/avalanche/hiz.cpp
index d9508b5..11c54f8 100644
--- a/engines/avalanche/hiz.cpp
+++ b/engines/avalanche/hiz.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/incline.cpp b/engines/avalanche/incline.cpp
index 8cc8170..99433f9 100644
--- a/engines/avalanche/incline.cpp
+++ b/engines/avalanche/incline.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*
diff --git a/engines/avalanche/incline.h b/engines/avalanche/incline.h
index 4b252a1..2d858bd 100644
--- a/engines/avalanche/incline.h
+++ b/engines/avalanche/incline.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __incline_h__
 #define __incline_h__
 
diff --git a/engines/avalanche/initxf.cpp b/engines/avalanche/initxf.cpp
index a485c1b..2dfde79 100644
--- a/engines/avalanche/initxf.cpp
+++ b/engines/avalanche/initxf.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/inputtes.cpp b/engines/avalanche/inputtes.cpp
index 7d95ff9..b34c59a 100644
--- a/engines/avalanche/inputtes.cpp
+++ b/engines/avalanche/inputtes.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/intro.cpp b/engines/avalanche/intro.cpp
index 54cd3e6..ba230c0 100644
--- a/engines/avalanche/intro.cpp
+++ b/engines/avalanche/intro.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/ints.cpp b/engines/avalanche/ints.cpp
index acb607c..48eab01 100644
--- a/engines/avalanche/ints.cpp
+++ b/engines/avalanche/ints.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
               /* Avalot interrupt handler */
diff --git a/engines/avalanche/joysetup.cpp b/engines/avalanche/joysetup.cpp
index 7d22a50..e4e73dc 100644
--- a/engines/avalanche/joysetup.cpp
+++ b/engines/avalanche/joysetup.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
                        /* Avalot joystick setup routines. To be incorporated
diff --git a/engines/avalanche/joystick.cpp b/engines/avalanche/joystick.cpp
index c3ab14a..9d329ef 100644
--- a/engines/avalanche/joystick.cpp
+++ b/engines/avalanche/joystick.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 #define __joystick_implementation__
diff --git a/engines/avalanche/joystick.h b/engines/avalanche/joystick.h
index 0a3147e..00da7f0 100644
--- a/engines/avalanche/joystick.h
+++ b/engines/avalanche/joystick.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __joystick_h__
 #define __joystick_h__
 
diff --git a/engines/avalanche/loading.cpp b/engines/avalanche/loading.cpp
index 9bc4a0c..70acdd0 100644
--- a/engines/avalanche/loading.cpp
+++ b/engines/avalanche/loading.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/logger.cpp b/engines/avalanche/logger.cpp
index b95e450..344f99f 100644
--- a/engines/avalanche/logger.cpp
+++ b/engines/avalanche/logger.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*
diff --git a/engines/avalanche/logger.h b/engines/avalanche/logger.h
index 016bfb6..803227d 100644
--- a/engines/avalanche/logger.h
+++ b/engines/avalanche/logger.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __logger_h__
 #define __logger_h__
 
diff --git a/engines/avalanche/lucerna.cpp b/engines/avalanche/lucerna.cpp
index 777e9bd..4bc776a 100644
--- a/engines/avalanche/lucerna.cpp
+++ b/engines/avalanche/lucerna.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*
diff --git a/engines/avalanche/lucerna.h b/engines/avalanche/lucerna.h
index a602f8c..578557a 100644
--- a/engines/avalanche/lucerna.h
+++ b/engines/avalanche/lucerna.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __lucerna_h__
 #define __lucerna_h__
 
diff --git a/engines/avalanche/magic2.cpp b/engines/avalanche/magic2.cpp
index b7e9d12..3e9e986 100644
--- a/engines/avalanche/magic2.cpp
+++ b/engines/avalanche/magic2.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/magidraw.cpp b/engines/avalanche/magidraw.cpp
index 3c6b35e..3fe305b 100644
--- a/engines/avalanche/magidraw.cpp
+++ b/engines/avalanche/magidraw.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/magishuf.cpp b/engines/avalanche/magishuf.cpp
index 0f1c494..8099c32 100644
--- a/engines/avalanche/magishuf.cpp
+++ b/engines/avalanche/magishuf.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/make!.cpp b/engines/avalanche/make!.cpp
index 2079547..b035329 100644
--- a/engines/avalanche/make!.cpp
+++ b/engines/avalanche/make!.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
                                  /* Phew! */
diff --git a/engines/avalanche/makeregi.cpp b/engines/avalanche/makeregi.cpp
index 2e927c8..eaedee4 100644
--- a/engines/avalanche/makeregi.cpp
+++ b/engines/avalanche/makeregi.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
                        /* regname's name starts at $7D1 (2001). */
diff --git a/engines/avalanche/makesez.cpp b/engines/avalanche/makesez.cpp
index c264dc1..4455fbc 100644
--- a/engines/avalanche/makesez.cpp
+++ b/engines/avalanche/makesez.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/makevmou.cpp b/engines/avalanche/makevmou.cpp
index a5f3e25..9e933b3 100644
--- a/engines/avalanche/makevmou.cpp
+++ b/engines/avalanche/makevmou.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/menuxf.cpp b/engines/avalanche/menuxf.cpp
index 6a5342e..f1d8df6 100644
--- a/engines/avalanche/menuxf.cpp
+++ b/engines/avalanche/menuxf.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/minstran.cpp b/engines/avalanche/minstran.cpp
index 29b3da7..fa8f948 100644
--- a/engines/avalanche/minstran.cpp
+++ b/engines/avalanche/minstran.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/newsprit.cpp b/engines/avalanche/newsprit.cpp
index 5f21ecd..245bda6 100644
--- a/engines/avalanche/newsprit.cpp
+++ b/engines/avalanche/newsprit.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/nim.cpp b/engines/avalanche/nim.cpp
index 7dab81b..4d05e34 100644
--- a/engines/avalanche/nim.cpp
+++ b/engines/avalanche/nim.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/nimdraw.cpp b/engines/avalanche/nimdraw.cpp
index 21618d6..0577410 100644
--- a/engines/avalanche/nimdraw.cpp
+++ b/engines/avalanche/nimdraw.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/nimunit.cpp b/engines/avalanche/nimunit.cpp
index 4aae41b..83a5260 100644
--- a/engines/avalanche/nimunit.cpp
+++ b/engines/avalanche/nimunit.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*
diff --git a/engines/avalanche/nimunit.h b/engines/avalanche/nimunit.h
index 5e3386d..4e23124 100644
--- a/engines/avalanche/nimunit.h
+++ b/engines/avalanche/nimunit.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __nimunit_h__
 #define __nimunit_h__
 
diff --git a/engines/avalanche/oldfiler.cpp b/engines/avalanche/oldfiler.cpp
index c917060..cd1f874 100644
--- a/engines/avalanche/oldfiler.cpp
+++ b/engines/avalanche/oldfiler.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/oldhighs.cpp b/engines/avalanche/oldhighs.cpp
index 4286ee2..4fd83e0 100644
--- a/engines/avalanche/oldhighs.cpp
+++ b/engines/avalanche/oldhighs.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/oldincln.cpp b/engines/avalanche/oldincln.cpp
index 6dd38b6..4a2ee46 100644
--- a/engines/avalanche/oldincln.cpp
+++ b/engines/avalanche/oldincln.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*
diff --git a/engines/avalanche/oldincln.h b/engines/avalanche/oldincln.h
index a0db659..18ed82e 100644
--- a/engines/avalanche/oldincln.h
+++ b/engines/avalanche/oldincln.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __oldincln_h__
 #define __oldincln_h__
 
diff --git a/engines/avalanche/oldtrip.cpp b/engines/avalanche/oldtrip.cpp
index 1dddecb..bee0294 100644
--- a/engines/avalanche/oldtrip.cpp
+++ b/engines/avalanche/oldtrip.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*
diff --git a/engines/avalanche/oldtrip.h b/engines/avalanche/oldtrip.h
index dc36efd..e737214 100644
--- a/engines/avalanche/oldtrip.h
+++ b/engines/avalanche/oldtrip.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __oldtrip_h__
 #define __oldtrip_h__
 
diff --git a/engines/avalanche/omtest.cpp b/engines/avalanche/omtest.cpp
index a683bf2..8e89fc7 100644
--- a/engines/avalanche/omtest.cpp
+++ b/engines/avalanche/omtest.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/oopmenu.cpp b/engines/avalanche/oopmenu.cpp
index 641b9ba..d2d2415 100644
--- a/engines/avalanche/oopmenu.cpp
+++ b/engines/avalanche/oopmenu.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 #define __oopmenu_implementation__
diff --git a/engines/avalanche/oopmenu.h b/engines/avalanche/oopmenu.h
index ee928e2..f753f5e 100644
--- a/engines/avalanche/oopmenu.h
+++ b/engines/avalanche/oopmenu.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __oopmenu_h__
 #define __oopmenu_h__
 
diff --git a/engines/avalanche/overlap.cpp b/engines/avalanche/overlap.cpp
index b39b5ba..8659943 100644
--- a/engines/avalanche/overlap.cpp
+++ b/engines/avalanche/overlap.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/overscro.cpp b/engines/avalanche/overscro.cpp
index e4a2fc9..853a434 100644
--- a/engines/avalanche/overscro.cpp
+++ b/engines/avalanche/overscro.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/particle.cpp b/engines/avalanche/particle.cpp
index 30f0cd3..01657e7 100644
--- a/engines/avalanche/particle.cpp
+++ b/engines/avalanche/particle.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/pictemp.cpp b/engines/avalanche/pictemp.cpp
index cc5386d..009ced5 100644
--- a/engines/avalanche/pictemp.cpp
+++ b/engines/avalanche/pictemp.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/pictemp2.cpp b/engines/avalanche/pictemp2.cpp
index d396c67..b2eddc2 100644
--- a/engines/avalanche/pictemp2.cpp
+++ b/engines/avalanche/pictemp2.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
                   /* Get 'em back! */
diff --git a/engines/avalanche/pingo.cpp b/engines/avalanche/pingo.cpp
index 5a98ba3..8bc6149 100644
--- a/engines/avalanche/pingo.cpp
+++ b/engines/avalanche/pingo.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*
diff --git a/engines/avalanche/pingo.h b/engines/avalanche/pingo.h
index fdb49b7..6979229 100644
--- a/engines/avalanche/pingo.h
+++ b/engines/avalanche/pingo.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __pingo_h__
 #define __pingo_h__
 
diff --git a/engines/avalanche/plottest.cpp b/engines/avalanche/plottest.cpp
index b9c7fc7..12f3785 100644
--- a/engines/avalanche/plottest.cpp
+++ b/engines/avalanche/plottest.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/preview1.cpp b/engines/avalanche/preview1.cpp
index bd5e4d4..a5d8f05 100644
--- a/engines/avalanche/preview1.cpp
+++ b/engines/avalanche/preview1.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/qintro.cpp b/engines/avalanche/qintro.cpp
index b727033..477b1ff 100644
--- a/engines/avalanche/qintro.cpp
+++ b/engines/avalanche/qintro.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/qstars.cpp b/engines/avalanche/qstars.cpp
index d6877ae..08de16e 100644
--- a/engines/avalanche/qstars.cpp
+++ b/engines/avalanche/qstars.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
                /* Demonstration of the Bigo II system. */
diff --git a/engines/avalanche/rawupd.cpp b/engines/avalanche/rawupd.cpp
index d37a113..c8e4b15 100644
--- a/engines/avalanche/rawupd.cpp
+++ b/engines/avalanche/rawupd.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/readsez.cpp b/engines/avalanche/readsez.cpp
index 9937a46..0417c28 100644
--- a/engines/avalanche/readsez.cpp
+++ b/engines/avalanche/readsez.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/reginam.cpp b/engines/avalanche/reginam.cpp
index 65bd0b5..590809c 100644
--- a/engines/avalanche/reginam.cpp
+++ b/engines/avalanche/reginam.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/sackb1.cpp b/engines/avalanche/sackb1.cpp
index b84788a..3d3d172 100644
--- a/engines/avalanche/sackb1.cpp
+++ b/engines/avalanche/sackb1.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*
diff --git a/engines/avalanche/sackb1.h b/engines/avalanche/sackb1.h
index b671da2..42fd668 100644
--- a/engines/avalanche/sackb1.h
+++ b/engines/avalanche/sackb1.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __sackb1_h__
 #define __sackb1_h__
 
diff --git a/engines/avalanche/sackb3.cpp b/engines/avalanche/sackb3.cpp
index 4d70bf6..1bf586c 100644
--- a/engines/avalanche/sackb3.cpp
+++ b/engines/avalanche/sackb3.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*$M 16384,0,0*/
diff --git a/engines/avalanche/sackblas.cpp b/engines/avalanche/sackblas.cpp
index e69de29..4bf6eba 100644
--- a/engines/avalanche/sackblas.cpp
+++ b/engines/avalanche/sackblas.cpp
@@ -0,0 +1,4 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
diff --git a/engines/avalanche/saving.cpp b/engines/avalanche/saving.cpp
index 962495f..3827007 100644
--- a/engines/avalanche/saving.cpp
+++ b/engines/avalanche/saving.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/scr_1.cpp b/engines/avalanche/scr_1.cpp
index 258ca6b..6e9ba57 100644
--- a/engines/avalanche/scr_1.cpp
+++ b/engines/avalanche/scr_1.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/scr_2.cpp b/engines/avalanche/scr_2.cpp
index 55eba41..3c54438 100644
--- a/engines/avalanche/scr_2.cpp
+++ b/engines/avalanche/scr_2.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/scr_3.cpp b/engines/avalanche/scr_3.cpp
index 96c9d9e..1d959b8 100644
--- a/engines/avalanche/scr_3.cpp
+++ b/engines/avalanche/scr_3.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/scr_4.cpp b/engines/avalanche/scr_4.cpp
index 183104e..db9a430 100644
--- a/engines/avalanche/scr_4.cpp
+++ b/engines/avalanche/scr_4.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/scr_5.cpp b/engines/avalanche/scr_5.cpp
index ab2359f..dfc3e9c 100644
--- a/engines/avalanche/scr_5.cpp
+++ b/engines/avalanche/scr_5.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/scr_9.cpp b/engines/avalanche/scr_9.cpp
index 6d46fac..d398a3e 100644
--- a/engines/avalanche/scr_9.cpp
+++ b/engines/avalanche/scr_9.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/scrolls.cpp b/engines/avalanche/scrolls.cpp
index 4f02f06..57aac31 100644
--- a/engines/avalanche/scrolls.cpp
+++ b/engines/avalanche/scrolls.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*
diff --git a/engines/avalanche/scrolls.h b/engines/avalanche/scrolls.h
index d71ec5d..f035f3f 100644
--- a/engines/avalanche/scrolls.h
+++ b/engines/avalanche/scrolls.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __scrolls_h__
 #define __scrolls_h__
 
diff --git a/engines/avalanche/sequence.cpp b/engines/avalanche/sequence.cpp
index fccb01b..853d2fb 100644
--- a/engines/avalanche/sequence.cpp
+++ b/engines/avalanche/sequence.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*
diff --git a/engines/avalanche/sequence.h b/engines/avalanche/sequence.h
index a6c59a6..a14e0e0 100644
--- a/engines/avalanche/sequence.h
+++ b/engines/avalanche/sequence.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __sequence_h__
 #define __sequence_h__
 
diff --git a/engines/avalanche/setup.cpp b/engines/avalanche/setup.cpp
index 32fee35..94e969a 100644
--- a/engines/avalanche/setup.cpp
+++ b/engines/avalanche/setup.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/seu.cpp b/engines/avalanche/seu.cpp
index f1729f2..f896da8 100644
--- a/engines/avalanche/seu.cpp
+++ b/engines/avalanche/seu.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/seu_avvy.cpp b/engines/avalanche/seu_avvy.cpp
index c9c30f8..6e7d31c 100644
--- a/engines/avalanche/seu_avvy.cpp
+++ b/engines/avalanche/seu_avvy.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/sez.cpp b/engines/avalanche/sez.cpp
index e69de29..4bf6eba 100644
--- a/engines/avalanche/sez.cpp
+++ b/engines/avalanche/sez.cpp
@@ -0,0 +1,4 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
diff --git a/engines/avalanche/sezedit.cpp b/engines/avalanche/sezedit.cpp
index 5db639c..3a57ee8 100644
--- a/engines/avalanche/sezedit.cpp
+++ b/engines/avalanche/sezedit.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/sezunit.cpp b/engines/avalanche/sezunit.cpp
index 1f15cf1..4a4ca60 100644
--- a/engines/avalanche/sezunit.cpp
+++ b/engines/avalanche/sezunit.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 #define __sezunit_implementation__
diff --git a/engines/avalanche/sezunit.h b/engines/avalanche/sezunit.h
index 6b0a99e..b5644c9 100644
--- a/engines/avalanche/sezunit.h
+++ b/engines/avalanche/sezunit.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __sezunit_h__
 #define __sezunit_h__
 
diff --git a/engines/avalanche/sezxfr.cpp b/engines/avalanche/sezxfr.cpp
index 37c9cf0..3b48c43 100644
--- a/engines/avalanche/sezxfr.cpp
+++ b/engines/avalanche/sezxfr.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/shell1.cpp b/engines/avalanche/shell1.cpp
index 75296bf..a5e0f13 100644
--- a/engines/avalanche/shell1.cpp
+++ b/engines/avalanche/shell1.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/shell2.cpp b/engines/avalanche/shell2.cpp
index b0ef13a..d9bb2d1 100644
--- a/engines/avalanche/shell2.cpp
+++ b/engines/avalanche/shell2.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/slope.cpp b/engines/avalanche/slope.cpp
index c566246..d9957df 100644
--- a/engines/avalanche/slope.cpp
+++ b/engines/avalanche/slope.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/spread.cpp b/engines/avalanche/spread.cpp
index 5e52228..87a8417 100644
--- a/engines/avalanche/spread.cpp
+++ b/engines/avalanche/spread.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/spread2.cpp b/engines/avalanche/spread2.cpp
index 267bf8e..843550b 100644
--- a/engines/avalanche/spread2.cpp
+++ b/engines/avalanche/spread2.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/squish.cpp b/engines/avalanche/squish.cpp
index 6ff3b90..521c144 100644
--- a/engines/avalanche/squish.cpp
+++ b/engines/avalanche/squish.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/ss_blank.cpp b/engines/avalanche/ss_blank.cpp
index f8bc96b..40641c9 100644
--- a/engines/avalanche/ss_blank.cpp
+++ b/engines/avalanche/ss_blank.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/ss_clock.cpp b/engines/avalanche/ss_clock.cpp
index e169f37..9b3d538 100644
--- a/engines/avalanche/ss_clock.cpp
+++ b/engines/avalanche/ss_clock.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/stars.cpp b/engines/avalanche/stars.cpp
index 5181241..d626b35 100644
--- a/engines/avalanche/stars.cpp
+++ b/engines/avalanche/stars.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
                /* Demonstration of the Bigo II system. */
diff --git a/engines/avalanche/status.cpp b/engines/avalanche/status.cpp
index 761f11c..cae0182 100644
--- a/engines/avalanche/status.cpp
+++ b/engines/avalanche/status.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/sticks.cpp b/engines/avalanche/sticks.cpp
index b47b6fb..0297bff 100644
--- a/engines/avalanche/sticks.cpp
+++ b/engines/avalanche/sticks.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*
diff --git a/engines/avalanche/sticks.h b/engines/avalanche/sticks.h
index 5a54cd4..2312d45 100644
--- a/engines/avalanche/sticks.h
+++ b/engines/avalanche/sticks.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __sticks_h__
 #define __sticks_h__
 
diff --git a/engines/avalanche/sunrise.cpp b/engines/avalanche/sunrise.cpp
index 4a0e3ac..035d81b 100644
--- a/engines/avalanche/sunrise.cpp
+++ b/engines/avalanche/sunrise.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/tempo.cpp b/engines/avalanche/tempo.cpp
index b8887ef..d58a818 100644
--- a/engines/avalanche/tempo.cpp
+++ b/engines/avalanche/tempo.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/test.cpp b/engines/avalanche/test.cpp
index 1ac5671..b13d734 100644
--- a/engines/avalanche/test.cpp
+++ b/engines/avalanche/test.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/test2.cpp b/engines/avalanche/test2.cpp
index e5b2347..116344a 100644
--- a/engines/avalanche/test2.cpp
+++ b/engines/avalanche/test2.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/testblit.cpp b/engines/avalanche/testblit.cpp
index 2949f30..11146a8 100644
--- a/engines/avalanche/testblit.cpp
+++ b/engines/avalanche/testblit.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/testcard.cpp b/engines/avalanche/testcard.cpp
index e1e8696..2ca0c0b 100644
--- a/engines/avalanche/testcard.cpp
+++ b/engines/avalanche/testcard.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/testenh.cpp b/engines/avalanche/testenh.cpp
index 34e1d67..0fc936f 100644
--- a/engines/avalanche/testenh.cpp
+++ b/engines/avalanche/testenh.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/timeout.cpp b/engines/avalanche/timeout.cpp
index d5b964d..5a4cc9e 100644
--- a/engines/avalanche/timeout.cpp
+++ b/engines/avalanche/timeout.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*
diff --git a/engines/avalanche/timeout.h b/engines/avalanche/timeout.h
index 5fa9800..7068e7e 100644
--- a/engines/avalanche/timeout.h
+++ b/engines/avalanche/timeout.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __timeout_h__
 #define __timeout_h__
 
diff --git a/engines/avalanche/travel.cpp b/engines/avalanche/travel.cpp
index 6f48f99..e27e48c 100644
--- a/engines/avalanche/travel.cpp
+++ b/engines/avalanche/travel.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/trip.cpp b/engines/avalanche/trip.cpp
index 58ae537..add6fa1 100644
--- a/engines/avalanche/trip.cpp
+++ b/engines/avalanche/trip.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*
diff --git a/engines/avalanche/trip.h b/engines/avalanche/trip.h
index 520e323..c018264 100644
--- a/engines/avalanche/trip.h
+++ b/engines/avalanche/trip.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __trip_h__
 #define __trip_h__
 
diff --git a/engines/avalanche/trip3.cpp b/engines/avalanche/trip3.cpp
index d95eba5..38227b0 100644
--- a/engines/avalanche/trip3.cpp
+++ b/engines/avalanche/trip3.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 #define __trip3_implementation__
diff --git a/engines/avalanche/trip3.h b/engines/avalanche/trip3.h
index ccad153..32144e1 100644
--- a/engines/avalanche/trip3.h
+++ b/engines/avalanche/trip3.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __trip3_h__
 #define __trip3_h__
 
diff --git a/engines/avalanche/trip42.cpp b/engines/avalanche/trip42.cpp
index 923e32e..5ae624c 100644
--- a/engines/avalanche/trip42.cpp
+++ b/engines/avalanche/trip42.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*
diff --git a/engines/avalanche/trip42.h b/engines/avalanche/trip42.h
index b5e4f13..bed52bb 100644
--- a/engines/avalanche/trip42.h
+++ b/engines/avalanche/trip42.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __trip42_h__
 #define __trip42_h__
 
diff --git a/engines/avalanche/trip5.cpp b/engines/avalanche/trip5.cpp
index 721268b..6dd4113 100644
--- a/engines/avalanche/trip5.cpp
+++ b/engines/avalanche/trip5.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*
diff --git a/engines/avalanche/trip5.h b/engines/avalanche/trip5.h
index 9e7b3a3..a06b6e9 100644
--- a/engines/avalanche/trip5.h
+++ b/engines/avalanche/trip5.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __trip5_h__
 #define __trip5_h__
 
diff --git a/engines/avalanche/trip5tst.cpp b/engines/avalanche/trip5tst.cpp
index c669cc7..c4ab58e 100644
--- a/engines/avalanche/trip5tst.cpp
+++ b/engines/avalanche/trip5tst.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/trip5xf.cpp b/engines/avalanche/trip5xf.cpp
index f6225b4..582c8af 100644
--- a/engines/avalanche/trip5xf.cpp
+++ b/engines/avalanche/trip5xf.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/tripoop.cpp b/engines/avalanche/tripoop.cpp
index b8db1a7..322dba8 100644
--- a/engines/avalanche/tripoop.cpp
+++ b/engines/avalanche/tripoop.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
                  /* Trip Oop (Trippancy 4 Andexor */
diff --git a/engines/avalanche/ttmenuxf.cpp b/engines/avalanche/ttmenuxf.cpp
index 2d870fa..b92db51 100644
--- a/engines/avalanche/ttmenuxf.cpp
+++ b/engines/avalanche/ttmenuxf.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/unsquish.cpp b/engines/avalanche/unsquish.cpp
index 9183e1b..a5f0840 100644
--- a/engines/avalanche/unsquish.cpp
+++ b/engines/avalanche/unsquish.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
                             /*$S-*/
diff --git a/engines/avalanche/viewdocs.cpp b/engines/avalanche/viewdocs.cpp
index a9e1e6e..09cd333 100644
--- a/engines/avalanche/viewdocs.cpp
+++ b/engines/avalanche/viewdocs.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
                    /*$S-*/
diff --git a/engines/avalanche/visa.cpp b/engines/avalanche/visa.cpp
index 664dca9..aec063f 100644
--- a/engines/avalanche/visa.cpp
+++ b/engines/avalanche/visa.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 /*
diff --git a/engines/avalanche/visa.h b/engines/avalanche/visa.h
index 8b79d6b..1cfb77f 100644
--- a/engines/avalanche/visa.h
+++ b/engines/avalanche/visa.h
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 #ifndef __visa_h__
 #define __visa_h__
 
diff --git a/engines/avalanche/visatest.cpp b/engines/avalanche/visatest.cpp
index df856f6..56c9595 100644
--- a/engines/avalanche/visatest.cpp
+++ b/engines/avalanche/visatest.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/waver.cpp b/engines/avalanche/waver.cpp
index e69de29..4bf6eba 100644
--- a/engines/avalanche/waver.cpp
+++ b/engines/avalanche/waver.cpp
@@ -0,0 +1,4 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
diff --git a/engines/avalanche/xf_gover.cpp b/engines/avalanche/xf_gover.cpp
index 683e6ca..402f3ab 100644
--- a/engines/avalanche/xf_gover.cpp
+++ b/engines/avalanche/xf_gover.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/xf_help.cpp b/engines/avalanche/xf_help.cpp
index b0f6844..162fcec 100644
--- a/engines/avalanche/xf_help.cpp
+++ b/engines/avalanche/xf_help.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/xf_visa.cpp b/engines/avalanche/xf_visa.cpp
index 5fe7156..2eb565a 100644
--- a/engines/avalanche/xf_visa.cpp
+++ b/engines/avalanche/xf_visa.cpp
@@ -1,3 +1,8 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 
 
 
diff --git a/engines/avalanche/xfbutton.cpp b/engines/avalanche/xfbutton.cpp
index 980eff8..1881e97 100644
--- a/engines/avalanche/xfbutton.cpp
+++ b/engines/avalanche/xfbutton.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/xfghost.cpp b/engines/avalanche/xfghost.cpp
index 86996ba..e03399a 100644
--- a/engines/avalanche/xfghost.cpp
+++ b/engines/avalanche/xfghost.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 
diff --git a/engines/avalanche/zapdraw.cpp b/engines/avalanche/zapdraw.cpp
index 2c4f712..5ab55d1 100644
--- a/engines/avalanche/zapdraw.cpp
+++ b/engines/avalanche/zapdraw.cpp
@@ -1,3 +1,7 @@
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 
 


Commit: d33da0a429b2c62b9ac9b72003beee4ee097c302
    https://github.com/scummvm/scummvm/commit/d33da0a429b2c62b9ac9b72003beee4ee097c302
Author: uruk (koppirnyo at gmail.com)
Date: 2013-06-17T04:49:08-07:00

Commit Message:
Revert "AVALANCHE: Add standard header."

This reverts commit b87de38cc8dc270c272b681b8581decc602ae984.

Changed paths:
    engines/avalanche/1stoff.cpp
    engines/avalanche/access.cpp
    engines/avalanche/access.h
    engines/avalanche/acci.cpp
    engines/avalanche/acci.h
    engines/avalanche/also.cpp
    engines/avalanche/andexor.cpp
    engines/avalanche/andexor2.cpp
    engines/avalanche/andextst.cpp
    engines/avalanche/arch.cpp
    engines/avalanche/arch.h
    engines/avalanche/avalot9.cpp
    engines/avalanche/avbkgrnd.cpp
    engines/avalanche/avmenu.cpp
    engines/avalanche/avvyans.cpp
    engines/avalanche/avvyans2.cpp
    engines/avalanche/avvymonk.cpp
    engines/avalanche/bakchunk.cpp
    engines/avalanche/basher.cpp
    engines/avalanche/basher.h
    engines/avalanche/bootstrp.cpp
    engines/avalanche/cadburys.cpp
    engines/avalanche/cadburys.h
    engines/avalanche/celer.cpp
    engines/avalanche/celer.h
    engines/avalanche/ch_egats.cpp
    engines/avalanche/charmap.cpp
    engines/avalanche/chunker.cpp
    engines/avalanche/chunkxf1.cpp
    engines/avalanche/chunkxf2.cpp
    engines/avalanche/chunkxf3.cpp
    engines/avalanche/chunkxf4.cpp
    engines/avalanche/chunkxf5.cpp
    engines/avalanche/chunkxf6.cpp
    engines/avalanche/chunkxf7.cpp
    engines/avalanche/chunkxf8.cpp
    engines/avalanche/chunkxf9.cpp
    engines/avalanche/chunkxfa.cpp
    engines/avalanche/chunkxfb.cpp
    engines/avalanche/chunkxfc.cpp
    engines/avalanche/chunkxfd.cpp
    engines/avalanche/chunkxfe.cpp
    engines/avalanche/chunkxff.cpp
    engines/avalanche/chunkxfg.cpp
    engines/avalanche/chunkxfh.cpp
    engines/avalanche/chunkxfi.cpp
    engines/avalanche/chunkxfj.cpp
    engines/avalanche/chunkxfk.cpp
    engines/avalanche/chunkxfl.cpp
    engines/avalanche/clock.cpp
    engines/avalanche/closing.cpp
    engines/avalanche/closing.h
    engines/avalanche/convert.cpp
    engines/avalanche/convmous.cpp
    engines/avalanche/credits.cpp
    engines/avalanche/displtxt.cpp
    engines/avalanche/dropdown.cpp
    engines/avalanche/dropdown.h
    engines/avalanche/dwidth.cpp
    engines/avalanche/edhead.cpp
    engines/avalanche/edna.cpp
    engines/avalanche/enhanced.cpp
    engines/avalanche/enhanced.h
    engines/avalanche/enid.cpp
    engines/avalanche/enid.h
    engines/avalanche/filer.cpp
    engines/avalanche/fileunit.cpp
    engines/avalanche/fileunit.h
    engines/avalanche/filing.cpp
    engines/avalanche/folktemp.cpp
    engines/avalanche/fontslid.cpp
    engines/avalanche/frere.cpp
    engines/avalanche/g-room.cpp
    engines/avalanche/golden.cpp
    engines/avalanche/gyro.cpp
    engines/avalanche/gyro.h
    engines/avalanche/help.cpp
    engines/avalanche/help2.cpp
    engines/avalanche/helpbak.cpp
    engines/avalanche/helpbak.h
    engines/avalanche/helper.cpp
    engines/avalanche/helper.h
    engines/avalanche/hibits.cpp
    engines/avalanche/highs.cpp
    engines/avalanche/highs.h
    engines/avalanche/hiz.cpp
    engines/avalanche/incline.cpp
    engines/avalanche/incline.h
    engines/avalanche/initxf.cpp
    engines/avalanche/inputtes.cpp
    engines/avalanche/intro.cpp
    engines/avalanche/ints.cpp
    engines/avalanche/joysetup.cpp
    engines/avalanche/joystick.cpp
    engines/avalanche/joystick.h
    engines/avalanche/loading.cpp
    engines/avalanche/logger.cpp
    engines/avalanche/logger.h
    engines/avalanche/lucerna.cpp
    engines/avalanche/lucerna.h
    engines/avalanche/magic2.cpp
    engines/avalanche/magidraw.cpp
    engines/avalanche/magishuf.cpp
    engines/avalanche/make!.cpp
    engines/avalanche/makeregi.cpp
    engines/avalanche/makesez.cpp
    engines/avalanche/makevmou.cpp
    engines/avalanche/menuxf.cpp
    engines/avalanche/minstran.cpp
    engines/avalanche/newsprit.cpp
    engines/avalanche/nim.cpp
    engines/avalanche/nimdraw.cpp
    engines/avalanche/nimunit.cpp
    engines/avalanche/nimunit.h
    engines/avalanche/oldfiler.cpp
    engines/avalanche/oldhighs.cpp
    engines/avalanche/oldincln.cpp
    engines/avalanche/oldincln.h
    engines/avalanche/oldtrip.cpp
    engines/avalanche/oldtrip.h
    engines/avalanche/omtest.cpp
    engines/avalanche/oopmenu.cpp
    engines/avalanche/oopmenu.h
    engines/avalanche/overlap.cpp
    engines/avalanche/overscro.cpp
    engines/avalanche/particle.cpp
    engines/avalanche/pictemp.cpp
    engines/avalanche/pictemp2.cpp
    engines/avalanche/pingo.cpp
    engines/avalanche/pingo.h
    engines/avalanche/plottest.cpp
    engines/avalanche/preview1.cpp
    engines/avalanche/qintro.cpp
    engines/avalanche/qstars.cpp
    engines/avalanche/rawupd.cpp
    engines/avalanche/readsez.cpp
    engines/avalanche/reginam.cpp
    engines/avalanche/sackb1.cpp
    engines/avalanche/sackb1.h
    engines/avalanche/sackb3.cpp
    engines/avalanche/sackblas.cpp
    engines/avalanche/saving.cpp
    engines/avalanche/scr_1.cpp
    engines/avalanche/scr_2.cpp
    engines/avalanche/scr_3.cpp
    engines/avalanche/scr_4.cpp
    engines/avalanche/scr_5.cpp
    engines/avalanche/scr_9.cpp
    engines/avalanche/scrolls.cpp
    engines/avalanche/scrolls.h
    engines/avalanche/sequence.cpp
    engines/avalanche/sequence.h
    engines/avalanche/setup.cpp
    engines/avalanche/seu.cpp
    engines/avalanche/seu_avvy.cpp
    engines/avalanche/sez.cpp
    engines/avalanche/sezedit.cpp
    engines/avalanche/sezunit.cpp
    engines/avalanche/sezunit.h
    engines/avalanche/sezxfr.cpp
    engines/avalanche/shell1.cpp
    engines/avalanche/shell2.cpp
    engines/avalanche/slope.cpp
    engines/avalanche/spread.cpp
    engines/avalanche/spread2.cpp
    engines/avalanche/squish.cpp
    engines/avalanche/ss_blank.cpp
    engines/avalanche/ss_clock.cpp
    engines/avalanche/stars.cpp
    engines/avalanche/status.cpp
    engines/avalanche/sticks.cpp
    engines/avalanche/sticks.h
    engines/avalanche/sunrise.cpp
    engines/avalanche/tempo.cpp
    engines/avalanche/test.cpp
    engines/avalanche/test2.cpp
    engines/avalanche/testblit.cpp
    engines/avalanche/testcard.cpp
    engines/avalanche/testenh.cpp
    engines/avalanche/timeout.cpp
    engines/avalanche/timeout.h
    engines/avalanche/travel.cpp
    engines/avalanche/trip.cpp
    engines/avalanche/trip.h
    engines/avalanche/trip3.cpp
    engines/avalanche/trip3.h
    engines/avalanche/trip42.cpp
    engines/avalanche/trip42.h
    engines/avalanche/trip5.cpp
    engines/avalanche/trip5.h
    engines/avalanche/trip5tst.cpp
    engines/avalanche/trip5xf.cpp
    engines/avalanche/tripoop.cpp
    engines/avalanche/ttmenuxf.cpp
    engines/avalanche/unsquish.cpp
    engines/avalanche/viewdocs.cpp
    engines/avalanche/visa.cpp
    engines/avalanche/visa.h
    engines/avalanche/visatest.cpp
    engines/avalanche/waver.cpp
    engines/avalanche/xf_gover.cpp
    engines/avalanche/xf_help.cpp
    engines/avalanche/xf_visa.cpp
    engines/avalanche/xfbutton.cpp
    engines/avalanche/xfghost.cpp
    engines/avalanche/zapdraw.cpp



diff --git a/engines/avalanche/1stoff.cpp b/engines/avalanche/1stoff.cpp
index 2ba27a6..e8debc3 100644
--- a/engines/avalanche/1stoff.cpp
+++ b/engines/avalanche/1stoff.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/access.cpp b/engines/avalanche/access.cpp
index 71aaa7c..faa00bb 100644
--- a/engines/avalanche/access.cpp
+++ b/engines/avalanche/access.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*
diff --git a/engines/avalanche/access.h b/engines/avalanche/access.h
index a6d412f..825deeb 100644
--- a/engines/avalanche/access.h
+++ b/engines/avalanche/access.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __access_h__
 #define __access_h__
 
diff --git a/engines/avalanche/acci.cpp b/engines/avalanche/acci.cpp
index f816019..32fde0c 100644
--- a/engines/avalanche/acci.cpp
+++ b/engines/avalanche/acci.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*  $D-*/
diff --git a/engines/avalanche/acci.h b/engines/avalanche/acci.h
index ab220b3..f9d1265 100644
--- a/engines/avalanche/acci.h
+++ b/engines/avalanche/acci.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __acci_h__
 #define __acci_h__
 
diff --git a/engines/avalanche/also.cpp b/engines/avalanche/also.cpp
index 9fac1d0..e5af131 100644
--- a/engines/avalanche/also.cpp
+++ b/engines/avalanche/also.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/andexor.cpp b/engines/avalanche/andexor.cpp
index f1db882..9cf259e 100644
--- a/engines/avalanche/andexor.cpp
+++ b/engines/avalanche/andexor.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
                  /* Trippancy IV - original file */
diff --git a/engines/avalanche/andexor2.cpp b/engines/avalanche/andexor2.cpp
index 5c77fc8..b5355d7 100644
--- a/engines/avalanche/andexor2.cpp
+++ b/engines/avalanche/andexor2.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
                   /* Trippancy IV - original file */
diff --git a/engines/avalanche/andextst.cpp b/engines/avalanche/andextst.cpp
index 6e9ec94..db5c659 100644
--- a/engines/avalanche/andextst.cpp
+++ b/engines/avalanche/andextst.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/arch.cpp b/engines/avalanche/arch.cpp
index f59d28d..e05f173 100644
--- a/engines/avalanche/arch.cpp
+++ b/engines/avalanche/arch.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*
diff --git a/engines/avalanche/arch.h b/engines/avalanche/arch.h
index 031f9f3..cb0960f 100644
--- a/engines/avalanche/arch.h
+++ b/engines/avalanche/arch.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __arch_h__
 #define __arch_h__
 
diff --git a/engines/avalanche/avalot9.cpp b/engines/avalanche/avalot9.cpp
index d960a39..3780b79 100644
--- a/engines/avalanche/avalot9.cpp
+++ b/engines/avalanche/avalot9.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*
diff --git a/engines/avalanche/avbkgrnd.cpp b/engines/avalanche/avbkgrnd.cpp
index 4b7beba..6488fb8 100644
--- a/engines/avalanche/avbkgrnd.cpp
+++ b/engines/avalanche/avbkgrnd.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/avmenu.cpp b/engines/avalanche/avmenu.cpp
index aa1ea69..9b366a9 100644
--- a/engines/avalanche/avmenu.cpp
+++ b/engines/avalanche/avmenu.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/avvyans.cpp b/engines/avalanche/avvyans.cpp
index f45966b..1985194 100644
--- a/engines/avalanche/avvyans.cpp
+++ b/engines/avalanche/avvyans.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/avvyans2.cpp b/engines/avalanche/avvyans2.cpp
index 7bdb1e9..9702ec2 100644
--- a/engines/avalanche/avvyans2.cpp
+++ b/engines/avalanche/avvyans2.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/avvymonk.cpp b/engines/avalanche/avvymonk.cpp
index 74cc61d..7d5143b 100644
--- a/engines/avalanche/avvymonk.cpp
+++ b/engines/avalanche/avvymonk.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/bakchunk.cpp b/engines/avalanche/bakchunk.cpp
index fb148e2..296c55a 100644
--- a/engines/avalanche/bakchunk.cpp
+++ b/engines/avalanche/bakchunk.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/basher.cpp b/engines/avalanche/basher.cpp
index 0e6e164..3ac401e 100644
--- a/engines/avalanche/basher.cpp
+++ b/engines/avalanche/basher.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*
diff --git a/engines/avalanche/basher.h b/engines/avalanche/basher.h
index 22ad306..1afecae 100644
--- a/engines/avalanche/basher.h
+++ b/engines/avalanche/basher.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __basher_h__
 #define __basher_h__
 
diff --git a/engines/avalanche/bootstrp.cpp b/engines/avalanche/bootstrp.cpp
index 1d74184..141c69b 100644
--- a/engines/avalanche/bootstrp.cpp
+++ b/engines/avalanche/bootstrp.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/cadburys.cpp b/engines/avalanche/cadburys.cpp
index e37821a..3839875 100644
--- a/engines/avalanche/cadburys.cpp
+++ b/engines/avalanche/cadburys.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 #define __cadburys_implementation__
diff --git a/engines/avalanche/cadburys.h b/engines/avalanche/cadburys.h
index 917fd4b..65e7bd7 100644
--- a/engines/avalanche/cadburys.h
+++ b/engines/avalanche/cadburys.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __cadburys_h__
 #define __cadburys_h__
 
diff --git a/engines/avalanche/celer.cpp b/engines/avalanche/celer.cpp
index e700c62..bedab4b 100644
--- a/engines/avalanche/celer.cpp
+++ b/engines/avalanche/celer.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*
diff --git a/engines/avalanche/celer.h b/engines/avalanche/celer.h
index 409729f..f6ad52f 100644
--- a/engines/avalanche/celer.h
+++ b/engines/avalanche/celer.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __celer_h__
 #define __celer_h__
 
diff --git a/engines/avalanche/ch_egats.cpp b/engines/avalanche/ch_egats.cpp
index 64f1c9d..0488d21 100644
--- a/engines/avalanche/ch_egats.cpp
+++ b/engines/avalanche/ch_egats.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/charmap.cpp b/engines/avalanche/charmap.cpp
index 6839b85..0eb701b 100644
--- a/engines/avalanche/charmap.cpp
+++ b/engines/avalanche/charmap.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/chunker.cpp b/engines/avalanche/chunker.cpp
index 6903439..00cb696 100644
--- a/engines/avalanche/chunker.cpp
+++ b/engines/avalanche/chunker.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/chunkxf1.cpp b/engines/avalanche/chunkxf1.cpp
index b2dc01a..4b8d99e 100644
--- a/engines/avalanche/chunkxf1.cpp
+++ b/engines/avalanche/chunkxf1.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/chunkxf2.cpp b/engines/avalanche/chunkxf2.cpp
index 2c25a52..252f132 100644
--- a/engines/avalanche/chunkxf2.cpp
+++ b/engines/avalanche/chunkxf2.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/chunkxf3.cpp b/engines/avalanche/chunkxf3.cpp
index 7f3adf4..d8b89dd 100644
--- a/engines/avalanche/chunkxf3.cpp
+++ b/engines/avalanche/chunkxf3.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/chunkxf4.cpp b/engines/avalanche/chunkxf4.cpp
index ad64d6e..4a644d2 100644
--- a/engines/avalanche/chunkxf4.cpp
+++ b/engines/avalanche/chunkxf4.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/chunkxf5.cpp b/engines/avalanche/chunkxf5.cpp
index 9c80b53..a2d02f9 100644
--- a/engines/avalanche/chunkxf5.cpp
+++ b/engines/avalanche/chunkxf5.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/chunkxf6.cpp b/engines/avalanche/chunkxf6.cpp
index a2089f4..b319f2b 100644
--- a/engines/avalanche/chunkxf6.cpp
+++ b/engines/avalanche/chunkxf6.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/chunkxf7.cpp b/engines/avalanche/chunkxf7.cpp
index 8f02032..8d2f7a9 100644
--- a/engines/avalanche/chunkxf7.cpp
+++ b/engines/avalanche/chunkxf7.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/chunkxf8.cpp b/engines/avalanche/chunkxf8.cpp
index 6dacd0c..98ada51 100644
--- a/engines/avalanche/chunkxf8.cpp
+++ b/engines/avalanche/chunkxf8.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/chunkxf9.cpp b/engines/avalanche/chunkxf9.cpp
index a94f432..156827b 100644
--- a/engines/avalanche/chunkxf9.cpp
+++ b/engines/avalanche/chunkxf9.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/chunkxfa.cpp b/engines/avalanche/chunkxfa.cpp
index fd10258..1703d4f 100644
--- a/engines/avalanche/chunkxfa.cpp
+++ b/engines/avalanche/chunkxfa.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/chunkxfb.cpp b/engines/avalanche/chunkxfb.cpp
index 4698be2..71fd991 100644
--- a/engines/avalanche/chunkxfb.cpp
+++ b/engines/avalanche/chunkxfb.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/chunkxfc.cpp b/engines/avalanche/chunkxfc.cpp
index 30b13e2..ec5ff4b 100644
--- a/engines/avalanche/chunkxfc.cpp
+++ b/engines/avalanche/chunkxfc.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/chunkxfd.cpp b/engines/avalanche/chunkxfd.cpp
index e8e7860..9752345 100644
--- a/engines/avalanche/chunkxfd.cpp
+++ b/engines/avalanche/chunkxfd.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/chunkxfe.cpp b/engines/avalanche/chunkxfe.cpp
index f2eb675..bc11f36 100644
--- a/engines/avalanche/chunkxfe.cpp
+++ b/engines/avalanche/chunkxfe.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/chunkxff.cpp b/engines/avalanche/chunkxff.cpp
index 1b0b7d7..e2c6a27 100644
--- a/engines/avalanche/chunkxff.cpp
+++ b/engines/avalanche/chunkxff.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/chunkxfg.cpp b/engines/avalanche/chunkxfg.cpp
index bb289b3..762a44a 100644
--- a/engines/avalanche/chunkxfg.cpp
+++ b/engines/avalanche/chunkxfg.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/chunkxfh.cpp b/engines/avalanche/chunkxfh.cpp
index 210c08b..4736700 100644
--- a/engines/avalanche/chunkxfh.cpp
+++ b/engines/avalanche/chunkxfh.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/chunkxfi.cpp b/engines/avalanche/chunkxfi.cpp
index 27d4122..917d83b 100644
--- a/engines/avalanche/chunkxfi.cpp
+++ b/engines/avalanche/chunkxfi.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/chunkxfj.cpp b/engines/avalanche/chunkxfj.cpp
index 0f19c65..1f7f234 100644
--- a/engines/avalanche/chunkxfj.cpp
+++ b/engines/avalanche/chunkxfj.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/chunkxfk.cpp b/engines/avalanche/chunkxfk.cpp
index 78083b6..38523f6 100644
--- a/engines/avalanche/chunkxfk.cpp
+++ b/engines/avalanche/chunkxfk.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/chunkxfl.cpp b/engines/avalanche/chunkxfl.cpp
index c5f9797..8b942d9 100644
--- a/engines/avalanche/chunkxfl.cpp
+++ b/engines/avalanche/chunkxfl.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/clock.cpp b/engines/avalanche/clock.cpp
index 849846a..6674401 100644
--- a/engines/avalanche/clock.cpp
+++ b/engines/avalanche/clock.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/closing.cpp b/engines/avalanche/closing.cpp
index aa72aef..bfed58e 100644
--- a/engines/avalanche/closing.cpp
+++ b/engines/avalanche/closing.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*
diff --git a/engines/avalanche/closing.h b/engines/avalanche/closing.h
index 2c4eec4..97dd37e 100644
--- a/engines/avalanche/closing.h
+++ b/engines/avalanche/closing.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __closing_h__
 #define __closing_h__
 
diff --git a/engines/avalanche/convert.cpp b/engines/avalanche/convert.cpp
index d0b0f23..ca41b36 100644
--- a/engines/avalanche/convert.cpp
+++ b/engines/avalanche/convert.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/convmous.cpp b/engines/avalanche/convmous.cpp
index ef79ff8..b5efcba 100644
--- a/engines/avalanche/convmous.cpp
+++ b/engines/avalanche/convmous.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/credits.cpp b/engines/avalanche/credits.cpp
index 2481229..d37849b 100644
--- a/engines/avalanche/credits.cpp
+++ b/engines/avalanche/credits.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/displtxt.cpp b/engines/avalanche/displtxt.cpp
index e002978..376c346 100644
--- a/engines/avalanche/displtxt.cpp
+++ b/engines/avalanche/displtxt.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/dropdown.cpp b/engines/avalanche/dropdown.cpp
index 320a555..9319408 100644
--- a/engines/avalanche/dropdown.cpp
+++ b/engines/avalanche/dropdown.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*
diff --git a/engines/avalanche/dropdown.h b/engines/avalanche/dropdown.h
index 349b1a0..9d32fb9 100644
--- a/engines/avalanche/dropdown.h
+++ b/engines/avalanche/dropdown.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __dropdown_h__
 #define __dropdown_h__
 
diff --git a/engines/avalanche/dwidth.cpp b/engines/avalanche/dwidth.cpp
index ec9e250..aa0fd75 100644
--- a/engines/avalanche/dwidth.cpp
+++ b/engines/avalanche/dwidth.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/edhead.cpp b/engines/avalanche/edhead.cpp
index e8eca65..c06d2b1 100644
--- a/engines/avalanche/edhead.cpp
+++ b/engines/avalanche/edhead.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/edna.cpp b/engines/avalanche/edna.cpp
index ebc7e4c..d700a85 100644
--- a/engines/avalanche/edna.cpp
+++ b/engines/avalanche/edna.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*$M 10000,0,1000*/ /*$V-*/
diff --git a/engines/avalanche/enhanced.cpp b/engines/avalanche/enhanced.cpp
index 543d768..34a46ff 100644
--- a/engines/avalanche/enhanced.cpp
+++ b/engines/avalanche/enhanced.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 #define __enhanced_implementation__
diff --git a/engines/avalanche/enhanced.h b/engines/avalanche/enhanced.h
index d7296ca..a028648 100644
--- a/engines/avalanche/enhanced.h
+++ b/engines/avalanche/enhanced.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __enhanced_h__
 #define __enhanced_h__
 
diff --git a/engines/avalanche/enid.cpp b/engines/avalanche/enid.cpp
index c3dd4a8..fb2577a 100644
--- a/engines/avalanche/enid.cpp
+++ b/engines/avalanche/enid.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*
diff --git a/engines/avalanche/enid.h b/engines/avalanche/enid.h
index 6ebfc3d..abf20a2 100644
--- a/engines/avalanche/enid.h
+++ b/engines/avalanche/enid.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __enid_h__
 #define __enid_h__
 
diff --git a/engines/avalanche/filer.cpp b/engines/avalanche/filer.cpp
index ba76ee2..4ae92c3 100644
--- a/engines/avalanche/filer.cpp
+++ b/engines/avalanche/filer.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/fileunit.cpp b/engines/avalanche/fileunit.cpp
index 6d758b6..d9de210 100644
--- a/engines/avalanche/fileunit.cpp
+++ b/engines/avalanche/fileunit.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 #define __fileunit_implementation__
diff --git a/engines/avalanche/fileunit.h b/engines/avalanche/fileunit.h
index 0f5fb7a..08f9262 100644
--- a/engines/avalanche/fileunit.h
+++ b/engines/avalanche/fileunit.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __fileunit_h__
 #define __fileunit_h__
 
diff --git a/engines/avalanche/filing.cpp b/engines/avalanche/filing.cpp
index bc6ce17..841163f 100644
--- a/engines/avalanche/filing.cpp
+++ b/engines/avalanche/filing.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*
diff --git a/engines/avalanche/folktemp.cpp b/engines/avalanche/folktemp.cpp
index ac371f3..47d5d58 100644
--- a/engines/avalanche/folktemp.cpp
+++ b/engines/avalanche/folktemp.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
                   /* Get 'em back! */
diff --git a/engines/avalanche/fontslid.cpp b/engines/avalanche/fontslid.cpp
index 863de0b..31154aa 100644
--- a/engines/avalanche/fontslid.cpp
+++ b/engines/avalanche/fontslid.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/frere.cpp b/engines/avalanche/frere.cpp
index a4a6951..5f1b517 100644
--- a/engines/avalanche/frere.cpp
+++ b/engines/avalanche/frere.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/g-room.cpp b/engines/avalanche/g-room.cpp
index 521cbb2..386a16c 100644
--- a/engines/avalanche/g-room.cpp
+++ b/engines/avalanche/g-room.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/golden.cpp b/engines/avalanche/golden.cpp
index 3b64783..3643f43 100644
--- a/engines/avalanche/golden.cpp
+++ b/engines/avalanche/golden.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/gyro.cpp b/engines/avalanche/gyro.cpp
index e7fdc2a..0e05d77 100644
--- a/engines/avalanche/gyro.cpp
+++ b/engines/avalanche/gyro.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*
diff --git a/engines/avalanche/gyro.h b/engines/avalanche/gyro.h
index 5d6128b..8a1fdb5 100644
--- a/engines/avalanche/gyro.h
+++ b/engines/avalanche/gyro.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __gyro_h__
 #define __gyro_h__
 
diff --git a/engines/avalanche/help.cpp b/engines/avalanche/help.cpp
index 7768fb6..804ded4 100644
--- a/engines/avalanche/help.cpp
+++ b/engines/avalanche/help.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/help2.cpp b/engines/avalanche/help2.cpp
index aae1cc8..148f578 100644
--- a/engines/avalanche/help2.cpp
+++ b/engines/avalanche/help2.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/helpbak.cpp b/engines/avalanche/helpbak.cpp
index 087f199..367fd20 100644
--- a/engines/avalanche/helpbak.cpp
+++ b/engines/avalanche/helpbak.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*
diff --git a/engines/avalanche/helpbak.h b/engines/avalanche/helpbak.h
index ac8898a..12a7869 100644
--- a/engines/avalanche/helpbak.h
+++ b/engines/avalanche/helpbak.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __helpbak_h__
 #define __helpbak_h__
 
diff --git a/engines/avalanche/helper.cpp b/engines/avalanche/helper.cpp
index 76680b0..0708413 100644
--- a/engines/avalanche/helper.cpp
+++ b/engines/avalanche/helper.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*
diff --git a/engines/avalanche/helper.h b/engines/avalanche/helper.h
index 86d1930..9c1c43c 100644
--- a/engines/avalanche/helper.h
+++ b/engines/avalanche/helper.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __helper_h__
 #define __helper_h__
 
diff --git a/engines/avalanche/hibits.cpp b/engines/avalanche/hibits.cpp
index ed041f5..c6a80cb 100644
--- a/engines/avalanche/hibits.cpp
+++ b/engines/avalanche/hibits.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/highs.cpp b/engines/avalanche/highs.cpp
index 552211b..38d929e 100644
--- a/engines/avalanche/highs.cpp
+++ b/engines/avalanche/highs.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*
diff --git a/engines/avalanche/highs.h b/engines/avalanche/highs.h
index 187b31c..3d6eb65 100644
--- a/engines/avalanche/highs.h
+++ b/engines/avalanche/highs.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __highs_h__
 #define __highs_h__
 
diff --git a/engines/avalanche/hiz.cpp b/engines/avalanche/hiz.cpp
index 11c54f8..d9508b5 100644
--- a/engines/avalanche/hiz.cpp
+++ b/engines/avalanche/hiz.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/incline.cpp b/engines/avalanche/incline.cpp
index 99433f9..8cc8170 100644
--- a/engines/avalanche/incline.cpp
+++ b/engines/avalanche/incline.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*
diff --git a/engines/avalanche/incline.h b/engines/avalanche/incline.h
index 2d858bd..4b252a1 100644
--- a/engines/avalanche/incline.h
+++ b/engines/avalanche/incline.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __incline_h__
 #define __incline_h__
 
diff --git a/engines/avalanche/initxf.cpp b/engines/avalanche/initxf.cpp
index 2dfde79..a485c1b 100644
--- a/engines/avalanche/initxf.cpp
+++ b/engines/avalanche/initxf.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/inputtes.cpp b/engines/avalanche/inputtes.cpp
index b34c59a..7d95ff9 100644
--- a/engines/avalanche/inputtes.cpp
+++ b/engines/avalanche/inputtes.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/intro.cpp b/engines/avalanche/intro.cpp
index ba230c0..54cd3e6 100644
--- a/engines/avalanche/intro.cpp
+++ b/engines/avalanche/intro.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/ints.cpp b/engines/avalanche/ints.cpp
index 48eab01..acb607c 100644
--- a/engines/avalanche/ints.cpp
+++ b/engines/avalanche/ints.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
               /* Avalot interrupt handler */
diff --git a/engines/avalanche/joysetup.cpp b/engines/avalanche/joysetup.cpp
index e4e73dc..7d22a50 100644
--- a/engines/avalanche/joysetup.cpp
+++ b/engines/avalanche/joysetup.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
                        /* Avalot joystick setup routines. To be incorporated
diff --git a/engines/avalanche/joystick.cpp b/engines/avalanche/joystick.cpp
index 9d329ef..c3ab14a 100644
--- a/engines/avalanche/joystick.cpp
+++ b/engines/avalanche/joystick.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 #define __joystick_implementation__
diff --git a/engines/avalanche/joystick.h b/engines/avalanche/joystick.h
index 00da7f0..0a3147e 100644
--- a/engines/avalanche/joystick.h
+++ b/engines/avalanche/joystick.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __joystick_h__
 #define __joystick_h__
 
diff --git a/engines/avalanche/loading.cpp b/engines/avalanche/loading.cpp
index 70acdd0..9bc4a0c 100644
--- a/engines/avalanche/loading.cpp
+++ b/engines/avalanche/loading.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/logger.cpp b/engines/avalanche/logger.cpp
index 344f99f..b95e450 100644
--- a/engines/avalanche/logger.cpp
+++ b/engines/avalanche/logger.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*
diff --git a/engines/avalanche/logger.h b/engines/avalanche/logger.h
index 803227d..016bfb6 100644
--- a/engines/avalanche/logger.h
+++ b/engines/avalanche/logger.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __logger_h__
 #define __logger_h__
 
diff --git a/engines/avalanche/lucerna.cpp b/engines/avalanche/lucerna.cpp
index 4bc776a..777e9bd 100644
--- a/engines/avalanche/lucerna.cpp
+++ b/engines/avalanche/lucerna.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*
diff --git a/engines/avalanche/lucerna.h b/engines/avalanche/lucerna.h
index 578557a..a602f8c 100644
--- a/engines/avalanche/lucerna.h
+++ b/engines/avalanche/lucerna.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __lucerna_h__
 #define __lucerna_h__
 
diff --git a/engines/avalanche/magic2.cpp b/engines/avalanche/magic2.cpp
index 3e9e986..b7e9d12 100644
--- a/engines/avalanche/magic2.cpp
+++ b/engines/avalanche/magic2.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/magidraw.cpp b/engines/avalanche/magidraw.cpp
index 3fe305b..3c6b35e 100644
--- a/engines/avalanche/magidraw.cpp
+++ b/engines/avalanche/magidraw.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/magishuf.cpp b/engines/avalanche/magishuf.cpp
index 8099c32..0f1c494 100644
--- a/engines/avalanche/magishuf.cpp
+++ b/engines/avalanche/magishuf.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/make!.cpp b/engines/avalanche/make!.cpp
index b035329..2079547 100644
--- a/engines/avalanche/make!.cpp
+++ b/engines/avalanche/make!.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
                                  /* Phew! */
diff --git a/engines/avalanche/makeregi.cpp b/engines/avalanche/makeregi.cpp
index eaedee4..2e927c8 100644
--- a/engines/avalanche/makeregi.cpp
+++ b/engines/avalanche/makeregi.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
                        /* regname's name starts at $7D1 (2001). */
diff --git a/engines/avalanche/makesez.cpp b/engines/avalanche/makesez.cpp
index 4455fbc..c264dc1 100644
--- a/engines/avalanche/makesez.cpp
+++ b/engines/avalanche/makesez.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/makevmou.cpp b/engines/avalanche/makevmou.cpp
index 9e933b3..a5f3e25 100644
--- a/engines/avalanche/makevmou.cpp
+++ b/engines/avalanche/makevmou.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/menuxf.cpp b/engines/avalanche/menuxf.cpp
index f1d8df6..6a5342e 100644
--- a/engines/avalanche/menuxf.cpp
+++ b/engines/avalanche/menuxf.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/minstran.cpp b/engines/avalanche/minstran.cpp
index fa8f948..29b3da7 100644
--- a/engines/avalanche/minstran.cpp
+++ b/engines/avalanche/minstran.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/newsprit.cpp b/engines/avalanche/newsprit.cpp
index 245bda6..5f21ecd 100644
--- a/engines/avalanche/newsprit.cpp
+++ b/engines/avalanche/newsprit.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/nim.cpp b/engines/avalanche/nim.cpp
index 4d05e34..7dab81b 100644
--- a/engines/avalanche/nim.cpp
+++ b/engines/avalanche/nim.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/nimdraw.cpp b/engines/avalanche/nimdraw.cpp
index 0577410..21618d6 100644
--- a/engines/avalanche/nimdraw.cpp
+++ b/engines/avalanche/nimdraw.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/nimunit.cpp b/engines/avalanche/nimunit.cpp
index 83a5260..4aae41b 100644
--- a/engines/avalanche/nimunit.cpp
+++ b/engines/avalanche/nimunit.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*
diff --git a/engines/avalanche/nimunit.h b/engines/avalanche/nimunit.h
index 4e23124..5e3386d 100644
--- a/engines/avalanche/nimunit.h
+++ b/engines/avalanche/nimunit.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __nimunit_h__
 #define __nimunit_h__
 
diff --git a/engines/avalanche/oldfiler.cpp b/engines/avalanche/oldfiler.cpp
index cd1f874..c917060 100644
--- a/engines/avalanche/oldfiler.cpp
+++ b/engines/avalanche/oldfiler.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/oldhighs.cpp b/engines/avalanche/oldhighs.cpp
index 4fd83e0..4286ee2 100644
--- a/engines/avalanche/oldhighs.cpp
+++ b/engines/avalanche/oldhighs.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/oldincln.cpp b/engines/avalanche/oldincln.cpp
index 4a2ee46..6dd38b6 100644
--- a/engines/avalanche/oldincln.cpp
+++ b/engines/avalanche/oldincln.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*
diff --git a/engines/avalanche/oldincln.h b/engines/avalanche/oldincln.h
index 18ed82e..a0db659 100644
--- a/engines/avalanche/oldincln.h
+++ b/engines/avalanche/oldincln.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __oldincln_h__
 #define __oldincln_h__
 
diff --git a/engines/avalanche/oldtrip.cpp b/engines/avalanche/oldtrip.cpp
index bee0294..1dddecb 100644
--- a/engines/avalanche/oldtrip.cpp
+++ b/engines/avalanche/oldtrip.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*
diff --git a/engines/avalanche/oldtrip.h b/engines/avalanche/oldtrip.h
index e737214..dc36efd 100644
--- a/engines/avalanche/oldtrip.h
+++ b/engines/avalanche/oldtrip.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __oldtrip_h__
 #define __oldtrip_h__
 
diff --git a/engines/avalanche/omtest.cpp b/engines/avalanche/omtest.cpp
index 8e89fc7..a683bf2 100644
--- a/engines/avalanche/omtest.cpp
+++ b/engines/avalanche/omtest.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/oopmenu.cpp b/engines/avalanche/oopmenu.cpp
index d2d2415..641b9ba 100644
--- a/engines/avalanche/oopmenu.cpp
+++ b/engines/avalanche/oopmenu.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 #define __oopmenu_implementation__
diff --git a/engines/avalanche/oopmenu.h b/engines/avalanche/oopmenu.h
index f753f5e..ee928e2 100644
--- a/engines/avalanche/oopmenu.h
+++ b/engines/avalanche/oopmenu.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __oopmenu_h__
 #define __oopmenu_h__
 
diff --git a/engines/avalanche/overlap.cpp b/engines/avalanche/overlap.cpp
index 8659943..b39b5ba 100644
--- a/engines/avalanche/overlap.cpp
+++ b/engines/avalanche/overlap.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/overscro.cpp b/engines/avalanche/overscro.cpp
index 853a434..e4a2fc9 100644
--- a/engines/avalanche/overscro.cpp
+++ b/engines/avalanche/overscro.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/particle.cpp b/engines/avalanche/particle.cpp
index 01657e7..30f0cd3 100644
--- a/engines/avalanche/particle.cpp
+++ b/engines/avalanche/particle.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/pictemp.cpp b/engines/avalanche/pictemp.cpp
index 009ced5..cc5386d 100644
--- a/engines/avalanche/pictemp.cpp
+++ b/engines/avalanche/pictemp.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/pictemp2.cpp b/engines/avalanche/pictemp2.cpp
index b2eddc2..d396c67 100644
--- a/engines/avalanche/pictemp2.cpp
+++ b/engines/avalanche/pictemp2.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
                   /* Get 'em back! */
diff --git a/engines/avalanche/pingo.cpp b/engines/avalanche/pingo.cpp
index 8bc6149..5a98ba3 100644
--- a/engines/avalanche/pingo.cpp
+++ b/engines/avalanche/pingo.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*
diff --git a/engines/avalanche/pingo.h b/engines/avalanche/pingo.h
index 6979229..fdb49b7 100644
--- a/engines/avalanche/pingo.h
+++ b/engines/avalanche/pingo.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __pingo_h__
 #define __pingo_h__
 
diff --git a/engines/avalanche/plottest.cpp b/engines/avalanche/plottest.cpp
index 12f3785..b9c7fc7 100644
--- a/engines/avalanche/plottest.cpp
+++ b/engines/avalanche/plottest.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/preview1.cpp b/engines/avalanche/preview1.cpp
index a5d8f05..bd5e4d4 100644
--- a/engines/avalanche/preview1.cpp
+++ b/engines/avalanche/preview1.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/qintro.cpp b/engines/avalanche/qintro.cpp
index 477b1ff..b727033 100644
--- a/engines/avalanche/qintro.cpp
+++ b/engines/avalanche/qintro.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/qstars.cpp b/engines/avalanche/qstars.cpp
index 08de16e..d6877ae 100644
--- a/engines/avalanche/qstars.cpp
+++ b/engines/avalanche/qstars.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
                /* Demonstration of the Bigo II system. */
diff --git a/engines/avalanche/rawupd.cpp b/engines/avalanche/rawupd.cpp
index c8e4b15..d37a113 100644
--- a/engines/avalanche/rawupd.cpp
+++ b/engines/avalanche/rawupd.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/readsez.cpp b/engines/avalanche/readsez.cpp
index 0417c28..9937a46 100644
--- a/engines/avalanche/readsez.cpp
+++ b/engines/avalanche/readsez.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/reginam.cpp b/engines/avalanche/reginam.cpp
index 590809c..65bd0b5 100644
--- a/engines/avalanche/reginam.cpp
+++ b/engines/avalanche/reginam.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/sackb1.cpp b/engines/avalanche/sackb1.cpp
index 3d3d172..b84788a 100644
--- a/engines/avalanche/sackb1.cpp
+++ b/engines/avalanche/sackb1.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*
diff --git a/engines/avalanche/sackb1.h b/engines/avalanche/sackb1.h
index 42fd668..b671da2 100644
--- a/engines/avalanche/sackb1.h
+++ b/engines/avalanche/sackb1.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __sackb1_h__
 #define __sackb1_h__
 
diff --git a/engines/avalanche/sackb3.cpp b/engines/avalanche/sackb3.cpp
index 1bf586c..4d70bf6 100644
--- a/engines/avalanche/sackb3.cpp
+++ b/engines/avalanche/sackb3.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*$M 16384,0,0*/
diff --git a/engines/avalanche/sackblas.cpp b/engines/avalanche/sackblas.cpp
index 4bf6eba..e69de29 100644
--- a/engines/avalanche/sackblas.cpp
+++ b/engines/avalanche/sackblas.cpp
@@ -1,4 +0,0 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
diff --git a/engines/avalanche/saving.cpp b/engines/avalanche/saving.cpp
index 3827007..962495f 100644
--- a/engines/avalanche/saving.cpp
+++ b/engines/avalanche/saving.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/scr_1.cpp b/engines/avalanche/scr_1.cpp
index 6e9ba57..258ca6b 100644
--- a/engines/avalanche/scr_1.cpp
+++ b/engines/avalanche/scr_1.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/scr_2.cpp b/engines/avalanche/scr_2.cpp
index 3c54438..55eba41 100644
--- a/engines/avalanche/scr_2.cpp
+++ b/engines/avalanche/scr_2.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/scr_3.cpp b/engines/avalanche/scr_3.cpp
index 1d959b8..96c9d9e 100644
--- a/engines/avalanche/scr_3.cpp
+++ b/engines/avalanche/scr_3.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/scr_4.cpp b/engines/avalanche/scr_4.cpp
index db9a430..183104e 100644
--- a/engines/avalanche/scr_4.cpp
+++ b/engines/avalanche/scr_4.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/scr_5.cpp b/engines/avalanche/scr_5.cpp
index dfc3e9c..ab2359f 100644
--- a/engines/avalanche/scr_5.cpp
+++ b/engines/avalanche/scr_5.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/scr_9.cpp b/engines/avalanche/scr_9.cpp
index d398a3e..6d46fac 100644
--- a/engines/avalanche/scr_9.cpp
+++ b/engines/avalanche/scr_9.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/scrolls.cpp b/engines/avalanche/scrolls.cpp
index 57aac31..4f02f06 100644
--- a/engines/avalanche/scrolls.cpp
+++ b/engines/avalanche/scrolls.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*
diff --git a/engines/avalanche/scrolls.h b/engines/avalanche/scrolls.h
index f035f3f..d71ec5d 100644
--- a/engines/avalanche/scrolls.h
+++ b/engines/avalanche/scrolls.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __scrolls_h__
 #define __scrolls_h__
 
diff --git a/engines/avalanche/sequence.cpp b/engines/avalanche/sequence.cpp
index 853d2fb..fccb01b 100644
--- a/engines/avalanche/sequence.cpp
+++ b/engines/avalanche/sequence.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*
diff --git a/engines/avalanche/sequence.h b/engines/avalanche/sequence.h
index a14e0e0..a6c59a6 100644
--- a/engines/avalanche/sequence.h
+++ b/engines/avalanche/sequence.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __sequence_h__
 #define __sequence_h__
 
diff --git a/engines/avalanche/setup.cpp b/engines/avalanche/setup.cpp
index 94e969a..32fee35 100644
--- a/engines/avalanche/setup.cpp
+++ b/engines/avalanche/setup.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/seu.cpp b/engines/avalanche/seu.cpp
index f896da8..f1729f2 100644
--- a/engines/avalanche/seu.cpp
+++ b/engines/avalanche/seu.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/seu_avvy.cpp b/engines/avalanche/seu_avvy.cpp
index 6e7d31c..c9c30f8 100644
--- a/engines/avalanche/seu_avvy.cpp
+++ b/engines/avalanche/seu_avvy.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/sez.cpp b/engines/avalanche/sez.cpp
index 4bf6eba..e69de29 100644
--- a/engines/avalanche/sez.cpp
+++ b/engines/avalanche/sez.cpp
@@ -1,4 +0,0 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
diff --git a/engines/avalanche/sezedit.cpp b/engines/avalanche/sezedit.cpp
index 3a57ee8..5db639c 100644
--- a/engines/avalanche/sezedit.cpp
+++ b/engines/avalanche/sezedit.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/sezunit.cpp b/engines/avalanche/sezunit.cpp
index 4a4ca60..1f15cf1 100644
--- a/engines/avalanche/sezunit.cpp
+++ b/engines/avalanche/sezunit.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 #define __sezunit_implementation__
diff --git a/engines/avalanche/sezunit.h b/engines/avalanche/sezunit.h
index b5644c9..6b0a99e 100644
--- a/engines/avalanche/sezunit.h
+++ b/engines/avalanche/sezunit.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __sezunit_h__
 #define __sezunit_h__
 
diff --git a/engines/avalanche/sezxfr.cpp b/engines/avalanche/sezxfr.cpp
index 3b48c43..37c9cf0 100644
--- a/engines/avalanche/sezxfr.cpp
+++ b/engines/avalanche/sezxfr.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/shell1.cpp b/engines/avalanche/shell1.cpp
index a5e0f13..75296bf 100644
--- a/engines/avalanche/shell1.cpp
+++ b/engines/avalanche/shell1.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/shell2.cpp b/engines/avalanche/shell2.cpp
index d9bb2d1..b0ef13a 100644
--- a/engines/avalanche/shell2.cpp
+++ b/engines/avalanche/shell2.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/slope.cpp b/engines/avalanche/slope.cpp
index d9957df..c566246 100644
--- a/engines/avalanche/slope.cpp
+++ b/engines/avalanche/slope.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/spread.cpp b/engines/avalanche/spread.cpp
index 87a8417..5e52228 100644
--- a/engines/avalanche/spread.cpp
+++ b/engines/avalanche/spread.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/spread2.cpp b/engines/avalanche/spread2.cpp
index 843550b..267bf8e 100644
--- a/engines/avalanche/spread2.cpp
+++ b/engines/avalanche/spread2.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/squish.cpp b/engines/avalanche/squish.cpp
index 521c144..6ff3b90 100644
--- a/engines/avalanche/squish.cpp
+++ b/engines/avalanche/squish.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/ss_blank.cpp b/engines/avalanche/ss_blank.cpp
index 40641c9..f8bc96b 100644
--- a/engines/avalanche/ss_blank.cpp
+++ b/engines/avalanche/ss_blank.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/ss_clock.cpp b/engines/avalanche/ss_clock.cpp
index 9b3d538..e169f37 100644
--- a/engines/avalanche/ss_clock.cpp
+++ b/engines/avalanche/ss_clock.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/stars.cpp b/engines/avalanche/stars.cpp
index d626b35..5181241 100644
--- a/engines/avalanche/stars.cpp
+++ b/engines/avalanche/stars.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
                /* Demonstration of the Bigo II system. */
diff --git a/engines/avalanche/status.cpp b/engines/avalanche/status.cpp
index cae0182..761f11c 100644
--- a/engines/avalanche/status.cpp
+++ b/engines/avalanche/status.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/sticks.cpp b/engines/avalanche/sticks.cpp
index 0297bff..b47b6fb 100644
--- a/engines/avalanche/sticks.cpp
+++ b/engines/avalanche/sticks.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*
diff --git a/engines/avalanche/sticks.h b/engines/avalanche/sticks.h
index 2312d45..5a54cd4 100644
--- a/engines/avalanche/sticks.h
+++ b/engines/avalanche/sticks.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __sticks_h__
 #define __sticks_h__
 
diff --git a/engines/avalanche/sunrise.cpp b/engines/avalanche/sunrise.cpp
index 035d81b..4a0e3ac 100644
--- a/engines/avalanche/sunrise.cpp
+++ b/engines/avalanche/sunrise.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/tempo.cpp b/engines/avalanche/tempo.cpp
index d58a818..b8887ef 100644
--- a/engines/avalanche/tempo.cpp
+++ b/engines/avalanche/tempo.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/test.cpp b/engines/avalanche/test.cpp
index b13d734..1ac5671 100644
--- a/engines/avalanche/test.cpp
+++ b/engines/avalanche/test.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/test2.cpp b/engines/avalanche/test2.cpp
index 116344a..e5b2347 100644
--- a/engines/avalanche/test2.cpp
+++ b/engines/avalanche/test2.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/testblit.cpp b/engines/avalanche/testblit.cpp
index 11146a8..2949f30 100644
--- a/engines/avalanche/testblit.cpp
+++ b/engines/avalanche/testblit.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/testcard.cpp b/engines/avalanche/testcard.cpp
index 2ca0c0b..e1e8696 100644
--- a/engines/avalanche/testcard.cpp
+++ b/engines/avalanche/testcard.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/testenh.cpp b/engines/avalanche/testenh.cpp
index 0fc936f..34e1d67 100644
--- a/engines/avalanche/testenh.cpp
+++ b/engines/avalanche/testenh.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/timeout.cpp b/engines/avalanche/timeout.cpp
index 5a4cc9e..d5b964d 100644
--- a/engines/avalanche/timeout.cpp
+++ b/engines/avalanche/timeout.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*
diff --git a/engines/avalanche/timeout.h b/engines/avalanche/timeout.h
index 7068e7e..5fa9800 100644
--- a/engines/avalanche/timeout.h
+++ b/engines/avalanche/timeout.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __timeout_h__
 #define __timeout_h__
 
diff --git a/engines/avalanche/travel.cpp b/engines/avalanche/travel.cpp
index e27e48c..6f48f99 100644
--- a/engines/avalanche/travel.cpp
+++ b/engines/avalanche/travel.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/trip.cpp b/engines/avalanche/trip.cpp
index add6fa1..58ae537 100644
--- a/engines/avalanche/trip.cpp
+++ b/engines/avalanche/trip.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*
diff --git a/engines/avalanche/trip.h b/engines/avalanche/trip.h
index c018264..520e323 100644
--- a/engines/avalanche/trip.h
+++ b/engines/avalanche/trip.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __trip_h__
 #define __trip_h__
 
diff --git a/engines/avalanche/trip3.cpp b/engines/avalanche/trip3.cpp
index 38227b0..d95eba5 100644
--- a/engines/avalanche/trip3.cpp
+++ b/engines/avalanche/trip3.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 #define __trip3_implementation__
diff --git a/engines/avalanche/trip3.h b/engines/avalanche/trip3.h
index 32144e1..ccad153 100644
--- a/engines/avalanche/trip3.h
+++ b/engines/avalanche/trip3.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __trip3_h__
 #define __trip3_h__
 
diff --git a/engines/avalanche/trip42.cpp b/engines/avalanche/trip42.cpp
index 5ae624c..923e32e 100644
--- a/engines/avalanche/trip42.cpp
+++ b/engines/avalanche/trip42.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*
diff --git a/engines/avalanche/trip42.h b/engines/avalanche/trip42.h
index bed52bb..b5e4f13 100644
--- a/engines/avalanche/trip42.h
+++ b/engines/avalanche/trip42.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __trip42_h__
 #define __trip42_h__
 
diff --git a/engines/avalanche/trip5.cpp b/engines/avalanche/trip5.cpp
index 6dd4113..721268b 100644
--- a/engines/avalanche/trip5.cpp
+++ b/engines/avalanche/trip5.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*
diff --git a/engines/avalanche/trip5.h b/engines/avalanche/trip5.h
index a06b6e9..9e7b3a3 100644
--- a/engines/avalanche/trip5.h
+++ b/engines/avalanche/trip5.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __trip5_h__
 #define __trip5_h__
 
diff --git a/engines/avalanche/trip5tst.cpp b/engines/avalanche/trip5tst.cpp
index c4ab58e..c669cc7 100644
--- a/engines/avalanche/trip5tst.cpp
+++ b/engines/avalanche/trip5tst.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/trip5xf.cpp b/engines/avalanche/trip5xf.cpp
index 582c8af..f6225b4 100644
--- a/engines/avalanche/trip5xf.cpp
+++ b/engines/avalanche/trip5xf.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/tripoop.cpp b/engines/avalanche/tripoop.cpp
index 322dba8..b8db1a7 100644
--- a/engines/avalanche/tripoop.cpp
+++ b/engines/avalanche/tripoop.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
                  /* Trip Oop (Trippancy 4 Andexor */
diff --git a/engines/avalanche/ttmenuxf.cpp b/engines/avalanche/ttmenuxf.cpp
index b92db51..2d870fa 100644
--- a/engines/avalanche/ttmenuxf.cpp
+++ b/engines/avalanche/ttmenuxf.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/unsquish.cpp b/engines/avalanche/unsquish.cpp
index a5f0840..9183e1b 100644
--- a/engines/avalanche/unsquish.cpp
+++ b/engines/avalanche/unsquish.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
                             /*$S-*/
diff --git a/engines/avalanche/viewdocs.cpp b/engines/avalanche/viewdocs.cpp
index 09cd333..a9e1e6e 100644
--- a/engines/avalanche/viewdocs.cpp
+++ b/engines/avalanche/viewdocs.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
                    /*$S-*/
diff --git a/engines/avalanche/visa.cpp b/engines/avalanche/visa.cpp
index aec063f..664dca9 100644
--- a/engines/avalanche/visa.cpp
+++ b/engines/avalanche/visa.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 /*
diff --git a/engines/avalanche/visa.h b/engines/avalanche/visa.h
index 1cfb77f..8b79d6b 100644
--- a/engines/avalanche/visa.h
+++ b/engines/avalanche/visa.h
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 #ifndef __visa_h__
 #define __visa_h__
 
diff --git a/engines/avalanche/visatest.cpp b/engines/avalanche/visatest.cpp
index 56c9595..df856f6 100644
--- a/engines/avalanche/visatest.cpp
+++ b/engines/avalanche/visatest.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/waver.cpp b/engines/avalanche/waver.cpp
index 4bf6eba..e69de29 100644
--- a/engines/avalanche/waver.cpp
+++ b/engines/avalanche/waver.cpp
@@ -1,4 +0,0 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
diff --git a/engines/avalanche/xf_gover.cpp b/engines/avalanche/xf_gover.cpp
index 402f3ab..683e6ca 100644
--- a/engines/avalanche/xf_gover.cpp
+++ b/engines/avalanche/xf_gover.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/xf_help.cpp b/engines/avalanche/xf_help.cpp
index 162fcec..b0f6844 100644
--- a/engines/avalanche/xf_help.cpp
+++ b/engines/avalanche/xf_help.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/xf_visa.cpp b/engines/avalanche/xf_visa.cpp
index 2eb565a..5fe7156 100644
--- a/engines/avalanche/xf_visa.cpp
+++ b/engines/avalanche/xf_visa.cpp
@@ -1,8 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
 
 
 
diff --git a/engines/avalanche/xfbutton.cpp b/engines/avalanche/xfbutton.cpp
index 1881e97..980eff8 100644
--- a/engines/avalanche/xfbutton.cpp
+++ b/engines/avalanche/xfbutton.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/xfghost.cpp b/engines/avalanche/xfghost.cpp
index e03399a..86996ba 100644
--- a/engines/avalanche/xfghost.cpp
+++ b/engines/avalanche/xfghost.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 
diff --git a/engines/avalanche/zapdraw.cpp b/engines/avalanche/zapdraw.cpp
index 5ab55d1..2c4f712 100644
--- a/engines/avalanche/zapdraw.cpp
+++ b/engines/avalanche/zapdraw.cpp
@@ -1,7 +1,3 @@
-/*
- * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
- * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
 
 
 


Commit: 7939ab1f62959c19a18dfe3d54aef0d0175a3b1d
    https://github.com/scummvm/scummvm/commit/7939ab1f62959c19a18dfe3d54aef0d0175a3b1d
Author: uruk (koppirnyo at gmail.com)
Date: 2013-06-17T04:52:44-07:00

Commit Message:
AVALANCHE: Add standard header. (Now the right one...)

Changed paths:
    engines/avalanche/1stoff.cpp
    engines/avalanche/access.cpp
    engines/avalanche/access.h
    engines/avalanche/acci.cpp
    engines/avalanche/acci.h
    engines/avalanche/also.cpp
    engines/avalanche/andexor.cpp
    engines/avalanche/andexor2.cpp
    engines/avalanche/andextst.cpp
    engines/avalanche/arch.cpp
    engines/avalanche/arch.h
    engines/avalanche/avalot9.cpp
    engines/avalanche/avbkgrnd.cpp
    engines/avalanche/avmenu.cpp
    engines/avalanche/avvyans.cpp
    engines/avalanche/avvyans2.cpp
    engines/avalanche/avvymonk.cpp
    engines/avalanche/bakchunk.cpp
    engines/avalanche/basher.cpp
    engines/avalanche/basher.h
    engines/avalanche/bootstrp.cpp
    engines/avalanche/cadburys.cpp
    engines/avalanche/cadburys.h
    engines/avalanche/celer.cpp
    engines/avalanche/celer.h
    engines/avalanche/ch_egats.cpp
    engines/avalanche/charmap.cpp
    engines/avalanche/chunker.cpp
    engines/avalanche/chunkxf1.cpp
    engines/avalanche/chunkxf2.cpp
    engines/avalanche/chunkxf3.cpp
    engines/avalanche/chunkxf4.cpp
    engines/avalanche/chunkxf5.cpp
    engines/avalanche/chunkxf6.cpp
    engines/avalanche/chunkxf7.cpp
    engines/avalanche/chunkxf8.cpp
    engines/avalanche/chunkxf9.cpp
    engines/avalanche/chunkxfa.cpp
    engines/avalanche/chunkxfb.cpp
    engines/avalanche/chunkxfc.cpp
    engines/avalanche/chunkxfd.cpp
    engines/avalanche/chunkxfe.cpp
    engines/avalanche/chunkxff.cpp
    engines/avalanche/chunkxfg.cpp
    engines/avalanche/chunkxfh.cpp
    engines/avalanche/chunkxfi.cpp
    engines/avalanche/chunkxfj.cpp
    engines/avalanche/chunkxfk.cpp
    engines/avalanche/chunkxfl.cpp
    engines/avalanche/clock.cpp
    engines/avalanche/closing.cpp
    engines/avalanche/closing.h
    engines/avalanche/convert.cpp
    engines/avalanche/convmous.cpp
    engines/avalanche/credits.cpp
    engines/avalanche/displtxt.cpp
    engines/avalanche/dropdown.cpp
    engines/avalanche/dropdown.h
    engines/avalanche/dwidth.cpp
    engines/avalanche/edhead.cpp
    engines/avalanche/edna.cpp
    engines/avalanche/enhanced.cpp
    engines/avalanche/enhanced.h
    engines/avalanche/enid.cpp
    engines/avalanche/enid.h
    engines/avalanche/filer.cpp
    engines/avalanche/fileunit.cpp
    engines/avalanche/fileunit.h
    engines/avalanche/filing.cpp
    engines/avalanche/folktemp.cpp
    engines/avalanche/fontslid.cpp
    engines/avalanche/frere.cpp
    engines/avalanche/g-room.cpp
    engines/avalanche/golden.cpp
    engines/avalanche/gyro.cpp
    engines/avalanche/gyro.h
    engines/avalanche/help.cpp
    engines/avalanche/help2.cpp
    engines/avalanche/helpbak.cpp
    engines/avalanche/helpbak.h
    engines/avalanche/helper.cpp
    engines/avalanche/helper.h
    engines/avalanche/hibits.cpp
    engines/avalanche/highs.cpp
    engines/avalanche/highs.h
    engines/avalanche/hiz.cpp
    engines/avalanche/incline.cpp
    engines/avalanche/incline.h
    engines/avalanche/initxf.cpp
    engines/avalanche/inputtes.cpp
    engines/avalanche/intro.cpp
    engines/avalanche/ints.cpp
    engines/avalanche/joysetup.cpp
    engines/avalanche/joystick.cpp
    engines/avalanche/joystick.h
    engines/avalanche/loading.cpp
    engines/avalanche/logger.cpp
    engines/avalanche/logger.h
    engines/avalanche/lucerna.cpp
    engines/avalanche/lucerna.h
    engines/avalanche/magic2.cpp
    engines/avalanche/magidraw.cpp
    engines/avalanche/magishuf.cpp
    engines/avalanche/make!.cpp
    engines/avalanche/makeregi.cpp
    engines/avalanche/makesez.cpp
    engines/avalanche/makevmou.cpp
    engines/avalanche/menuxf.cpp
    engines/avalanche/minstran.cpp
    engines/avalanche/newsprit.cpp
    engines/avalanche/nim.cpp
    engines/avalanche/nimdraw.cpp
    engines/avalanche/nimunit.cpp
    engines/avalanche/nimunit.h
    engines/avalanche/oldfiler.cpp
    engines/avalanche/oldhighs.cpp
    engines/avalanche/oldincln.cpp
    engines/avalanche/oldincln.h
    engines/avalanche/oldtrip.cpp
    engines/avalanche/oldtrip.h
    engines/avalanche/omtest.cpp
    engines/avalanche/oopmenu.cpp
    engines/avalanche/oopmenu.h
    engines/avalanche/overlap.cpp
    engines/avalanche/overscro.cpp
    engines/avalanche/particle.cpp
    engines/avalanche/pictemp.cpp
    engines/avalanche/pictemp2.cpp
    engines/avalanche/pingo.cpp
    engines/avalanche/pingo.h
    engines/avalanche/plottest.cpp
    engines/avalanche/preview1.cpp
    engines/avalanche/qintro.cpp
    engines/avalanche/qstars.cpp
    engines/avalanche/rawupd.cpp
    engines/avalanche/readsez.cpp
    engines/avalanche/reginam.cpp
    engines/avalanche/sackb1.cpp
    engines/avalanche/sackb1.h
    engines/avalanche/sackb3.cpp
    engines/avalanche/sackblas.cpp
    engines/avalanche/saving.cpp
    engines/avalanche/scr_1.cpp
    engines/avalanche/scr_2.cpp
    engines/avalanche/scr_3.cpp
    engines/avalanche/scr_4.cpp
    engines/avalanche/scr_5.cpp
    engines/avalanche/scr_9.cpp
    engines/avalanche/scrolls.cpp
    engines/avalanche/scrolls.h
    engines/avalanche/sequence.cpp
    engines/avalanche/sequence.h
    engines/avalanche/setup.cpp
    engines/avalanche/seu.cpp
    engines/avalanche/seu_avvy.cpp
    engines/avalanche/sez.cpp
    engines/avalanche/sezedit.cpp
    engines/avalanche/sezunit.cpp
    engines/avalanche/sezunit.h
    engines/avalanche/sezxfr.cpp
    engines/avalanche/shell1.cpp
    engines/avalanche/shell2.cpp
    engines/avalanche/slope.cpp
    engines/avalanche/spread.cpp
    engines/avalanche/spread2.cpp
    engines/avalanche/squish.cpp
    engines/avalanche/ss_blank.cpp
    engines/avalanche/ss_clock.cpp
    engines/avalanche/stars.cpp
    engines/avalanche/status.cpp
    engines/avalanche/sticks.cpp
    engines/avalanche/sticks.h
    engines/avalanche/sunrise.cpp
    engines/avalanche/tempo.cpp
    engines/avalanche/test.cpp
    engines/avalanche/test2.cpp
    engines/avalanche/testblit.cpp
    engines/avalanche/testcard.cpp
    engines/avalanche/testenh.cpp
    engines/avalanche/timeout.cpp
    engines/avalanche/timeout.h
    engines/avalanche/travel.cpp
    engines/avalanche/trip.cpp
    engines/avalanche/trip.h
    engines/avalanche/trip3.cpp
    engines/avalanche/trip3.h
    engines/avalanche/trip42.cpp
    engines/avalanche/trip42.h
    engines/avalanche/trip5.cpp
    engines/avalanche/trip5.h
    engines/avalanche/trip5tst.cpp
    engines/avalanche/trip5xf.cpp
    engines/avalanche/tripoop.cpp
    engines/avalanche/ttmenuxf.cpp
    engines/avalanche/unsquish.cpp
    engines/avalanche/viewdocs.cpp
    engines/avalanche/visa.cpp
    engines/avalanche/visa.h
    engines/avalanche/visatest.cpp
    engines/avalanche/waver.cpp
    engines/avalanche/xf_gover.cpp
    engines/avalanche/xf_help.cpp
    engines/avalanche/xf_visa.cpp
    engines/avalanche/xfbutton.cpp
    engines/avalanche/xfghost.cpp
    engines/avalanche/zapdraw.cpp



diff --git a/engines/avalanche/1stoff.cpp b/engines/avalanche/1stoff.cpp
index e8debc3..12db75a 100644
--- a/engines/avalanche/1stoff.cpp
+++ b/engines/avalanche/1stoff.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*#include "Crt.h"*/
 /*#include "Dos.h"*/
diff --git a/engines/avalanche/access.cpp b/engines/avalanche/access.cpp
index faa00bb..a36a3e5 100644
--- a/engines/avalanche/access.cpp
+++ b/engines/avalanche/access.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/access.h b/engines/avalanche/access.h
index 825deeb..ff2d3af 100644
--- a/engines/avalanche/access.h
+++ b/engines/avalanche/access.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __access_h__
 #define __access_h__
 
diff --git a/engines/avalanche/acci.cpp b/engines/avalanche/acci.cpp
index 32fde0c..703785f 100644
--- a/engines/avalanche/acci.cpp
+++ b/engines/avalanche/acci.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*  $D-*/
 /*
diff --git a/engines/avalanche/acci.h b/engines/avalanche/acci.h
index f9d1265..7049199 100644
--- a/engines/avalanche/acci.h
+++ b/engines/avalanche/acci.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __acci_h__
 #define __acci_h__
 
diff --git a/engines/avalanche/also.cpp b/engines/avalanche/also.cpp
index e5af131..5429331 100644
--- a/engines/avalanche/also.cpp
+++ b/engines/avalanche/also.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Rodent.h"*/
diff --git a/engines/avalanche/andexor.cpp b/engines/avalanche/andexor.cpp
index 9cf259e..1902ecd 100644
--- a/engines/avalanche/andexor.cpp
+++ b/engines/avalanche/andexor.cpp
@@ -1,6 +1,31 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
-                 /* Trippancy IV - original file */
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
+/* Trippancy IV - original file */
 #include "graph.h"
 
 const integer taboo = cyan;
diff --git a/engines/avalanche/andexor2.cpp b/engines/avalanche/andexor2.cpp
index b5355d7..670a3de 100644
--- a/engines/avalanche/andexor2.cpp
+++ b/engines/avalanche/andexor2.cpp
@@ -1,6 +1,31 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
-                  /* Trippancy IV - original file */
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
+/* Trippancy IV - original file */
 #include "graph.h"
 
 const integer taboo = cyan;
diff --git a/engines/avalanche/andextst.cpp b/engines/avalanche/andextst.cpp
index db5c659..3abfbac 100644
--- a/engines/avalanche/andextst.cpp
+++ b/engines/avalanche/andextst.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 
diff --git a/engines/avalanche/arch.cpp b/engines/avalanche/arch.cpp
index e05f173..f488a86 100644
--- a/engines/avalanche/arch.cpp
+++ b/engines/avalanche/arch.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/arch.h b/engines/avalanche/arch.h
index cb0960f..781217a 100644
--- a/engines/avalanche/arch.h
+++ b/engines/avalanche/arch.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __arch_h__
 #define __arch_h__
 
diff --git a/engines/avalanche/avalot9.cpp b/engines/avalanche/avalot9.cpp
index 3780b79..8f36226 100644
--- a/engines/avalanche/avalot9.cpp
+++ b/engines/avalanche/avalot9.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/avbkgrnd.cpp b/engines/avalanche/avbkgrnd.cpp
index 6488fb8..f57b0f4 100644
--- a/engines/avalanche/avbkgrnd.cpp
+++ b/engines/avalanche/avbkgrnd.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
-
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 
diff --git a/engines/avalanche/avmenu.cpp b/engines/avalanche/avmenu.cpp
index 9b366a9..d7bfac5 100644
--- a/engines/avalanche/avmenu.cpp
+++ b/engines/avalanche/avmenu.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/avvyans.cpp b/engines/avalanche/avvyans.cpp
index 1985194..4105eaf 100644
--- a/engines/avalanche/avvyans.cpp
+++ b/engines/avalanche/avvyans.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/avvyans2.cpp b/engines/avalanche/avvyans2.cpp
index 9702ec2..b425b56 100644
--- a/engines/avalanche/avvyans2.cpp
+++ b/engines/avalanche/avvyans2.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/avvymonk.cpp b/engines/avalanche/avvymonk.cpp
index 7d5143b..6267a04 100644
--- a/engines/avalanche/avvymonk.cpp
+++ b/engines/avalanche/avvymonk.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 
diff --git a/engines/avalanche/bakchunk.cpp b/engines/avalanche/bakchunk.cpp
index 296c55a..b005b03 100644
--- a/engines/avalanche/bakchunk.cpp
+++ b/engines/avalanche/bakchunk.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Celer.h"*/
diff --git a/engines/avalanche/basher.cpp b/engines/avalanche/basher.cpp
index 3ac401e..5210631 100644
--- a/engines/avalanche/basher.cpp
+++ b/engines/avalanche/basher.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/basher.h b/engines/avalanche/basher.h
index 1afecae..a1996c8 100644
--- a/engines/avalanche/basher.h
+++ b/engines/avalanche/basher.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __basher_h__
 #define __basher_h__
 
diff --git a/engines/avalanche/bootstrp.cpp b/engines/avalanche/bootstrp.cpp
index 141c69b..ff4ab38 100644
--- a/engines/avalanche/bootstrp.cpp
+++ b/engines/avalanche/bootstrp.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
-
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*#include "Dos.h"*/
 
diff --git a/engines/avalanche/cadburys.cpp b/engines/avalanche/cadburys.cpp
index 3839875..21c65ae 100644
--- a/engines/avalanche/cadburys.cpp
+++ b/engines/avalanche/cadburys.cpp
@@ -1,4 +1,29 @@
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #define __cadburys_implementation__
 
diff --git a/engines/avalanche/cadburys.h b/engines/avalanche/cadburys.h
index 65e7bd7..b513510 100644
--- a/engines/avalanche/cadburys.h
+++ b/engines/avalanche/cadburys.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __cadburys_h__
 #define __cadburys_h__
 
diff --git a/engines/avalanche/celer.cpp b/engines/avalanche/celer.cpp
index bedab4b..c456378 100644
--- a/engines/avalanche/celer.cpp
+++ b/engines/avalanche/celer.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/celer.h b/engines/avalanche/celer.h
index f6ad52f..ff608ea 100644
--- a/engines/avalanche/celer.h
+++ b/engines/avalanche/celer.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __celer_h__
 #define __celer_h__
 
diff --git a/engines/avalanche/ch_egats.cpp b/engines/avalanche/ch_egats.cpp
index 0488d21..9a9718b 100644
--- a/engines/avalanche/ch_egats.cpp
+++ b/engines/avalanche/ch_egats.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 
diff --git a/engines/avalanche/charmap.cpp b/engines/avalanche/charmap.cpp
index 0eb701b..f42bf31 100644
--- a/engines/avalanche/charmap.cpp
+++ b/engines/avalanche/charmap.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*#include "Dos.h"*/
 
diff --git a/engines/avalanche/chunker.cpp b/engines/avalanche/chunker.cpp
index 00cb696..46848da 100644
--- a/engines/avalanche/chunker.cpp
+++ b/engines/avalanche/chunker.cpp
@@ -1,6 +1,29 @@
-
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
 
diff --git a/engines/avalanche/chunkxf1.cpp b/engines/avalanche/chunkxf1.cpp
index 4b8d99e..44e1725 100644
--- a/engines/avalanche/chunkxf1.cpp
+++ b/engines/avalanche/chunkxf1.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
-
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 #include "cadburys.h"
diff --git a/engines/avalanche/chunkxf2.cpp b/engines/avalanche/chunkxf2.cpp
index 252f132..ee79085 100644
--- a/engines/avalanche/chunkxf2.cpp
+++ b/engines/avalanche/chunkxf2.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 
diff --git a/engines/avalanche/chunkxf3.cpp b/engines/avalanche/chunkxf3.cpp
index d8b89dd..26b3b49 100644
--- a/engines/avalanche/chunkxf3.cpp
+++ b/engines/avalanche/chunkxf3.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Tommys.h"*/
diff --git a/engines/avalanche/chunkxf4.cpp b/engines/avalanche/chunkxf4.cpp
index 4a644d2..2083f5b 100644
--- a/engines/avalanche/chunkxf4.cpp
+++ b/engines/avalanche/chunkxf4.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Tommys.h"*/
diff --git a/engines/avalanche/chunkxf5.cpp b/engines/avalanche/chunkxf5.cpp
index a2d02f9..9300c7b 100644
--- a/engines/avalanche/chunkxf5.cpp
+++ b/engines/avalanche/chunkxf5.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Tommys.h"*/
diff --git a/engines/avalanche/chunkxf6.cpp b/engines/avalanche/chunkxf6.cpp
index b319f2b..3798e5c 100644
--- a/engines/avalanche/chunkxf6.cpp
+++ b/engines/avalanche/chunkxf6.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Tommys.h"*/
diff --git a/engines/avalanche/chunkxf7.cpp b/engines/avalanche/chunkxf7.cpp
index 8d2f7a9..fc8da30 100644
--- a/engines/avalanche/chunkxf7.cpp
+++ b/engines/avalanche/chunkxf7.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Tommys.h"*/
diff --git a/engines/avalanche/chunkxf8.cpp b/engines/avalanche/chunkxf8.cpp
index 98ada51..30be845 100644
--- a/engines/avalanche/chunkxf8.cpp
+++ b/engines/avalanche/chunkxf8.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Tommys.h"*/
diff --git a/engines/avalanche/chunkxf9.cpp b/engines/avalanche/chunkxf9.cpp
index 156827b..48f5bd2 100644
--- a/engines/avalanche/chunkxf9.cpp
+++ b/engines/avalanche/chunkxf9.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Tommys.h"*/
diff --git a/engines/avalanche/chunkxfa.cpp b/engines/avalanche/chunkxfa.cpp
index 1703d4f..a574a04 100644
--- a/engines/avalanche/chunkxfa.cpp
+++ b/engines/avalanche/chunkxfa.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Tommys.h"*/
diff --git a/engines/avalanche/chunkxfb.cpp b/engines/avalanche/chunkxfb.cpp
index 71fd991..2ae8f85 100644
--- a/engines/avalanche/chunkxfb.cpp
+++ b/engines/avalanche/chunkxfb.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Tommys.h"*/
diff --git a/engines/avalanche/chunkxfc.cpp b/engines/avalanche/chunkxfc.cpp
index ec5ff4b..292cc1a 100644
--- a/engines/avalanche/chunkxfc.cpp
+++ b/engines/avalanche/chunkxfc.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Tommys.h"*/
diff --git a/engines/avalanche/chunkxfd.cpp b/engines/avalanche/chunkxfd.cpp
index 9752345..270d253 100644
--- a/engines/avalanche/chunkxfd.cpp
+++ b/engines/avalanche/chunkxfd.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Tommys.h"*/
diff --git a/engines/avalanche/chunkxfe.cpp b/engines/avalanche/chunkxfe.cpp
index bc11f36..ef42c8a 100644
--- a/engines/avalanche/chunkxfe.cpp
+++ b/engines/avalanche/chunkxfe.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Tommys.h"*/
diff --git a/engines/avalanche/chunkxff.cpp b/engines/avalanche/chunkxff.cpp
index e2c6a27..eddbc2d 100644
--- a/engines/avalanche/chunkxff.cpp
+++ b/engines/avalanche/chunkxff.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Tommys.h"*/
diff --git a/engines/avalanche/chunkxfg.cpp b/engines/avalanche/chunkxfg.cpp
index 762a44a..0e980e6 100644
--- a/engines/avalanche/chunkxfg.cpp
+++ b/engines/avalanche/chunkxfg.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Tommys.h"*/
diff --git a/engines/avalanche/chunkxfh.cpp b/engines/avalanche/chunkxfh.cpp
index 4736700..bd303ad 100644
--- a/engines/avalanche/chunkxfh.cpp
+++ b/engines/avalanche/chunkxfh.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Tommys.h"*/
diff --git a/engines/avalanche/chunkxfi.cpp b/engines/avalanche/chunkxfi.cpp
index 917d83b..52f3be1 100644
--- a/engines/avalanche/chunkxfi.cpp
+++ b/engines/avalanche/chunkxfi.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Tommys.h"*/
diff --git a/engines/avalanche/chunkxfj.cpp b/engines/avalanche/chunkxfj.cpp
index 1f7f234..792c0b5 100644
--- a/engines/avalanche/chunkxfj.cpp
+++ b/engines/avalanche/chunkxfj.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Tommys.h"*/
diff --git a/engines/avalanche/chunkxfk.cpp b/engines/avalanche/chunkxfk.cpp
index 38523f6..86f4935 100644
--- a/engines/avalanche/chunkxfk.cpp
+++ b/engines/avalanche/chunkxfk.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Tommys.h"*/
diff --git a/engines/avalanche/chunkxfl.cpp b/engines/avalanche/chunkxfl.cpp
index 8b942d9..7fdb52b 100644
--- a/engines/avalanche/chunkxfl.cpp
+++ b/engines/avalanche/chunkxfl.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Tommys.h"*/
diff --git a/engines/avalanche/clock.cpp b/engines/avalanche/clock.cpp
index 6674401..ebdc85b 100644
--- a/engines/avalanche/clock.cpp
+++ b/engines/avalanche/clock.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*#include "Dos.h"*/
 #include "graph.h"
diff --git a/engines/avalanche/closing.cpp b/engines/avalanche/closing.cpp
index bfed58e..722ff37 100644
--- a/engines/avalanche/closing.cpp
+++ b/engines/avalanche/closing.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/closing.h b/engines/avalanche/closing.h
index 97dd37e..3d33cd6 100644
--- a/engines/avalanche/closing.h
+++ b/engines/avalanche/closing.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __closing_h__
 #define __closing_h__
 
diff --git a/engines/avalanche/convert.cpp b/engines/avalanche/convert.cpp
index ca41b36..d350f23 100644
--- a/engines/avalanche/convert.cpp
+++ b/engines/avalanche/convert.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 
diff --git a/engines/avalanche/convmous.cpp b/engines/avalanche/convmous.cpp
index b5efcba..53147ca 100644
--- a/engines/avalanche/convmous.cpp
+++ b/engines/avalanche/convmous.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Binu.h"*/
diff --git a/engines/avalanche/credits.cpp b/engines/avalanche/credits.cpp
index d37849b..6d33127 100644
--- a/engines/avalanche/credits.cpp
+++ b/engines/avalanche/credits.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/displtxt.cpp b/engines/avalanche/displtxt.cpp
index 376c346..be06790 100644
--- a/engines/avalanche/displtxt.cpp
+++ b/engines/avalanche/displtxt.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*#include "Crt.h"*/
 
diff --git a/engines/avalanche/dropdown.cpp b/engines/avalanche/dropdown.cpp
index 9319408..c88d06a 100644
--- a/engines/avalanche/dropdown.cpp
+++ b/engines/avalanche/dropdown.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/dropdown.h b/engines/avalanche/dropdown.h
index 9d32fb9..ac22571 100644
--- a/engines/avalanche/dropdown.h
+++ b/engines/avalanche/dropdown.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __dropdown_h__
 #define __dropdown_h__
 
diff --git a/engines/avalanche/dwidth.cpp b/engines/avalanche/dwidth.cpp
index aa0fd75..67dbdc7 100644
--- a/engines/avalanche/dwidth.cpp
+++ b/engines/avalanche/dwidth.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 
diff --git a/engines/avalanche/edhead.cpp b/engines/avalanche/edhead.cpp
index c06d2b1..9907281 100644
--- a/engines/avalanche/edhead.cpp
+++ b/engines/avalanche/edhead.cpp
@@ -1,6 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 const char months[] = "JanFebMarAprMayJunJulAugSepOctNovDec";
 const string ednaid = string("TT")+'\261'+'\36'+'\1'+'\113'+'\261'+'\231'+'\261';
diff --git a/engines/avalanche/edna.cpp b/engines/avalanche/edna.cpp
index d700a85..03d9c23 100644
--- a/engines/avalanche/edna.cpp
+++ b/engines/avalanche/edna.cpp
@@ -1,4 +1,29 @@
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*$M 10000,0,1000*/ /*$V-*/
 
diff --git a/engines/avalanche/enhanced.cpp b/engines/avalanche/enhanced.cpp
index 34a46ff..634ad63 100644
--- a/engines/avalanche/enhanced.cpp
+++ b/engines/avalanche/enhanced.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #define __enhanced_implementation__
 
diff --git a/engines/avalanche/enhanced.h b/engines/avalanche/enhanced.h
index a028648..c7031a2 100644
--- a/engines/avalanche/enhanced.h
+++ b/engines/avalanche/enhanced.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __enhanced_h__
 #define __enhanced_h__
 
diff --git a/engines/avalanche/enid.cpp b/engines/avalanche/enid.cpp
index fb2577a..e6d9106 100644
--- a/engines/avalanche/enid.cpp
+++ b/engines/avalanche/enid.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/enid.h b/engines/avalanche/enid.h
index abf20a2..ce9f5fd 100644
--- a/engines/avalanche/enid.h
+++ b/engines/avalanche/enid.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __enid_h__
 #define __enid_h__
 
diff --git a/engines/avalanche/filer.cpp b/engines/avalanche/filer.cpp
index 4ae92c3..5fbc5b3 100644
--- a/engines/avalanche/filer.cpp
+++ b/engines/avalanche/filer.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Dos.h"*/
diff --git a/engines/avalanche/fileunit.cpp b/engines/avalanche/fileunit.cpp
index d9de210..26ab496 100644
--- a/engines/avalanche/fileunit.cpp
+++ b/engines/avalanche/fileunit.cpp
@@ -1,4 +1,29 @@
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #define __fileunit_implementation__
                /* v:filer.pas - "avvyfiler" - in unit form. */
diff --git a/engines/avalanche/fileunit.h b/engines/avalanche/fileunit.h
index 08f9262..ce7d07a 100644
--- a/engines/avalanche/fileunit.h
+++ b/engines/avalanche/fileunit.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __fileunit_h__
 #define __fileunit_h__
 
diff --git a/engines/avalanche/filing.cpp b/engines/avalanche/filing.cpp
index 841163f..a272107 100644
--- a/engines/avalanche/filing.cpp
+++ b/engines/avalanche/filing.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/folktemp.cpp b/engines/avalanche/folktemp.cpp
index 47d5d58..6d9fe75 100644
--- a/engines/avalanche/folktemp.cpp
+++ b/engines/avalanche/folktemp.cpp
@@ -1,6 +1,31 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
-                  /* Get 'em back! */
+/* Get 'em back! */
 #include "graph.h"
 
 
diff --git a/engines/avalanche/fontslid.cpp b/engines/avalanche/fontslid.cpp
index 31154aa..0d2a412 100644
--- a/engines/avalanche/fontslid.cpp
+++ b/engines/avalanche/fontslid.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*#include "Crt.h"*/
 
diff --git a/engines/avalanche/frere.cpp b/engines/avalanche/frere.cpp
index 5f1b517..574fc8d 100644
--- a/engines/avalanche/frere.cpp
+++ b/engines/avalanche/frere.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*#include "Crt.h"*/
 
diff --git a/engines/avalanche/g-room.cpp b/engines/avalanche/g-room.cpp
index 386a16c..b8dab28 100644
--- a/engines/avalanche/g-room.cpp
+++ b/engines/avalanche/g-room.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/golden.cpp b/engines/avalanche/golden.cpp
index 3643f43..e5ad0d6 100644
--- a/engines/avalanche/golden.cpp
+++ b/engines/avalanche/golden.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*$I c:\sleep5\DSMI.INC*/ #include "graph.h"
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/gyro.cpp b/engines/avalanche/gyro.cpp
index 0e05d77..f4f82bb 100644
--- a/engines/avalanche/gyro.cpp
+++ b/engines/avalanche/gyro.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/gyro.h b/engines/avalanche/gyro.h
index 8a1fdb5..22b8552 100644
--- a/engines/avalanche/gyro.h
+++ b/engines/avalanche/gyro.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __gyro_h__
 #define __gyro_h__
 
diff --git a/engines/avalanche/help.cpp b/engines/avalanche/help.cpp
index 804ded4..c53e4d8 100644
--- a/engines/avalanche/help.cpp
+++ b/engines/avalanche/help.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Rodent.h"*/
diff --git a/engines/avalanche/help2.cpp b/engines/avalanche/help2.cpp
index 148f578..fe9cbec 100644
--- a/engines/avalanche/help2.cpp
+++ b/engines/avalanche/help2.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/helpbak.cpp b/engines/avalanche/helpbak.cpp
index 367fd20..1a7138b 100644
--- a/engines/avalanche/helpbak.cpp
+++ b/engines/avalanche/helpbak.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/helpbak.h b/engines/avalanche/helpbak.h
index 12a7869..3d8f5d8 100644
--- a/engines/avalanche/helpbak.h
+++ b/engines/avalanche/helpbak.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __helpbak_h__
 #define __helpbak_h__
 
diff --git a/engines/avalanche/helper.cpp b/engines/avalanche/helper.cpp
index 0708413..ad489a8 100644
--- a/engines/avalanche/helper.cpp
+++ b/engines/avalanche/helper.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/helper.h b/engines/avalanche/helper.h
index 9c1c43c..22c6b06 100644
--- a/engines/avalanche/helper.h
+++ b/engines/avalanche/helper.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __helper_h__
 #define __helper_h__
 
diff --git a/engines/avalanche/hibits.cpp b/engines/avalanche/hibits.cpp
index c6a80cb..dc3d0ab 100644
--- a/engines/avalanche/hibits.cpp
+++ b/engines/avalanche/hibits.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 file<char> inf,outf;
 char x;
diff --git a/engines/avalanche/highs.cpp b/engines/avalanche/highs.cpp
index 38d929e..419eb38 100644
--- a/engines/avalanche/highs.cpp
+++ b/engines/avalanche/highs.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/highs.h b/engines/avalanche/highs.h
index 3d6eb65..f147c05 100644
--- a/engines/avalanche/highs.h
+++ b/engines/avalanche/highs.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __highs_h__
 #define __highs_h__
 
diff --git a/engines/avalanche/hiz.cpp b/engines/avalanche/hiz.cpp
index d9508b5..cb0a627 100644
--- a/engines/avalanche/hiz.cpp
+++ b/engines/avalanche/hiz.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*$M 6000,600,600*/
 /*$V-,I-,R-,F+*/ /* Do not change these directives. */
diff --git a/engines/avalanche/incline.cpp b/engines/avalanche/incline.cpp
index 8cc8170..f6d7926 100644
--- a/engines/avalanche/incline.cpp
+++ b/engines/avalanche/incline.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/incline.h b/engines/avalanche/incline.h
index 4b252a1..799ad79 100644
--- a/engines/avalanche/incline.h
+++ b/engines/avalanche/incline.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __incline_h__
 #define __incline_h__
 
diff --git a/engines/avalanche/initxf.cpp b/engines/avalanche/initxf.cpp
index a485c1b..342f3ef 100644
--- a/engines/avalanche/initxf.cpp
+++ b/engines/avalanche/initxf.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*#include "Crt.h"*/
 
diff --git a/engines/avalanche/inputtes.cpp b/engines/avalanche/inputtes.cpp
index 7d95ff9..4400fa5 100644
--- a/engines/avalanche/inputtes.cpp
+++ b/engines/avalanche/inputtes.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/intro.cpp b/engines/avalanche/intro.cpp
index 54cd3e6..854db43 100644
--- a/engines/avalanche/intro.cpp
+++ b/engines/avalanche/intro.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*$I c:\sleep5\DSMI.INC*/
 /*#include "Dos.h"*/
diff --git a/engines/avalanche/ints.cpp b/engines/avalanche/ints.cpp
index acb607c..0d96688 100644
--- a/engines/avalanche/ints.cpp
+++ b/engines/avalanche/ints.cpp
@@ -1,6 +1,31 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
-              /* Avalot interrupt handler */
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
+/* Avalot interrupt handler */
 /*#include "Dos.h"*/
 
 /*$F+*/
diff --git a/engines/avalanche/joysetup.cpp b/engines/avalanche/joysetup.cpp
index 7d22a50..4326ac8 100644
--- a/engines/avalanche/joysetup.cpp
+++ b/engines/avalanche/joysetup.cpp
@@ -1,6 +1,31 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
-                       /* Avalot joystick setup routines. To be incorporated
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
+/* Avalot joystick setup routines. To be incorporated
                          into Setup2 whenever I get a chance. */
 /*#include "Joystick.h"*/
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/joystick.cpp b/engines/avalanche/joystick.cpp
index c3ab14a..b18fdd0 100644
--- a/engines/avalanche/joystick.cpp
+++ b/engines/avalanche/joystick.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #define __joystick_implementation__
 
diff --git a/engines/avalanche/joystick.h b/engines/avalanche/joystick.h
index 0a3147e..8a1bcf1 100644
--- a/engines/avalanche/joystick.h
+++ b/engines/avalanche/joystick.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __joystick_h__
 #define __joystick_h__
 
diff --git a/engines/avalanche/loading.cpp b/engines/avalanche/loading.cpp
index 9bc4a0c..a53e3ed 100644
--- a/engines/avalanche/loading.cpp
+++ b/engines/avalanche/loading.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 
diff --git a/engines/avalanche/logger.cpp b/engines/avalanche/logger.cpp
index b95e450..4d14e3c 100644
--- a/engines/avalanche/logger.cpp
+++ b/engines/avalanche/logger.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/logger.h b/engines/avalanche/logger.h
index 016bfb6..b068f20 100644
--- a/engines/avalanche/logger.h
+++ b/engines/avalanche/logger.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __logger_h__
 #define __logger_h__
 
diff --git a/engines/avalanche/lucerna.cpp b/engines/avalanche/lucerna.cpp
index 777e9bd..9ef67fd 100644
--- a/engines/avalanche/lucerna.cpp
+++ b/engines/avalanche/lucerna.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/lucerna.h b/engines/avalanche/lucerna.h
index a602f8c..f40364a 100644
--- a/engines/avalanche/lucerna.h
+++ b/engines/avalanche/lucerna.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __lucerna_h__
 #define __lucerna_h__
 
diff --git a/engines/avalanche/magic2.cpp b/engines/avalanche/magic2.cpp
index b7e9d12..e1729f7 100644
--- a/engines/avalanche/magic2.cpp
+++ b/engines/avalanche/magic2.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 
diff --git a/engines/avalanche/magidraw.cpp b/engines/avalanche/magidraw.cpp
index 3c6b35e..139f216 100644
--- a/engines/avalanche/magidraw.cpp
+++ b/engines/avalanche/magidraw.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/magishuf.cpp b/engines/avalanche/magishuf.cpp
index 0f1c494..0fdb829 100644
--- a/engines/avalanche/magishuf.cpp
+++ b/engines/avalanche/magishuf.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*#include "Dos.h"*/
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/make!.cpp b/engines/avalanche/make!.cpp
index 2079547..32d8a6c 100644
--- a/engines/avalanche/make!.cpp
+++ b/engines/avalanche/make!.cpp
@@ -1,6 +1,31 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
-                                 /* Phew! */
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
+/* Phew! */
 #include "graph.h"
 
 /*$S-*/
diff --git a/engines/avalanche/makeregi.cpp b/engines/avalanche/makeregi.cpp
index 2e927c8..89b66d7 100644
--- a/engines/avalanche/makeregi.cpp
+++ b/engines/avalanche/makeregi.cpp
@@ -1,6 +1,31 @@
-
-
-                       /* regname's name starts at $7D1 (2001). */
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
+/* regname's name starts at $7D1 (2001). */
 
 const array<1,56,char> padding = 
 "For all the Etruscan armies were ranged beneath his eye";
diff --git a/engines/avalanche/makesez.cpp b/engines/avalanche/makesez.cpp
index c264dc1..cfb9974 100644
--- a/engines/avalanche/makesez.cpp
+++ b/engines/avalanche/makesez.cpp
@@ -1,6 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 struct sezheader {
              array<1,2,char> initials;     /* should be "TT" */
diff --git a/engines/avalanche/makevmou.cpp b/engines/avalanche/makevmou.cpp
index a5f3e25..7d3c5f3 100644
--- a/engines/avalanche/makevmou.cpp
+++ b/engines/avalanche/makevmou.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Squeak.h"*/
diff --git a/engines/avalanche/menuxf.cpp b/engines/avalanche/menuxf.cpp
index 6a5342e..be0920e 100644
--- a/engines/avalanche/menuxf.cpp
+++ b/engines/avalanche/menuxf.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 
diff --git a/engines/avalanche/minstran.cpp b/engines/avalanche/minstran.cpp
index 29b3da7..d404c60 100644
--- a/engines/avalanche/minstran.cpp
+++ b/engines/avalanche/minstran.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 
diff --git a/engines/avalanche/newsprit.cpp b/engines/avalanche/newsprit.cpp
index 5f21ecd..095fc40 100644
--- a/engines/avalanche/newsprit.cpp
+++ b/engines/avalanche/newsprit.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/nim.cpp b/engines/avalanche/nim.cpp
index 7dab81b..a81dfc6 100644
--- a/engines/avalanche/nim.cpp
+++ b/engines/avalanche/nim.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/nimdraw.cpp b/engines/avalanche/nimdraw.cpp
index 21618d6..45b1c68 100644
--- a/engines/avalanche/nimdraw.cpp
+++ b/engines/avalanche/nimdraw.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 
diff --git a/engines/avalanche/nimunit.cpp b/engines/avalanche/nimunit.cpp
index 4aae41b..e2d5f6f 100644
--- a/engines/avalanche/nimunit.cpp
+++ b/engines/avalanche/nimunit.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/nimunit.h b/engines/avalanche/nimunit.h
index 5e3386d..4b5f79b 100644
--- a/engines/avalanche/nimunit.h
+++ b/engines/avalanche/nimunit.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __nimunit_h__
 #define __nimunit_h__
 
diff --git a/engines/avalanche/oldfiler.cpp b/engines/avalanche/oldfiler.cpp
index c917060..f802026 100644
--- a/engines/avalanche/oldfiler.cpp
+++ b/engines/avalanche/oldfiler.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*#include "Crt.h"*/
 #include "graph.h"
diff --git a/engines/avalanche/oldhighs.cpp b/engines/avalanche/oldhighs.cpp
index 4286ee2..5fa205c 100644
--- a/engines/avalanche/oldhighs.cpp
+++ b/engines/avalanche/oldhighs.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/oldincln.cpp b/engines/avalanche/oldincln.cpp
index 6dd38b6..c627407 100644
--- a/engines/avalanche/oldincln.cpp
+++ b/engines/avalanche/oldincln.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/oldincln.h b/engines/avalanche/oldincln.h
index a0db659..9590d66 100644
--- a/engines/avalanche/oldincln.h
+++ b/engines/avalanche/oldincln.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __oldincln_h__
 #define __oldincln_h__
 
diff --git a/engines/avalanche/oldtrip.cpp b/engines/avalanche/oldtrip.cpp
index 1dddecb..e7df00f 100644
--- a/engines/avalanche/oldtrip.cpp
+++ b/engines/avalanche/oldtrip.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/oldtrip.h b/engines/avalanche/oldtrip.h
index dc36efd..7a5e402 100644
--- a/engines/avalanche/oldtrip.h
+++ b/engines/avalanche/oldtrip.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __oldtrip_h__
 #define __oldtrip_h__
 
diff --git a/engines/avalanche/omtest.cpp b/engines/avalanche/omtest.cpp
index a683bf2..0209619 100644
--- a/engines/avalanche/omtest.cpp
+++ b/engines/avalanche/omtest.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Oopmenu.h"*/
diff --git a/engines/avalanche/oopmenu.cpp b/engines/avalanche/oopmenu.cpp
index 641b9ba..9f8445b 100644
--- a/engines/avalanche/oopmenu.cpp
+++ b/engines/avalanche/oopmenu.cpp
@@ -1,4 +1,29 @@
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #define __oopmenu_implementation__
 
diff --git a/engines/avalanche/oopmenu.h b/engines/avalanche/oopmenu.h
index ee928e2..4ac4efb 100644
--- a/engines/avalanche/oopmenu.h
+++ b/engines/avalanche/oopmenu.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __oopmenu_h__
 #define __oopmenu_h__
 
diff --git a/engines/avalanche/overlap.cpp b/engines/avalanche/overlap.cpp
index b39b5ba..d68a292 100644
--- a/engines/avalanche/overlap.cpp
+++ b/engines/avalanche/overlap.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/overscro.cpp b/engines/avalanche/overscro.cpp
index e4a2fc9..307b9e2 100644
--- a/engines/avalanche/overscro.cpp
+++ b/engines/avalanche/overscro.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 
diff --git a/engines/avalanche/particle.cpp b/engines/avalanche/particle.cpp
index 30f0cd3..ef1141e 100644
--- a/engines/avalanche/particle.cpp
+++ b/engines/avalanche/particle.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/pictemp.cpp b/engines/avalanche/pictemp.cpp
index cc5386d..c2a05ae 100644
--- a/engines/avalanche/pictemp.cpp
+++ b/engines/avalanche/pictemp.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 
diff --git a/engines/avalanche/pictemp2.cpp b/engines/avalanche/pictemp2.cpp
index d396c67..39087b1 100644
--- a/engines/avalanche/pictemp2.cpp
+++ b/engines/avalanche/pictemp2.cpp
@@ -1,6 +1,31 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
-                  /* Get 'em back! */
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
+/* Get 'em back! */
 #include "graph.h"
 
 
diff --git a/engines/avalanche/pingo.cpp b/engines/avalanche/pingo.cpp
index 5a98ba3..6b0f490 100644
--- a/engines/avalanche/pingo.cpp
+++ b/engines/avalanche/pingo.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/pingo.h b/engines/avalanche/pingo.h
index fdb49b7..71af98e 100644
--- a/engines/avalanche/pingo.h
+++ b/engines/avalanche/pingo.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __pingo_h__
 #define __pingo_h__
 
diff --git a/engines/avalanche/plottest.cpp b/engines/avalanche/plottest.cpp
index b9c7fc7..799f1f1 100644
--- a/engines/avalanche/plottest.cpp
+++ b/engines/avalanche/plottest.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 
diff --git a/engines/avalanche/preview1.cpp b/engines/avalanche/preview1.cpp
index bd5e4d4..f76486d 100644
--- a/engines/avalanche/preview1.cpp
+++ b/engines/avalanche/preview1.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/qintro.cpp b/engines/avalanche/qintro.cpp
index b727033..b3e2eb6 100644
--- a/engines/avalanche/qintro.cpp
+++ b/engines/avalanche/qintro.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*#include "Dos.h"*/
 #include "graph.h"
diff --git a/engines/avalanche/qstars.cpp b/engines/avalanche/qstars.cpp
index d6877ae..2ed399d 100644
--- a/engines/avalanche/qstars.cpp
+++ b/engines/avalanche/qstars.cpp
@@ -1,6 +1,31 @@
-
-
-               /* Demonstration of the Bigo II system. */
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
+/* Demonstration of the Bigo II system. */
 #include "graph.h"
 /*#include "Crt.h"*/
 /*#include "Rodent.h"*/
diff --git a/engines/avalanche/rawupd.cpp b/engines/avalanche/rawupd.cpp
index d37a113..6d8a300 100644
--- a/engines/avalanche/rawupd.cpp
+++ b/engines/avalanche/rawupd.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*#include "Dos.h"*/
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/readsez.cpp b/engines/avalanche/readsez.cpp
index 9937a46..76cfc77 100644
--- a/engines/avalanche/readsez.cpp
+++ b/engines/avalanche/readsez.cpp
@@ -1,6 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 struct markertype {
               word length;
diff --git a/engines/avalanche/reginam.cpp b/engines/avalanche/reginam.cpp
index 65bd0b5..7a2cbac 100644
--- a/engines/avalanche/reginam.cpp
+++ b/engines/avalanche/reginam.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 const array<1,36,char> letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
 varying_string<30> name;
diff --git a/engines/avalanche/sackb1.cpp b/engines/avalanche/sackb1.cpp
index b84788a..cc11935 100644
--- a/engines/avalanche/sackb1.cpp
+++ b/engines/avalanche/sackb1.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/sackb1.h b/engines/avalanche/sackb1.h
index b671da2..e226946 100644
--- a/engines/avalanche/sackb1.h
+++ b/engines/avalanche/sackb1.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __sackb1_h__
 #define __sackb1_h__
 
diff --git a/engines/avalanche/sackb3.cpp b/engines/avalanche/sackb3.cpp
index 4d70bf6..60a259c 100644
--- a/engines/avalanche/sackb3.cpp
+++ b/engines/avalanche/sackb3.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*$M 16384,0,0*/
 
diff --git a/engines/avalanche/sackblas.cpp b/engines/avalanche/sackblas.cpp
index e69de29..e3261d7 100644
--- a/engines/avalanche/sackblas.cpp
+++ b/engines/avalanche/sackblas.cpp
@@ -0,0 +1,27 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
diff --git a/engines/avalanche/saving.cpp b/engines/avalanche/saving.cpp
index 962495f..fce157e 100644
--- a/engines/avalanche/saving.cpp
+++ b/engines/avalanche/saving.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 
diff --git a/engines/avalanche/scr_1.cpp b/engines/avalanche/scr_1.cpp
index 258ca6b..5a9d55d 100644
--- a/engines/avalanche/scr_1.cpp
+++ b/engines/avalanche/scr_1.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*#include "Crt.h"*/
 
diff --git a/engines/avalanche/scr_2.cpp b/engines/avalanche/scr_2.cpp
index 55eba41..2d5a78c 100644
--- a/engines/avalanche/scr_2.cpp
+++ b/engines/avalanche/scr_2.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*#include "Crt.h"*/
 
diff --git a/engines/avalanche/scr_3.cpp b/engines/avalanche/scr_3.cpp
index 96c9d9e..0e4ff0d 100644
--- a/engines/avalanche/scr_3.cpp
+++ b/engines/avalanche/scr_3.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*#include "Crt.h"*/
 
diff --git a/engines/avalanche/scr_4.cpp b/engines/avalanche/scr_4.cpp
index 183104e..44099e1 100644
--- a/engines/avalanche/scr_4.cpp
+++ b/engines/avalanche/scr_4.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*#include "Crt.h"*/
 
diff --git a/engines/avalanche/scr_5.cpp b/engines/avalanche/scr_5.cpp
index ab2359f..8268631 100644
--- a/engines/avalanche/scr_5.cpp
+++ b/engines/avalanche/scr_5.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*#include "Crt.h"*/
 
diff --git a/engines/avalanche/scr_9.cpp b/engines/avalanche/scr_9.cpp
index 6d46fac..2dac08c 100644
--- a/engines/avalanche/scr_9.cpp
+++ b/engines/avalanche/scr_9.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*#include "Crt.h"*/
 
diff --git a/engines/avalanche/scrolls.cpp b/engines/avalanche/scrolls.cpp
index 4f02f06..7bf6c6d 100644
--- a/engines/avalanche/scrolls.cpp
+++ b/engines/avalanche/scrolls.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/scrolls.h b/engines/avalanche/scrolls.h
index d71ec5d..d20d361 100644
--- a/engines/avalanche/scrolls.h
+++ b/engines/avalanche/scrolls.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __scrolls_h__
 #define __scrolls_h__
 
diff --git a/engines/avalanche/sequence.cpp b/engines/avalanche/sequence.cpp
index fccb01b..243caf4 100644
--- a/engines/avalanche/sequence.cpp
+++ b/engines/avalanche/sequence.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/sequence.h b/engines/avalanche/sequence.h
index a6c59a6..86d2d89 100644
--- a/engines/avalanche/sequence.h
+++ b/engines/avalanche/sequence.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __sequence_h__
 #define __sequence_h__
 
diff --git a/engines/avalanche/setup.cpp b/engines/avalanche/setup.cpp
index 32fee35..1416a51 100644
--- a/engines/avalanche/setup.cpp
+++ b/engines/avalanche/setup.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*#include "Crt.h"*/
 /*#include "Tommys.h"*/
diff --git a/engines/avalanche/seu.cpp b/engines/avalanche/seu.cpp
index f1729f2..9e8f4aa 100644
--- a/engines/avalanche/seu.cpp
+++ b/engines/avalanche/seu.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
-
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Dos.h"*/
diff --git a/engines/avalanche/seu_avvy.cpp b/engines/avalanche/seu_avvy.cpp
index c9c30f8..206c844 100644
--- a/engines/avalanche/seu_avvy.cpp
+++ b/engines/avalanche/seu_avvy.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/sez.cpp b/engines/avalanche/sez.cpp
index e69de29..e3261d7 100644
--- a/engines/avalanche/sez.cpp
+++ b/engines/avalanche/sez.cpp
@@ -0,0 +1,27 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
diff --git a/engines/avalanche/sezedit.cpp b/engines/avalanche/sezedit.cpp
index 5db639c..d9f0e48 100644
--- a/engines/avalanche/sezedit.cpp
+++ b/engines/avalanche/sezedit.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*$M 65520,0,655360*/
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/sezunit.cpp b/engines/avalanche/sezunit.cpp
index 1f15cf1..c98e6f8 100644
--- a/engines/avalanche/sezunit.cpp
+++ b/engines/avalanche/sezunit.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #define __sezunit_implementation__
 
diff --git a/engines/avalanche/sezunit.h b/engines/avalanche/sezunit.h
index 6b0a99e..76feb66 100644
--- a/engines/avalanche/sezunit.h
+++ b/engines/avalanche/sezunit.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __sezunit_h__
 #define __sezunit_h__
 
diff --git a/engines/avalanche/sezxfr.cpp b/engines/avalanche/sezxfr.cpp
index 37c9cf0..7ae6cec 100644
--- a/engines/avalanche/sezxfr.cpp
+++ b/engines/avalanche/sezxfr.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*#include "Crt.h"*/
  /*$V-*/
diff --git a/engines/avalanche/shell1.cpp b/engines/avalanche/shell1.cpp
index 75296bf..5d6e2c9 100644
--- a/engines/avalanche/shell1.cpp
+++ b/engines/avalanche/shell1.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*$M $800,0,0*/
 /*#include "Dos.h"*/
diff --git a/engines/avalanche/shell2.cpp b/engines/avalanche/shell2.cpp
index b0ef13a..cd6fec2 100644
--- a/engines/avalanche/shell2.cpp
+++ b/engines/avalanche/shell2.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*#include "Dos.h"*/
 #include "graph.h"
diff --git a/engines/avalanche/slope.cpp b/engines/avalanche/slope.cpp
index c566246..83bb1d7 100644
--- a/engines/avalanche/slope.cpp
+++ b/engines/avalanche/slope.cpp
@@ -1,6 +1,29 @@
-
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 struct joysetup {
             word xmid,ymid,xmin,ymin,xmax,ymax;
diff --git a/engines/avalanche/spread.cpp b/engines/avalanche/spread.cpp
index 5e52228..3ee7134 100644
--- a/engines/avalanche/spread.cpp
+++ b/engines/avalanche/spread.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/spread2.cpp b/engines/avalanche/spread2.cpp
index 267bf8e..5a42427 100644
--- a/engines/avalanche/spread2.cpp
+++ b/engines/avalanche/spread2.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/squish.cpp b/engines/avalanche/squish.cpp
index 6ff3b90..d9077ed 100644
--- a/engines/avalanche/squish.cpp
+++ b/engines/avalanche/squish.cpp
@@ -1,6 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
-
-
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /* This is the first version. Thanks to Pib. */
 
diff --git a/engines/avalanche/ss_blank.cpp b/engines/avalanche/ss_blank.cpp
index f8bc96b..7e97654 100644
--- a/engines/avalanche/ss_blank.cpp
+++ b/engines/avalanche/ss_blank.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*#include "Dos.h"*/
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/ss_clock.cpp b/engines/avalanche/ss_clock.cpp
index e169f37..ae466bc 100644
--- a/engines/avalanche/ss_clock.cpp
+++ b/engines/avalanche/ss_clock.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*#include "Dos.h"*/
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/stars.cpp b/engines/avalanche/stars.cpp
index 5181241..d6bc8ef 100644
--- a/engines/avalanche/stars.cpp
+++ b/engines/avalanche/stars.cpp
@@ -1,6 +1,31 @@
-
-
-               /* Demonstration of the Bigo II system. */
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
+/* Demonstration of the Bigo II system. */
 /* $I c:\sleep5\DSMI.INC*/
 #include "graph.h"
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/status.cpp b/engines/avalanche/status.cpp
index 761f11c..c8931e6 100644
--- a/engines/avalanche/status.cpp
+++ b/engines/avalanche/status.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 
diff --git a/engines/avalanche/sticks.cpp b/engines/avalanche/sticks.cpp
index b47b6fb..0e18be0 100644
--- a/engines/avalanche/sticks.cpp
+++ b/engines/avalanche/sticks.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/sticks.h b/engines/avalanche/sticks.h
index 5a54cd4..24f59c4 100644
--- a/engines/avalanche/sticks.h
+++ b/engines/avalanche/sticks.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __sticks_h__
 #define __sticks_h__
 
diff --git a/engines/avalanche/sunrise.cpp b/engines/avalanche/sunrise.cpp
index 4a0e3ac..d512892 100644
--- a/engines/avalanche/sunrise.cpp
+++ b/engines/avalanche/sunrise.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/tempo.cpp b/engines/avalanche/tempo.cpp
index b8887ef..908e762 100644
--- a/engines/avalanche/tempo.cpp
+++ b/engines/avalanche/tempo.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 
diff --git a/engines/avalanche/test.cpp b/engines/avalanche/test.cpp
index 1ac5671..ead8a37 100644
--- a/engines/avalanche/test.cpp
+++ b/engines/avalanche/test.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*$M 2048,0,0*/
 /*#include "Dos.h"*/
diff --git a/engines/avalanche/test2.cpp b/engines/avalanche/test2.cpp
index e5b2347..0001ac0 100644
--- a/engines/avalanche/test2.cpp
+++ b/engines/avalanche/test2.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*#include "Dos.h"*/
 
diff --git a/engines/avalanche/testblit.cpp b/engines/avalanche/testblit.cpp
index 2949f30..4154dcb 100644
--- a/engines/avalanche/testblit.cpp
+++ b/engines/avalanche/testblit.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 
diff --git a/engines/avalanche/testcard.cpp b/engines/avalanche/testcard.cpp
index e1e8696..3a3fba5 100644
--- a/engines/avalanche/testcard.cpp
+++ b/engines/avalanche/testcard.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Dos.h"*/
diff --git a/engines/avalanche/testenh.cpp b/engines/avalanche/testenh.cpp
index 34e1d67..b304a57 100644
--- a/engines/avalanche/testenh.cpp
+++ b/engines/avalanche/testenh.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*#include "Enhanced.h"*/
 
diff --git a/engines/avalanche/timeout.cpp b/engines/avalanche/timeout.cpp
index d5b964d..073d415 100644
--- a/engines/avalanche/timeout.cpp
+++ b/engines/avalanche/timeout.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/timeout.h b/engines/avalanche/timeout.h
index 5fa9800..99090dd 100644
--- a/engines/avalanche/timeout.h
+++ b/engines/avalanche/timeout.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __timeout_h__
 #define __timeout_h__
 
diff --git a/engines/avalanche/travel.cpp b/engines/avalanche/travel.cpp
index 6f48f99..4ce11d5 100644
--- a/engines/avalanche/travel.cpp
+++ b/engines/avalanche/travel.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/trip.cpp b/engines/avalanche/trip.cpp
index 58ae537..64b8878 100644
--- a/engines/avalanche/trip.cpp
+++ b/engines/avalanche/trip.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/trip.h b/engines/avalanche/trip.h
index 520e323..abef803 100644
--- a/engines/avalanche/trip.h
+++ b/engines/avalanche/trip.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __trip_h__
 #define __trip_h__
 
diff --git a/engines/avalanche/trip3.cpp b/engines/avalanche/trip3.cpp
index d95eba5..4c04ef4 100644
--- a/engines/avalanche/trip3.cpp
+++ b/engines/avalanche/trip3.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #define __trip3_implementation__
             /* Project Minstrel- Trippancy routines */
diff --git a/engines/avalanche/trip3.h b/engines/avalanche/trip3.h
index ccad153..9318726 100644
--- a/engines/avalanche/trip3.h
+++ b/engines/avalanche/trip3.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __trip3_h__
 #define __trip3_h__
 
diff --git a/engines/avalanche/trip42.cpp b/engines/avalanche/trip42.cpp
index 923e32e..2dee669 100644
--- a/engines/avalanche/trip42.cpp
+++ b/engines/avalanche/trip42.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/trip42.h b/engines/avalanche/trip42.h
index b5e4f13..72b9499 100644
--- a/engines/avalanche/trip42.h
+++ b/engines/avalanche/trip42.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __trip42_h__
 #define __trip42_h__
 
diff --git a/engines/avalanche/trip5.cpp b/engines/avalanche/trip5.cpp
index 721268b..5742bf3 100644
--- a/engines/avalanche/trip5.cpp
+++ b/engines/avalanche/trip5.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/trip5.h b/engines/avalanche/trip5.h
index 9e7b3a3..3811c85 100644
--- a/engines/avalanche/trip5.h
+++ b/engines/avalanche/trip5.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __trip5_h__
 #define __trip5_h__
 
diff --git a/engines/avalanche/trip5tst.cpp b/engines/avalanche/trip5tst.cpp
index c669cc7..5b78efa 100644
--- a/engines/avalanche/trip5tst.cpp
+++ b/engines/avalanche/trip5tst.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
-
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/trip5xf.cpp b/engines/avalanche/trip5xf.cpp
index f6225b4..09a8eac 100644
--- a/engines/avalanche/trip5xf.cpp
+++ b/engines/avalanche/trip5xf.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/tripoop.cpp b/engines/avalanche/tripoop.cpp
index b8db1a7..6ddc12c 100644
--- a/engines/avalanche/tripoop.cpp
+++ b/engines/avalanche/tripoop.cpp
@@ -1,6 +1,31 @@
-
-
-                 /* Trip Oop (Trippancy 4 Andexor */
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
+/* Trip Oop (Trippancy 4 Andexor */
 #include "graph.h"
 /*#include "Crt.h"*/
 
diff --git a/engines/avalanche/ttmenuxf.cpp b/engines/avalanche/ttmenuxf.cpp
index 2d870fa..ad986e1 100644
--- a/engines/avalanche/ttmenuxf.cpp
+++ b/engines/avalanche/ttmenuxf.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Tommys.h"*/
diff --git a/engines/avalanche/unsquish.cpp b/engines/avalanche/unsquish.cpp
index 9183e1b..bf98aeb 100644
--- a/engines/avalanche/unsquish.cpp
+++ b/engines/avalanche/unsquish.cpp
@@ -1,6 +1,31 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
-                            /*$S-*/
+/*$S-*/
 #include "graph.h"
 
 
diff --git a/engines/avalanche/viewdocs.cpp b/engines/avalanche/viewdocs.cpp
index a9e1e6e..52edfe4 100644
--- a/engines/avalanche/viewdocs.cpp
+++ b/engines/avalanche/viewdocs.cpp
@@ -1,6 +1,31 @@
-
-
-                   /*$S-*/
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
+/*$S-*/
 /*#include "dos.h"*/
 /*#include "crt.h"*/
 /*#include "tommys.h"*/
diff --git a/engines/avalanche/visa.cpp b/engines/avalanche/visa.cpp
index 664dca9..dea03b1 100644
--- a/engines/avalanche/visa.cpp
+++ b/engines/avalanche/visa.cpp
@@ -1,4 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
 
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*
   ÛßÜ ÛßÜ ÜßßÜ  ßÛß Ûßß  Üß ßÛß      ÜßÛßÜ  ßÛß ÛÜ  Û ÜÛßß  ßÛß ÛßÜ Ûßß Û
diff --git a/engines/avalanche/visa.h b/engines/avalanche/visa.h
index 8b79d6b..0c695fb 100644
--- a/engines/avalanche/visa.h
+++ b/engines/avalanche/visa.h
@@ -1,3 +1,30 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
 #ifndef __visa_h__
 #define __visa_h__
 
diff --git a/engines/avalanche/visatest.cpp b/engines/avalanche/visatest.cpp
index df856f6..5cbcf64 100644
--- a/engines/avalanche/visatest.cpp
+++ b/engines/avalanche/visatest.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*#include "Crt.h"*/
 
diff --git a/engines/avalanche/waver.cpp b/engines/avalanche/waver.cpp
index e69de29..e3261d7 100644
--- a/engines/avalanche/waver.cpp
+++ b/engines/avalanche/waver.cpp
@@ -0,0 +1,27 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
+
diff --git a/engines/avalanche/xf_gover.cpp b/engines/avalanche/xf_gover.cpp
index 683e6ca..98590e6 100644
--- a/engines/avalanche/xf_gover.cpp
+++ b/engines/avalanche/xf_gover.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 
diff --git a/engines/avalanche/xf_help.cpp b/engines/avalanche/xf_help.cpp
index b0f6844..ec7b1d1 100644
--- a/engines/avalanche/xf_help.cpp
+++ b/engines/avalanche/xf_help.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*#include "Crt.h"*/
 /*#include "Tommys.h"*/
diff --git a/engines/avalanche/xf_visa.cpp b/engines/avalanche/xf_visa.cpp
index 5fe7156..c0b2573 100644
--- a/engines/avalanche/xf_visa.cpp
+++ b/engines/avalanche/xf_visa.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 /*#include "Crt.h"*/
 /*#include "Dos.h"*/
diff --git a/engines/avalanche/xfbutton.cpp b/engines/avalanche/xfbutton.cpp
index 980eff8..197aa96 100644
--- a/engines/avalanche/xfbutton.cpp
+++ b/engines/avalanche/xfbutton.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 
diff --git a/engines/avalanche/xfghost.cpp b/engines/avalanche/xfghost.cpp
index 86996ba..6eeec28 100644
--- a/engines/avalanche/xfghost.cpp
+++ b/engines/avalanche/xfghost.cpp
@@ -1,5 +1,29 @@
-
-
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
+
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
+
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Crt.h"*/
diff --git a/engines/avalanche/zapdraw.cpp b/engines/avalanche/zapdraw.cpp
index 2c4f712..9b13dbb 100644
--- a/engines/avalanche/zapdraw.cpp
+++ b/engines/avalanche/zapdraw.cpp
@@ -1,5 +1,29 @@
+/* ScummVM - Graphic Adventure Engine
+ *
+ * ScummVM is the legal property of its developers, whose names
+ * are too numerous to list here. Please refer to the COPYRIGHT
+ * file distributed with this source distribution.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation; either version 2
+ * of the License, or (at your option) any later version.
 
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * GNU General Public License for more details.
 
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ *
+ */
+
+/*
+ * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
+ * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
+ */
 
 #include "graph.h"
 /*#include "Crt.h"*/


Commit: a3025b8dad7abfe845c57aee3703451c223fc2e6
    https://github.com/scummvm/scummvm/commit/a3025b8dad7abfe845c57aee3703451c223fc2e6
Author: uruk (koppirnyo at gmail.com)
Date: 2013-06-17T06:45:25-07:00

Commit Message:
AVALANCHE: Add namespace.

Changed paths:
    engines/avalanche/1stoff.cpp
    engines/avalanche/access.cpp
    engines/avalanche/access.h
    engines/avalanche/acci.cpp
    engines/avalanche/acci.h
    engines/avalanche/also.cpp
    engines/avalanche/andexor.cpp
    engines/avalanche/andexor2.cpp
    engines/avalanche/andextst.cpp
    engines/avalanche/arch.cpp
    engines/avalanche/arch.h
    engines/avalanche/avalot9.cpp
    engines/avalanche/avbkgrnd.cpp
    engines/avalanche/avmenu.cpp
    engines/avalanche/avvyans.cpp
    engines/avalanche/avvyans2.cpp
    engines/avalanche/avvymonk.cpp
    engines/avalanche/bakchunk.cpp
    engines/avalanche/basher.cpp
    engines/avalanche/basher.h
    engines/avalanche/bootstrp.cpp
    engines/avalanche/cadburys.cpp
    engines/avalanche/cadburys.h
    engines/avalanche/celer.cpp
    engines/avalanche/celer.h
    engines/avalanche/ch_egats.cpp
    engines/avalanche/charmap.cpp
    engines/avalanche/chunker.cpp
    engines/avalanche/chunkxf1.cpp
    engines/avalanche/chunkxf2.cpp
    engines/avalanche/chunkxf3.cpp
    engines/avalanche/chunkxf4.cpp
    engines/avalanche/chunkxf5.cpp
    engines/avalanche/chunkxf6.cpp
    engines/avalanche/chunkxf7.cpp
    engines/avalanche/chunkxf8.cpp
    engines/avalanche/chunkxf9.cpp
    engines/avalanche/chunkxfa.cpp
    engines/avalanche/chunkxfb.cpp
    engines/avalanche/chunkxfc.cpp
    engines/avalanche/chunkxfd.cpp
    engines/avalanche/chunkxfe.cpp
    engines/avalanche/chunkxff.cpp
    engines/avalanche/chunkxfg.cpp
    engines/avalanche/chunkxfh.cpp
    engines/avalanche/chunkxfi.cpp
    engines/avalanche/chunkxfj.cpp
    engines/avalanche/chunkxfk.cpp
    engines/avalanche/chunkxfl.cpp
    engines/avalanche/clock.cpp
    engines/avalanche/closing.cpp
    engines/avalanche/closing.h
    engines/avalanche/convert.cpp
    engines/avalanche/convmous.cpp
    engines/avalanche/credits.cpp
    engines/avalanche/displtxt.cpp
    engines/avalanche/dropdown.cpp
    engines/avalanche/dropdown.h
    engines/avalanche/dwidth.cpp
    engines/avalanche/edhead.cpp
    engines/avalanche/edna.cpp
    engines/avalanche/enhanced.cpp
    engines/avalanche/enhanced.h
    engines/avalanche/enid.cpp
    engines/avalanche/enid.h
    engines/avalanche/filer.cpp
    engines/avalanche/fileunit.cpp
    engines/avalanche/fileunit.h
    engines/avalanche/filing.cpp
    engines/avalanche/folktemp.cpp
    engines/avalanche/fontslid.cpp
    engines/avalanche/frere.cpp
    engines/avalanche/g-room.cpp
    engines/avalanche/golden.cpp
    engines/avalanche/gyro.cpp
    engines/avalanche/gyro.h
    engines/avalanche/help.cpp
    engines/avalanche/help2.cpp
    engines/avalanche/helpbak.cpp
    engines/avalanche/helpbak.h
    engines/avalanche/helper.cpp
    engines/avalanche/helper.h
    engines/avalanche/hibits.cpp
    engines/avalanche/highs.cpp
    engines/avalanche/highs.h
    engines/avalanche/hiz.cpp
    engines/avalanche/incline.cpp
    engines/avalanche/initxf.cpp
    engines/avalanche/inputtes.cpp
    engines/avalanche/intro.cpp
    engines/avalanche/ints.cpp
    engines/avalanche/joysetup.cpp
    engines/avalanche/joystick.cpp
    engines/avalanche/joystick.h
    engines/avalanche/loading.cpp
    engines/avalanche/logger.cpp
    engines/avalanche/logger.h
    engines/avalanche/lucerna.cpp
    engines/avalanche/lucerna.h
    engines/avalanche/magic2.cpp
    engines/avalanche/magidraw.cpp
    engines/avalanche/magishuf.cpp
    engines/avalanche/make!.cpp
    engines/avalanche/makeregi.cpp
    engines/avalanche/makesez.cpp
    engines/avalanche/makevmou.cpp
    engines/avalanche/menuxf.cpp
    engines/avalanche/minstran.cpp
    engines/avalanche/newsprit.cpp
    engines/avalanche/nim.cpp
    engines/avalanche/nimdraw.cpp
    engines/avalanche/nimunit.cpp
    engines/avalanche/nimunit.h
    engines/avalanche/oldfiler.cpp
    engines/avalanche/oldhighs.cpp
    engines/avalanche/oldincln.cpp
    engines/avalanche/oldtrip.cpp
    engines/avalanche/oldtrip.h
    engines/avalanche/omtest.cpp
    engines/avalanche/oopmenu.cpp
    engines/avalanche/oopmenu.h
    engines/avalanche/overlap.cpp
    engines/avalanche/overscro.cpp
    engines/avalanche/particle.cpp
    engines/avalanche/pictemp.cpp
    engines/avalanche/pictemp2.cpp
    engines/avalanche/pingo.cpp
    engines/avalanche/pingo.h
    engines/avalanche/plottest.cpp
    engines/avalanche/preview1.cpp
    engines/avalanche/qintro.cpp
    engines/avalanche/qstars.cpp
    engines/avalanche/rawupd.cpp
    engines/avalanche/readsez.cpp
    engines/avalanche/reginam.cpp
    engines/avalanche/sackb1.cpp
    engines/avalanche/sackb1.h
    engines/avalanche/sackb3.cpp
    engines/avalanche/sackblas.cpp
    engines/avalanche/saving.cpp
    engines/avalanche/scr_1.cpp
    engines/avalanche/scr_2.cpp
    engines/avalanche/scr_3.cpp
    engines/avalanche/scr_4.cpp
    engines/avalanche/scr_5.cpp
    engines/avalanche/scr_9.cpp
    engines/avalanche/scrolls.cpp
    engines/avalanche/scrolls.h
    engines/avalanche/sequence.cpp
    engines/avalanche/sequence.h
    engines/avalanche/setup.cpp
    engines/avalanche/seu.cpp
    engines/avalanche/seu_avvy.cpp
    engines/avalanche/sezedit.cpp
    engines/avalanche/sezunit.cpp
    engines/avalanche/sezunit.h
    engines/avalanche/sezxfr.cpp
    engines/avalanche/shell1.cpp
    engines/avalanche/shell2.cpp
    engines/avalanche/slope.cpp
    engines/avalanche/spread.cpp
    engines/avalanche/spread2.cpp
    engines/avalanche/squish.cpp
    engines/avalanche/ss_blank.cpp
    engines/avalanche/ss_clock.cpp
    engines/avalanche/stars.cpp
    engines/avalanche/status.cpp
    engines/avalanche/sticks.cpp
    engines/avalanche/sticks.h
    engines/avalanche/sunrise.cpp
    engines/avalanche/tempo.cpp
    engines/avalanche/test.cpp
    engines/avalanche/test2.cpp
    engines/avalanche/testblit.cpp
    engines/avalanche/testcard.cpp
    engines/avalanche/testenh.cpp
    engines/avalanche/timeout.cpp
    engines/avalanche/timeout.h
    engines/avalanche/travel.cpp
    engines/avalanche/trip.cpp
    engines/avalanche/trip.h
    engines/avalanche/trip3.cpp
    engines/avalanche/trip3.h
    engines/avalanche/trip42.cpp
    engines/avalanche/trip42.h
    engines/avalanche/trip5.cpp
    engines/avalanche/trip5.h
    engines/avalanche/trip5tst.cpp
    engines/avalanche/trip5xf.cpp
    engines/avalanche/tripoop.cpp
    engines/avalanche/ttmenuxf.cpp
    engines/avalanche/unsquish.cpp
    engines/avalanche/viewdocs.cpp
    engines/avalanche/visa.cpp
    engines/avalanche/visa.h
    engines/avalanche/visatest.cpp
    engines/avalanche/xf_gover.cpp
    engines/avalanche/xf_help.cpp
    engines/avalanche/xf_visa.cpp
    engines/avalanche/xfbutton.cpp
    engines/avalanche/xfghost.cpp
    engines/avalanche/zapdraw.cpp



diff --git a/engines/avalanche/1stoff.cpp b/engines/avalanche/1stoff.cpp
index 12db75a..0f9e19b 100644
--- a/engines/avalanche/1stoff.cpp
+++ b/engines/avalanche/1stoff.cpp
@@ -28,6 +28,7 @@
 /*#include "Crt.h"*/
 /*#include "Dos.h"*/
 
+namespace Avalanche {
 
 matrix<1,7,1,3,byte> cols;
 byte fv;
@@ -78,4 +79,6 @@ int main(int argc, const char* argv[])
  }
 
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/access.cpp b/engines/avalanche/access.cpp
index a36a3e5..951bc1c 100644
--- a/engines/avalanche/access.cpp
+++ b/engines/avalanche/access.cpp
@@ -44,6 +44,7 @@
 /*#include "Trip5.h"*/
 /*#include "Lucerna.h"*/
 
+namespace Avalanche {
 
 boolean int_say_went_ok;
 
@@ -192,4 +193,4 @@ void talkto(byte whom)
  }
 }
 
-
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/access.h b/engines/avalanche/access.h
index ff2d3af..e985953 100644
--- a/engines/avalanche/access.h
+++ b/engines/avalanche/access.h
@@ -28,9 +28,12 @@
 #ifndef __access_h__
 #define __access_h__
 
+namespace Avalanche {
 
 void dixi(char p, byte n);
 
 void talkto(byte whom);
 
+} // End of namespace Avalanche.
+
 #endif
diff --git a/engines/avalanche/acci.cpp b/engines/avalanche/acci.cpp
index 703785f..f33d7c2 100644
--- a/engines/avalanche/acci.cpp
+++ b/engines/avalanche/acci.cpp
@@ -53,6 +53,7 @@
 /*#include "Helper.h"*/
 /*#include "Sequence.h"*/
 
+namespace Avalanche {
 
 byte fv;
 
@@ -1694,3 +1695,5 @@ static unit_acci_initialize acci_constructor;
 unit_acci_initialize::unit_acci_initialize() {
  weirdword=false;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/acci.h b/engines/avalanche/acci.h
index 7049199..6734f66 100644
--- a/engines/avalanche/acci.h
+++ b/engines/avalanche/acci.h
@@ -28,6 +28,7 @@
 #ifndef __acci_h__
 #define __acci_h__
 
+namespace Avalanche {
 
 /* verb codes */
 const char vb_exam = '\1'; const char vb_open = '\2'; const char vb_pause = '\3'; const char vb_get = '\4'; const char vb_drop = '\5';
@@ -247,4 +248,6 @@ void do_that();
 void verbopt(char n, string& answer, char& anskey);
 void have_a_drink();
 
-#endif
+} // End of namespace Avalanche.
+
+#endif
\ No newline at end of file
diff --git a/engines/avalanche/also.cpp b/engines/avalanche/also.cpp
index 5429331..83dce52 100644
--- a/engines/avalanche/also.cpp
+++ b/engines/avalanche/also.cpp
@@ -31,6 +31,8 @@
 
 /*$R+,V-*/
 
+namespace Avalanche {
+
 typedef matrix<0,255,0,15,byte> fonttype;
 
 class fieldtype {
@@ -1050,3 +1052,5 @@ int main(int argc, const char* argv[])
  alsomenu();
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/andexor.cpp b/engines/avalanche/andexor.cpp
index 1902ecd..df65411 100644
--- a/engines/avalanche/andexor.cpp
+++ b/engines/avalanche/andexor.cpp
@@ -28,6 +28,8 @@
 /* Trippancy IV - original file */
 #include "graph.h"
 
+namespace Avalanche {
+
 const integer taboo = cyan;
 
 struct adxtype {
@@ -144,4 +146,6 @@ int main(int argc, const char* argv[])
  close(f);
  closegraph();
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/andexor2.cpp b/engines/avalanche/andexor2.cpp
index 670a3de..136f719 100644
--- a/engines/avalanche/andexor2.cpp
+++ b/engines/avalanche/andexor2.cpp
@@ -28,6 +28,8 @@
 /* Trippancy IV - original file */
 #include "graph.h"
 
+namespace Avalanche {
+
 const integer taboo = cyan;
 
 struct adxtype {
@@ -155,4 +157,6 @@ int main(int argc, const char* argv[])
  close(f);
  closegraph();
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/andextst.cpp b/engines/avalanche/andextst.cpp
index 3abfbac..2cfe410 100644
--- a/engines/avalanche/andextst.cpp
+++ b/engines/avalanche/andextst.cpp
@@ -27,6 +27,7 @@
 
 #include "graph.h"
 
+namespace Avalanche {
 
 typedef matrix<1,24,0,1,pointer> adxtype;
 
@@ -85,4 +86,6 @@ int main(int argc, const char* argv[])
   anim += 1; if (anim==7)  anim=1;cp=1-cp;
  } while (!false);
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/arch.cpp b/engines/avalanche/arch.cpp
index f488a86..815018d 100644
--- a/engines/avalanche/arch.cpp
+++ b/engines/avalanche/arch.cpp
@@ -41,6 +41,7 @@
 /*#include "Dos.h"*/
 #include "scrolls.h"
 
+namespace Avalanche {
 
 struct ednahead { /* Edna header */
           /* This header starts at byte offset 177 in the .ASG file. */
@@ -144,4 +145,4 @@ void save(string name)
  close(f);
 }
 
-
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/arch.h b/engines/avalanche/arch.h
index 781217a..840ceb4 100644
--- a/engines/avalanche/arch.h
+++ b/engines/avalanche/arch.h
@@ -31,7 +31,10 @@
 
 #include "gyro.h"
 
+namespace Avalanche {
 
 void save(string name);
 
+} // End of namespace Avalanche.
+
 #endif
diff --git a/engines/avalanche/avalot9.cpp b/engines/avalanche/avalot9.cpp
index 8f36226..f793fa5 100644
--- a/engines/avalanche/avalot9.cpp
+++ b/engines/avalanche/avalot9.cpp
@@ -51,6 +51,8 @@
 /*#include "Visa.h"*/
 
 
+namespace Avalanche {
+
 void setup()
 {
  integer gd,gm;
@@ -137,3 +139,5 @@ int main(int argc, const char* argv[])
 }
 
 /*  typein; commanded; last:=current; */
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/avbkgrnd.cpp b/engines/avalanche/avbkgrnd.cpp
index f57b0f4..0ca6b72 100644
--- a/engines/avalanche/avbkgrnd.cpp
+++ b/engines/avalanche/avbkgrnd.cpp
@@ -27,6 +27,9 @@
 
 #include "graph.h"
 
+
+namespace Avalanche {
+
 integer gd,gm;
 int main(int argc, const char* argv[])
 {pio_initialize(argc, argv);
@@ -110,3 +113,5 @@ int main(int argc, const char* argv[])
 */
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/avmenu.cpp b/engines/avalanche/avmenu.cpp
index d7bfac5..31c2692 100644
--- a/engines/avalanche/avmenu.cpp
+++ b/engines/avalanche/avmenu.cpp
@@ -29,6 +29,8 @@
 /*#include "Crt.h"*/
 /*#include "Tommys.h"*/
 
+namespace Avalanche {
+
 typedef matrix<'\0','\377',0,15,byte> fonttype;
 
 fonttype font;
@@ -334,3 +336,5 @@ int main(int argc, const char* argv[])
  closegraph();
  return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/avvyans.cpp b/engines/avalanche/avvyans.cpp
index 4105eaf..fa70ca1 100644
--- a/engines/avalanche/avvyans.cpp
+++ b/engines/avalanche/avvyans.cpp
@@ -28,6 +28,8 @@
 #include "graph.h"
 /*#include "Crt.h"*/
 
+namespace Avalanche {
+
 integer gd,gm;
 untyped_file f;
 array<1,16000,byte> aa;
@@ -105,4 +107,6 @@ int main(int argc, const char* argv[])
   gotoxy(1,1);
   input >> NL;
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/avvyans2.cpp b/engines/avalanche/avvyans2.cpp
index b425b56..b7f96a5 100644
--- a/engines/avalanche/avvyans2.cpp
+++ b/engines/avalanche/avvyans2.cpp
@@ -29,6 +29,8 @@
 /*#include "Crt.h"*/
 /*#include "Ansi.h"*/
 
+namespace Avalanche {
+
 integer gd,gm;
 untyped_file f;
 array<1,16000,byte> aa;
@@ -206,4 +208,6 @@ int main(int argc, const char* argv[])
  output << NL;
  normal;
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/avvymonk.cpp b/engines/avalanche/avvymonk.cpp
index 6267a04..25fc83e 100644
--- a/engines/avalanche/avvymonk.cpp
+++ b/engines/avalanche/avvymonk.cpp
@@ -27,6 +27,8 @@
 
 #include "graph.h"
 
+namespace Avalanche {
+
 integer gd,gm;
 byte z;
 array<1,4,pointer> a;
@@ -93,4 +95,6 @@ int main(int argc, const char* argv[])
  }
  savesc();
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/bakchunk.cpp b/engines/avalanche/bakchunk.cpp
index b005b03..fabda14 100644
--- a/engines/avalanche/bakchunk.cpp
+++ b/engines/avalanche/bakchunk.cpp
@@ -29,6 +29,8 @@
 /*#include "Celer.h"*/
 /*#include "Lucerna.h"*/
 
+namespace Avalanche {
+
 integer gd,gm;
 int main(int argc, const char* argv[])
 {
@@ -49,4 +51,6 @@ int main(int argc, const char* argv[])
  outtextxy(100,50,"Chunk1");
  input >> NL;
  return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/basher.cpp b/engines/avalanche/basher.cpp
index 5210631..b4ceeb3 100644
--- a/engines/avalanche/basher.cpp
+++ b/engines/avalanche/basher.cpp
@@ -54,6 +54,7 @@
 #include "Sticks.h"
 #include "enid.h"
 
+namespace Avalanche {
 
 boolean entering_filename;
 byte left_margin;
@@ -408,3 +409,5 @@ unit_basher_initialize::unit_basher_initialize() {
  #endif
 
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/basher.h b/engines/avalanche/basher.h
index a1996c8..ba26d92 100644
--- a/engines/avalanche/basher.h
+++ b/engines/avalanche/basher.h
@@ -32,6 +32,7 @@
 #include "gyro.h"
 /*#include "Tommys.h"*/
 
+namespace Avalanche {
 
 #ifdef RECORD
 
@@ -64,4 +65,6 @@ EXTERN word count;
   void record_one();
 #endif
 
-#endif
+} // End of namespace Avalanche.
+
+#endif
\ No newline at end of file
diff --git a/engines/avalanche/bootstrp.cpp b/engines/avalanche/bootstrp.cpp
index ff4ab38..9059447 100644
--- a/engines/avalanche/bootstrp.cpp
+++ b/engines/avalanche/bootstrp.cpp
@@ -30,6 +30,8 @@
 
 /*$M 8192,0,$6000, S-*/
 
+namespace Avalanche {
+
 enum elm {normal, musical, elmpoyten, regi, last_elm};
 
 const integer run_shootemup = 1;
@@ -371,3 +373,5 @@ int main(int argc, const char* argv[])
  } while (!false);
  return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/cadburys.cpp b/engines/avalanche/cadburys.cpp
index 21c65ae..8d1e0c3 100644
--- a/engines/avalanche/cadburys.cpp
+++ b/engines/avalanche/cadburys.cpp
@@ -33,7 +33,7 @@
 
 #include "graph.h"
 
-
+namespace Avalanche {
 
 void mgrab(integer x1,integer y1,integer x2,integer y2, word size)
 {
@@ -131,4 +131,4 @@ void grab(integer x1,integer y1,integer x2,integer y2,integer realx,integer real
 /* rectangle(x1,y1,x2,y2);*/
 }
 
-
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/cadburys.h b/engines/avalanche/cadburys.h
index b513510..325bd35 100644
--- a/engines/avalanche/cadburys.h
+++ b/engines/avalanche/cadburys.h
@@ -28,6 +28,7 @@
 #ifndef __cadburys_h__
 #define __cadburys_h__
 
+namespace Avalanche {
 
 const integer arraysize = 12000;
 
@@ -65,4 +66,6 @@ EXTERN untyped_file f;
 void grab(integer x1,integer y1,integer x2,integer y2,integer realx,integer realy, flavourtype flav,
  boolean mem,boolean nat);
 
+} // End of namespace Avalanche.
+
 #endif
diff --git a/engines/avalanche/celer.cpp b/engines/avalanche/celer.cpp
index c456378..1038e6f 100644
--- a/engines/avalanche/celer.cpp
+++ b/engines/avalanche/celer.cpp
@@ -34,7 +34,6 @@
 
 #define __celer_implementation__
 
-
 #include "celer.h"
 
 
@@ -43,6 +42,7 @@
 #include "lucerna.h"
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 untyped_file f; /* Private variable- not accessible from elsewhere. */
 
@@ -495,3 +495,5 @@ static unit_celer_initialize celer_constructor;
 unit_celer_initialize::unit_celer_initialize() {
  num_chunks=0;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/celer.h b/engines/avalanche/celer.h
index ff608ea..c48bb46 100644
--- a/engines/avalanche/celer.h
+++ b/engines/avalanche/celer.h
@@ -33,6 +33,7 @@
 #include "incline.h"
 #include "gyro.h"
 
+namespace Avalanche {
 
 enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
 
@@ -77,4 +78,6 @@ EXTERN array<1,40,pointer> memory;
 
    void show_one_at(byte which, integer xxx,integer yyy);
 
+} // End of namespace Avalanche.
+
 #endif
diff --git a/engines/avalanche/ch_egats.cpp b/engines/avalanche/ch_egats.cpp
index 9a9718b..a109127 100644
--- a/engines/avalanche/ch_egats.cpp
+++ b/engines/avalanche/ch_egats.cpp
@@ -27,6 +27,7 @@
 
 #include "graph.h"
 
+namespace Avalanche {
 
 enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
 
@@ -177,3 +178,5 @@ int main(int argc, const char* argv[])
  close(f);
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/charmap.cpp b/engines/avalanche/charmap.cpp
index f42bf31..985bbf0 100644
--- a/engines/avalanche/charmap.cpp
+++ b/engines/avalanche/charmap.cpp
@@ -27,6 +27,8 @@
 
 /*#include "Dos.h"*/
 
+namespace Avalanche {
+
 struct infotype {
             matrix<128,255,1,8,byte> chars;
             string data;
@@ -51,4 +53,6 @@ int main(int argc, const char* argv[])
   output << NL;
  } }
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/chunker.cpp b/engines/avalanche/chunker.cpp
index 46848da..4b7dd0e 100644
--- a/engines/avalanche/chunker.cpp
+++ b/engines/avalanche/chunker.cpp
@@ -25,6 +25,8 @@
  * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
  */
 
+namespace Avalanche {
+
 enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
 
 struct chunkblocktype {
@@ -106,4 +108,6 @@ int main(int argc, const char* argv[])
 
    close(f);
    return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/chunkxf1.cpp b/engines/avalanche/chunkxf1.cpp
index 44e1725..5118d7d 100644
--- a/engines/avalanche/chunkxf1.cpp
+++ b/engines/avalanche/chunkxf1.cpp
@@ -28,6 +28,7 @@
 #include "graph.h"
 #include "cadburys.h"
 
+namespace Avalanche {
 
 /*type
  flavourtype = (ch_EGA,ch_BGI);
@@ -281,3 +282,5 @@ int main(int argc, const char* argv[])
  close_chunk();
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/chunkxf2.cpp b/engines/avalanche/chunkxf2.cpp
index ee79085..3b6caa7 100644
--- a/engines/avalanche/chunkxf2.cpp
+++ b/engines/avalanche/chunkxf2.cpp
@@ -27,6 +27,7 @@
 
 #include "graph.h"
 
+namespace Avalanche {
 
 enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
 
@@ -214,3 +215,5 @@ int main(int argc, const char* argv[])
  close_chunk();
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/chunkxf3.cpp b/engines/avalanche/chunkxf3.cpp
index 26b3b49..ab27863 100644
--- a/engines/avalanche/chunkxf3.cpp
+++ b/engines/avalanche/chunkxf3.cpp
@@ -30,6 +30,7 @@
 /*#include "Crt.h"*/
 #include "cadburys.h"
 
+namespace Avalanche {
 
 /*type
  flavourtype = (ch_EGA,ch_BGI);
@@ -272,3 +273,5 @@ int main(int argc, const char* argv[])
  close_chunk();
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/chunkxf4.cpp b/engines/avalanche/chunkxf4.cpp
index 2083f5b..0ac2e1f 100644
--- a/engines/avalanche/chunkxf4.cpp
+++ b/engines/avalanche/chunkxf4.cpp
@@ -29,6 +29,7 @@
 /*#include "Tommys.h"*/
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
 
@@ -307,3 +308,5 @@ int main(int argc, const char* argv[])
  close_chunk();
  return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/chunkxf5.cpp b/engines/avalanche/chunkxf5.cpp
index 9300c7b..c4041d6 100644
--- a/engines/avalanche/chunkxf5.cpp
+++ b/engines/avalanche/chunkxf5.cpp
@@ -29,6 +29,7 @@
 /*#include "Tommys.h"*/
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
 
@@ -266,3 +267,5 @@ int main(int argc, const char* argv[])
  close_chunk();
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/chunkxf6.cpp b/engines/avalanche/chunkxf6.cpp
index 3798e5c..b2c6cf4 100644
--- a/engines/avalanche/chunkxf6.cpp
+++ b/engines/avalanche/chunkxf6.cpp
@@ -29,6 +29,7 @@
 /*#include "Tommys.h"*/
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
 
@@ -273,3 +274,6 @@ int main(int argc, const char* argv[])
  close_chunk();
 return EXIT_SUCCESS;
 }
+
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/chunkxf7.cpp b/engines/avalanche/chunkxf7.cpp
index fc8da30..c1f189b 100644
--- a/engines/avalanche/chunkxf7.cpp
+++ b/engines/avalanche/chunkxf7.cpp
@@ -29,6 +29,7 @@
 /*#include "Tommys.h"*/
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
 
@@ -258,3 +259,5 @@ int main(int argc, const char* argv[])
  close_chunk();
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/chunkxf8.cpp b/engines/avalanche/chunkxf8.cpp
index 30be845..97b9502 100644
--- a/engines/avalanche/chunkxf8.cpp
+++ b/engines/avalanche/chunkxf8.cpp
@@ -29,6 +29,7 @@
 /*#include "Tommys.h"*/
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
 
@@ -265,3 +266,5 @@ int main(int argc, const char* argv[])
  close_chunk();
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/chunkxf9.cpp b/engines/avalanche/chunkxf9.cpp
index 48f5bd2..ddf079c 100644
--- a/engines/avalanche/chunkxf9.cpp
+++ b/engines/avalanche/chunkxf9.cpp
@@ -29,6 +29,7 @@
 /*#include "Tommys.h"*/
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
 
@@ -259,3 +260,5 @@ int main(int argc, const char* argv[])
  close_chunk();
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/chunkxfa.cpp b/engines/avalanche/chunkxfa.cpp
index a574a04..b2faafe 100644
--- a/engines/avalanche/chunkxfa.cpp
+++ b/engines/avalanche/chunkxfa.cpp
@@ -29,6 +29,7 @@
 /*#include "Tommys.h"*/
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
 
@@ -262,3 +263,5 @@ int main(int argc, const char* argv[])
  close_chunk();
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/chunkxfb.cpp b/engines/avalanche/chunkxfb.cpp
index 2ae8f85..5249e6c 100644
--- a/engines/avalanche/chunkxfb.cpp
+++ b/engines/avalanche/chunkxfb.cpp
@@ -29,6 +29,7 @@
 /*#include "Tommys.h"*/
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
 
@@ -260,3 +261,5 @@ int main(int argc, const char* argv[])
  close_chunk();
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/chunkxfc.cpp b/engines/avalanche/chunkxfc.cpp
index 292cc1a..4c2e58b 100644
--- a/engines/avalanche/chunkxfc.cpp
+++ b/engines/avalanche/chunkxfc.cpp
@@ -29,6 +29,7 @@
 /*#include "Tommys.h"*/
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
 
@@ -258,3 +259,5 @@ int main(int argc, const char* argv[])
  close_chunk();
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/chunkxfd.cpp b/engines/avalanche/chunkxfd.cpp
index 270d253..efc94ac 100644
--- a/engines/avalanche/chunkxfd.cpp
+++ b/engines/avalanche/chunkxfd.cpp
@@ -29,6 +29,7 @@
 /*#include "Tommys.h"*/
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
 
@@ -258,3 +259,5 @@ int main(int argc, const char* argv[])
  close_chunk();
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/chunkxfe.cpp b/engines/avalanche/chunkxfe.cpp
index ef42c8a..16e4aa1 100644
--- a/engines/avalanche/chunkxfe.cpp
+++ b/engines/avalanche/chunkxfe.cpp
@@ -29,6 +29,7 @@
 /*#include "Tommys.h"*/
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
 
@@ -258,3 +259,5 @@ int main(int argc, const char* argv[])
  close_chunk();
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/chunkxff.cpp b/engines/avalanche/chunkxff.cpp
index eddbc2d..fa9224b 100644
--- a/engines/avalanche/chunkxff.cpp
+++ b/engines/avalanche/chunkxff.cpp
@@ -29,6 +29,7 @@
 /*#include "Tommys.h"*/
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
 
@@ -258,3 +259,5 @@ int main(int argc, const char* argv[])
  close_chunk();
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/chunkxfg.cpp b/engines/avalanche/chunkxfg.cpp
index 0e980e6..cc43d7d 100644
--- a/engines/avalanche/chunkxfg.cpp
+++ b/engines/avalanche/chunkxfg.cpp
@@ -29,6 +29,7 @@
 /*#include "Tommys.h"*/
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
 
@@ -258,3 +259,5 @@ int main(int argc, const char* argv[])
  close_chunk();
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/chunkxfh.cpp b/engines/avalanche/chunkxfh.cpp
index bd303ad..9ebdbfa 100644
--- a/engines/avalanche/chunkxfh.cpp
+++ b/engines/avalanche/chunkxfh.cpp
@@ -29,6 +29,7 @@
 /*#include "Tommys.h"*/
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
 
@@ -259,3 +260,5 @@ int main(int argc, const char* argv[])
  close_chunk();
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/chunkxfi.cpp b/engines/avalanche/chunkxfi.cpp
index 52f3be1..3dd81b2 100644
--- a/engines/avalanche/chunkxfi.cpp
+++ b/engines/avalanche/chunkxfi.cpp
@@ -29,6 +29,7 @@
 /*#include "Tommys.h"*/
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
 
@@ -268,3 +269,5 @@ int main(int argc, const char* argv[])
  close_chunk();
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/chunkxfj.cpp b/engines/avalanche/chunkxfj.cpp
index 792c0b5..4c37792 100644
--- a/engines/avalanche/chunkxfj.cpp
+++ b/engines/avalanche/chunkxfj.cpp
@@ -29,6 +29,7 @@
 /*#include "Tommys.h"*/
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
 
@@ -259,3 +260,5 @@ int main(int argc, const char* argv[])
  close_chunk();
  return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/chunkxfk.cpp b/engines/avalanche/chunkxfk.cpp
index 86f4935..505c4fd 100644
--- a/engines/avalanche/chunkxfk.cpp
+++ b/engines/avalanche/chunkxfk.cpp
@@ -29,6 +29,7 @@
 /*#include "Tommys.h"*/
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 enum flavourtype {ch_ega,ch_bgi, last_flavourtype};
 
@@ -259,3 +260,5 @@ int main(int argc, const char* argv[])
  close_chunk();
  return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/chunkxfl.cpp b/engines/avalanche/chunkxfl.cpp
index 7fdb52b..4091890 100644
--- a/engines/avalanche/chunkxfl.cpp
+++ b/engines/avalanche/chunkxfl.cpp
@@ -30,6 +30,7 @@
 /*#include "Crt.h"*/
 #include "cadburys.h"
 
+namespace Avalanche {
 
 void finder()
 {
@@ -149,3 +150,5 @@ int main(int argc, const char* argv[])
  close_chunk();
  return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/clock.cpp b/engines/avalanche/clock.cpp
index ebdc85b..fb05ad5 100644
--- a/engines/avalanche/clock.cpp
+++ b/engines/avalanche/clock.cpp
@@ -29,6 +29,8 @@
 #include "graph.h"
 /*#include "Crt.h"*/
 
+namespace Avalanche {
+
 const integer xm = 511; const integer ym = 184;
 integer gd,gm;
 word oh,om,/*os,*/h,m,s,s1; char r;
@@ -81,4 +83,6 @@ int main(int argc, const char* argv[])
   oh=h; om=m;
  } while (!false);
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/closing.cpp b/engines/avalanche/closing.cpp
index 722ff37..bc3134b 100644
--- a/engines/avalanche/closing.cpp
+++ b/engines/avalanche/closing.cpp
@@ -43,6 +43,7 @@
 /*#include "Crt.h"*/
 #include "lucerna.h"
 
+namespace Avalanche {
 
 typedef array<1,3840,char> scrtype;
 
@@ -142,3 +143,5 @@ unit_closing_initialize::unit_closing_initialize() {;
  exitsave=exitproc;
  exitproc=&bug_handler;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/closing.h b/engines/avalanche/closing.h
index 3d33cd6..a4d539f 100644
--- a/engines/avalanche/closing.h
+++ b/engines/avalanche/closing.h
@@ -28,6 +28,7 @@
 #ifndef __closing_h__
 #define __closing_h__
 
+namespace Avalanche {
 
 const integer scr_bugalert = 1;
 const integer scr_ramcram = 2;
@@ -39,4 +40,6 @@ void quit_with(byte which,byte errorlev);
 
 void end_of_program();
 
+} // End of namespace Avalanche.
+
 #endif
diff --git a/engines/avalanche/convert.cpp b/engines/avalanche/convert.cpp
index d350f23..b8d986d 100644
--- a/engines/avalanche/convert.cpp
+++ b/engines/avalanche/convert.cpp
@@ -27,6 +27,8 @@
 
 #include "graph.h"
 
+namespace Avalanche {
+
 integer gd,gm;
 string fn1,fn2;
 varying_string<30> desc;
@@ -101,3 +103,5 @@ int main(int argc, const char* argv[])
  closegraph();
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/convmous.cpp b/engines/avalanche/convmous.cpp
index 53147ca..97da69a 100644
--- a/engines/avalanche/convmous.cpp
+++ b/engines/avalanche/convmous.cpp
@@ -29,6 +29,7 @@
 /*#include "Binu.h"*/
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
        /* ...gogogoch */struct cursor {
                           matrix<0,1,0,15,word> mask;
@@ -101,4 +102,6 @@ int main(int argc, const char* argv[])
  load();
  display();
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/credits.cpp b/engines/avalanche/credits.cpp
index 6d33127..b3db08e 100644
--- a/engines/avalanche/credits.cpp
+++ b/engines/avalanche/credits.cpp
@@ -30,6 +30,8 @@
 
 /*$R+*/
 
+namespace Avalanche {
+
 typedef matrix<'\0','\377',0,15,byte> fonttype;
 
 integer gd,gm;
@@ -110,3 +112,5 @@ int main(int argc, const char* argv[])
  close(t);
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/displtxt.cpp b/engines/avalanche/displtxt.cpp
index be06790..0db15d5 100644
--- a/engines/avalanche/displtxt.cpp
+++ b/engines/avalanche/displtxt.cpp
@@ -27,6 +27,7 @@
 
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 const char fn[] = "text3.scr";
 
@@ -56,3 +57,5 @@ int main(int argc, const char* argv[])
  gotoxy(1,25); textattr=31; clreol; gotoxy(1,24);
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/dropdown.cpp b/engines/avalanche/dropdown.cpp
index c88d06a..5637401 100644
--- a/engines/avalanche/dropdown.cpp
+++ b/engines/avalanche/dropdown.cpp
@@ -48,6 +48,8 @@
 #include "enid.h"
 #include "basher.h"
 
+namespace Avalanche {
+
 /*$V-*/
 const integer indent = 5;
 const integer spacing = 10;
@@ -824,4 +826,4 @@ void menu_link()
  }
 }
 
-
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/dropdown.h b/engines/avalanche/dropdown.h
index ac22571..4eae898 100644
--- a/engines/avalanche/dropdown.h
+++ b/engines/avalanche/dropdown.h
@@ -28,6 +28,7 @@
 #ifndef __dropdown_h__
 #define __dropdown_h__
 
+namespace Avalanche {
 
 typedef void(*proc)();
 
@@ -118,4 +119,6 @@ EXTERN varying_string<5> people;
   void standard_bar();
   /*procedure map_bar;*/
 
+} // End of namespace Avalanche.
+
 #endif
diff --git a/engines/avalanche/dwidth.cpp b/engines/avalanche/dwidth.cpp
index 67dbdc7..450ee7b 100644
--- a/engines/avalanche/dwidth.cpp
+++ b/engines/avalanche/dwidth.cpp
@@ -27,6 +27,7 @@
 
 #include "graph.h"
 
+namespace Avalanche {
 
 typedef matrix<'\0','\377',0,15,byte> fonttype;
 
@@ -42,3 +43,5 @@ int main(int argc, const char* argv[])
  for( gd=0; gd <= 15; gd ++) mem[0xa000*gd*80]=f['A'][gd];
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/edhead.cpp b/engines/avalanche/edhead.cpp
index 9907281..ab7b1b8 100644
--- a/engines/avalanche/edhead.cpp
+++ b/engines/avalanche/edhead.cpp
@@ -25,6 +25,8 @@
  * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
  */
 
+namespace Avalanche {
+
 const char months[] = "JanFebMarAprMayJunJulAugSepOctNovDec";
 const string ednaid = string("TT")+'\261'+'\36'+'\1'+'\113'+'\261'+'\231'+'\261';
 
@@ -107,3 +109,5 @@ int main(int argc, const char* argv[])
  output << "Number of saves: " << dna256[6] << NL;
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/edna.cpp b/engines/avalanche/edna.cpp
index 03d9c23..1c4d8d7 100644
--- a/engines/avalanche/edna.cpp
+++ b/engines/avalanche/edna.cpp
@@ -30,6 +30,7 @@
 /*#include "Dos.h"*/
 /*#include "Tommys.h"*/
 
+namespace Avalanche {
 
 struct ednahead { /* Edna header */
           /* This header starts at byte offset 177 in the .ASG file. */
@@ -359,4 +360,6 @@ int main(int argc, const char* argv[])
   if (info)  show_info();
   load_file();
   return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/enhanced.cpp b/engines/avalanche/enhanced.cpp
index 634ad63..212e6fe 100644
--- a/engines/avalanche/enhanced.cpp
+++ b/engines/avalanche/enhanced.cpp
@@ -38,6 +38,7 @@
 /*#include "Dos.h"*/
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 boolean isenh()
 {
@@ -109,3 +110,5 @@ unit_enhanced_initialize::unit_enhanced_initialize() {;
  /* determine bios type */
  atbios=isenh();
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/enhanced.h b/engines/avalanche/enhanced.h
index c7031a2..c7bd48f 100644
--- a/engines/avalanche/enhanced.h
+++ b/engines/avalanche/enhanced.h
@@ -28,7 +28,7 @@
 #ifndef __enhanced_h__
 #define __enhanced_h__
 
-
+namespace Avalanche {
 
 #ifdef __enhanced_implementation__
 #undef EXTERN
@@ -46,4 +46,6 @@ void readkeye();
 
 boolean keypressede();
 
-#endif
+} // End of namespace Avalanche.
+
+#endif
\ No newline at end of file
diff --git a/engines/avalanche/enid.cpp b/engines/avalanche/enid.cpp
index e6d9106..7305d94 100644
--- a/engines/avalanche/enid.cpp
+++ b/engines/avalanche/enid.cpp
@@ -50,6 +50,7 @@
 #include "fileunit.h"
 #include "basher.h"
 
+namespace Avalanche {
 
 const string crlf = string('\15')+'\12';
 const char tab = '\11';
@@ -603,4 +604,4 @@ boolean there_was_a_problem()
  return there_was_a_problem_result;
 }
 
-
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/enid.h b/engines/avalanche/enid.h
index ce9f5fd..d9f0a54 100644
--- a/engines/avalanche/enid.h
+++ b/engines/avalanche/enid.h
@@ -31,6 +31,7 @@
 
 #include "gyro.h"
 
+namespace Avalanche {
 
 void edna_save(string name);
 
@@ -46,4 +47,6 @@ void back_to_bootstrap(byte what);
 
 boolean there_was_a_problem();
 
+} // End of namespace Avalanche.
+
 #endif
diff --git a/engines/avalanche/filer.cpp b/engines/avalanche/filer.cpp
index 5fbc5b3..c96f445 100644
--- a/engines/avalanche/filer.cpp
+++ b/engines/avalanche/filer.cpp
@@ -33,6 +33,8 @@
 
 /*$V-*/
 
+namespace Avalanche {
+
 struct windowtype {
               integer x1,y1,x2,y2;
               varying_string<20> title;
@@ -813,3 +815,5 @@ int main(int argc, const char* argv[])
  input >> NL;
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/fileunit.cpp b/engines/avalanche/fileunit.cpp
index 26ab496..00c19ed 100644
--- a/engines/avalanche/fileunit.cpp
+++ b/engines/avalanche/fileunit.cpp
@@ -41,6 +41,8 @@
 
 /*$V-*/
 
+namespace Avalanche {
+
 struct windowtype {
               integer x1,y1,x2,y2;
               varying_string<20> title;
@@ -1140,4 +1142,4 @@ string do_filer()
  return do_filer_result;
 }
 
-
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/fileunit.h b/engines/avalanche/fileunit.h
index ce7d07a..034d1e5 100644
--- a/engines/avalanche/fileunit.h
+++ b/engines/avalanche/fileunit.h
@@ -28,7 +28,10 @@
 #ifndef __fileunit_h__
 #define __fileunit_h__
 
+namespace Avalanche {
 
 string do_filer();        /* Result is filename, or "" if cancelled. */
 
-#endif
+} // End of namespace Avalanche.
+
+#endif
\ No newline at end of file
diff --git a/engines/avalanche/filing.cpp b/engines/avalanche/filing.cpp
index a272107..51c9334 100644
--- a/engines/avalanche/filing.cpp
+++ b/engines/avalanche/filing.cpp
@@ -39,6 +39,7 @@
 
 /*#include "Gyro.h"*/
 
+namespace Avalanche {
 
 const array<1,12,varying_string<6> > months = 
  {{"Jan*","Feb*","March","April","May","June","July","August",
@@ -166,4 +167,6 @@ int main(int argc, const char* argv[])
   output << "Number of saves: " << e.saves << NL;
  }
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/folktemp.cpp b/engines/avalanche/folktemp.cpp
index 6d9fe75..4745d95 100644
--- a/engines/avalanche/folktemp.cpp
+++ b/engines/avalanche/folktemp.cpp
@@ -28,6 +28,7 @@
 /* Get 'em back! */
 #include "graph.h"
 
+namespace Avalanche {
 
 const integer picsize = 966;
 const integer number_of_objects = 19;
@@ -102,3 +103,5 @@ int main(int argc, const char* argv[])
  close(f); freemem(p,picsize);
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/fontslid.cpp b/engines/avalanche/fontslid.cpp
index 0d2a412..8955546 100644
--- a/engines/avalanche/fontslid.cpp
+++ b/engines/avalanche/fontslid.cpp
@@ -27,6 +27,8 @@
 
 /*#include "Crt.h"*/
 
+namespace Avalanche {
+
 typedef matrix<'\0','\377',0,15,byte> fonttype;
 
 fonttype font1;
@@ -46,4 +48,6 @@ int main(int argc, const char* argv[])
  }
  assign(f,"v:avitalic.fnt"); rewrite(f); f << font1; close(f);
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/frere.cpp b/engines/avalanche/frere.cpp
index 574fc8d..ddd622c 100644
--- a/engines/avalanche/frere.cpp
+++ b/engines/avalanche/frere.cpp
@@ -27,6 +27,7 @@
 
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 typedef array<1,31,byte> tunetype;
 
@@ -123,4 +124,6 @@ int main(int argc, const char* argv[])
 
  output << "*** PROGRAM STOPPED! ***" << NL;
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/g-room.cpp b/engines/avalanche/g-room.cpp
index b8dab28..c1e81e0 100644
--- a/engines/avalanche/g-room.cpp
+++ b/engines/avalanche/g-room.cpp
@@ -30,6 +30,8 @@
 
 /*$R+*/
 
+namespace Avalanche {
+
 const array<1,5,shortint> adjustment = {{7,0,7,7,7}};
 
 const array<0,3,byte> plane_to_use = {{2,2,2,3}};
@@ -435,3 +437,5 @@ int main(int argc, const char* argv[])
  closegraph();
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/golden.cpp b/engines/avalanche/golden.cpp
index e5ad0d6..ec20034 100644
--- a/engines/avalanche/golden.cpp
+++ b/engines/avalanche/golden.cpp
@@ -28,6 +28,7 @@
 /*$I c:\sleep5\DSMI.INC*/ #include "graph.h"
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 const varying_string<255> song = 
 string("Golden slumbers kiss your eyes/Smiles awake you when you rise/")+
@@ -459,3 +460,5 @@ int main(int argc, const char* argv[])
   for( gd=320; gd >= 0; gd --) rectangle(320-gd,100-gd / 2,320+gd,100+gd / 2);
   return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/gyro.cpp b/engines/avalanche/gyro.cpp
index f4f82bb..651c55b 100644
--- a/engines/avalanche/gyro.cpp
+++ b/engines/avalanche/gyro.cpp
@@ -47,6 +47,7 @@
 #include "dropdown.h"
 #include "basher.h"
 
+namespace Avalanche {
 
 const array<'\1',numobjs,varying_string<15> > things = 
  {{"Wine","Money-bag","Bodkin","Potion","Chastity belt",
@@ -554,4 +555,4 @@ void super_on()
  if (super_was_virtual)  on_virtual(); else on();
 }
 
-
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/gyro.h b/engines/avalanche/gyro.h
index 22b8552..22d7544 100644
--- a/engines/avalanche/gyro.h
+++ b/engines/avalanche/gyro.h
@@ -33,6 +33,7 @@
 /*#include "Dos.h"*/
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 const char numobjs = '\22'; /* always preface with a # */
 const integer maxobjs = 12;  /* carry limit */
@@ -726,4 +727,6 @@ EXTERN word cxmin,cxmax,cymin,cymax; EXTERN boolean use_joy_a;
 
  boolean mouse_near_text();
 
-#endif
+ } // End of namespace Avalanche.
+
+#endif
\ No newline at end of file
diff --git a/engines/avalanche/help.cpp b/engines/avalanche/help.cpp
index c53e4d8..70f7582 100644
--- a/engines/avalanche/help.cpp
+++ b/engines/avalanche/help.cpp
@@ -29,6 +29,8 @@
 /*#include "Rodent.h"*/
 /*#include "Crt.h"*/
 
+namespace Avalanche {
+
 typedef graphcursmasktype cursor;
 const char vernum[] = "v1ù00";
 const char copyright[] = "1992";
@@ -246,4 +248,6 @@ int main(int argc, const char* argv[])
   }
  } while (!lmo);
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/help2.cpp b/engines/avalanche/help2.cpp
index fe9cbec..1fc41b6 100644
--- a/engines/avalanche/help2.cpp
+++ b/engines/avalanche/help2.cpp
@@ -28,6 +28,8 @@
 #include "graph.h"
 /*#include "Crt.h"*/
 
+namespace Avalanche {
+
 typedef matrix<'\0','\377',0,15,byte> fonttype;
 
 struct hypertype {
@@ -266,3 +268,5 @@ int main(int argc, const char* argv[])
  } while (!false);
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/helpbak.cpp b/engines/avalanche/helpbak.cpp
index 1a7138b..b5513f3 100644
--- a/engines/avalanche/helpbak.cpp
+++ b/engines/avalanche/helpbak.cpp
@@ -41,6 +41,7 @@
 /*#include "Crt.h"*/
 /*#include "Lucerna.h"*/
 
+namespace Avalanche {
 
 struct buttontype {
              char trigger;
@@ -184,3 +185,4 @@ void boot_help()
  dawn;
 }
 
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/helpbak.h b/engines/avalanche/helpbak.h
index 3d8f5d8..4025aa8 100644
--- a/engines/avalanche/helpbak.h
+++ b/engines/avalanche/helpbak.h
@@ -32,7 +32,10 @@
 #include "graph.h"
 /*#include "Gyro.h"*/
 
+namespace Avalanche {
 
 void boot_help();
 
+} // End of namespace Avalanche.
+
 #endif
diff --git a/engines/avalanche/helper.cpp b/engines/avalanche/helper.cpp
index ad489a8..397c63f 100644
--- a/engines/avalanche/helper.cpp
+++ b/engines/avalanche/helper.cpp
@@ -42,6 +42,7 @@
 /*#include "Lucerna.h"*/
 /*#include "Pingo.h"*/
 
+namespace Avalanche {
 
 struct buttontype {
              char trigger;
@@ -305,3 +306,4 @@ void boot_help()
  setactivepage(1-cp);
 }
 
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/helper.h b/engines/avalanche/helper.h
index 22c6b06..bc4afbd 100644
--- a/engines/avalanche/helper.h
+++ b/engines/avalanche/helper.h
@@ -28,6 +28,7 @@
 #ifndef __helper_h__
 #define __helper_h__
 
+namespace Avalanche {
 
 #include "graph.h"
 /*#include "Gyro.h"*/
@@ -35,4 +36,6 @@
 
 void boot_help();
 
+} // End of namespace Avalanche.
+
 #endif
diff --git a/engines/avalanche/hibits.cpp b/engines/avalanche/hibits.cpp
index dc3d0ab..fbdc662 100644
--- a/engines/avalanche/hibits.cpp
+++ b/engines/avalanche/hibits.cpp
@@ -25,6 +25,8 @@
  * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
  */
 
+namespace Avalanche {
+
 file<char> inf,outf;
 char x;
 string q;
@@ -48,4 +50,6 @@ int main(int argc, const char* argv[])
  }
  close(inf); close(outf);
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/highs.cpp b/engines/avalanche/highs.cpp
index 419eb38..bb4909b 100644
--- a/engines/avalanche/highs.cpp
+++ b/engines/avalanche/highs.cpp
@@ -41,6 +41,7 @@
 /*#include "Gyro.h"*/
 /*#include "Scrolls.h"*/
 
+namespace Avalanche {
 
 typedef array<1,12,struct A1 {
                                  varying_string<30> name;
@@ -138,4 +139,6 @@ static unit_highs_initialize highs_constructor;
 
 unit_highs_initialize::unit_highs_initialize() {;
  get_highs();
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/highs.h b/engines/avalanche/highs.h
index f147c05..a4937cb 100644
--- a/engines/avalanche/highs.h
+++ b/engines/avalanche/highs.h
@@ -28,9 +28,12 @@
 #ifndef __highs_h__
 #define __highs_h__
 
+namespace Avalanche {
 
   void show_highs();
 
   void store_high(string who);
 
-#endif
+} // End of namespace Avalanche.
+
+#endif
\ No newline at end of file
diff --git a/engines/avalanche/hiz.cpp b/engines/avalanche/hiz.cpp
index cb0a627..f5f106e 100644
--- a/engines/avalanche/hiz.cpp
+++ b/engines/avalanche/hiz.cpp
@@ -32,6 +32,7 @@
 /*#include "Dos.h"*/
 /*#include "Tsru.h"*/
 
+namespace Avalanche {
 
     /* program's signature */
 const varying_string<20> tsr_tmark = "FISH FISH FISH!!!";
@@ -309,3 +310,5 @@ int main(int argc, const char* argv[])
  keep(0);
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/incline.cpp b/engines/avalanche/incline.cpp
index f6d7926..32dad74 100644
--- a/engines/avalanche/incline.cpp
+++ b/engines/avalanche/incline.cpp
@@ -40,6 +40,7 @@
 #include "gyro.h"
 #include "logger.h"
 
+namespace Avalanche {
 
 byte fv;
 char t;
@@ -195,3 +196,5 @@ unit_incline_initialize::unit_incline_initialize() {
 
  check_slope_line();
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/initxf.cpp b/engines/avalanche/initxf.cpp
index 342f3ef..e6ebcfb 100644
--- a/engines/avalanche/initxf.cpp
+++ b/engines/avalanche/initxf.cpp
@@ -27,6 +27,8 @@
 
 /*#include "Crt.h"*/
 
+namespace Avalanche {
+
 struct inirex {
           varying_string<12> a;
           word num;
@@ -53,4 +55,6 @@ int main(int argc, const char* argv[])
  close(i); close(o);
  output << NL;
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/inputtes.cpp b/engines/avalanche/inputtes.cpp
index 4400fa5..c24a933 100644
--- a/engines/avalanche/inputtes.cpp
+++ b/engines/avalanche/inputtes.cpp
@@ -28,6 +28,8 @@
 #include "graph.h"
 /*#include "Crt.h"*/
 
+namespace Avalanche {
+
 typedef matrix<'\0','\377',0,15,byte> fonttype;
 
 integer gd,gm;
@@ -69,3 +71,5 @@ int main(int argc, const char* argv[])
  } while (!false);
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/intro.cpp b/engines/avalanche/intro.cpp
index 854db43..010e024 100644
--- a/engines/avalanche/intro.cpp
+++ b/engines/avalanche/intro.cpp
@@ -30,6 +30,8 @@
 #include "graph.h"
 /*#include "Crt.h"*/
 
+namespace Avalanche {
+
  /* This is a stand-alone program. */
 
 /* 0, black, remains 0.
@@ -618,3 +620,5 @@ int main(int argc, const char* argv[])
  graphmode(3);
  return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/ints.cpp b/engines/avalanche/ints.cpp
index 0d96688..a14ee55 100644
--- a/engines/avalanche/ints.cpp
+++ b/engines/avalanche/ints.cpp
@@ -28,6 +28,8 @@
 /* Avalot interrupt handler */
 /*#include "Dos.h"*/
 
+namespace Avalanche {
+
 /*$F+*/
 registers r;
 void() old1b;
@@ -52,3 +54,5 @@ int main(int argc, const char* argv[])
  until false;*/
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/joysetup.cpp b/engines/avalanche/joysetup.cpp
index 4326ac8..1ebbc4f 100644
--- a/engines/avalanche/joysetup.cpp
+++ b/engines/avalanche/joysetup.cpp
@@ -30,6 +30,7 @@
 /*#include "Joystick.h"*/
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 struct joysetup {
             word xmid,ymid,xmin,ymin,xmax,ymax;
@@ -119,4 +120,6 @@ int main(int argc, const char* argv[])
  assign(jf,"v:joytmp.dat");
  rewrite(jf); jf << js; close(jf);     /* write it all out to disk. */
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/joystick.cpp b/engines/avalanche/joystick.cpp
index b18fdd0..8ebea36 100644
--- a/engines/avalanche/joystick.cpp
+++ b/engines/avalanche/joystick.cpp
@@ -27,7 +27,6 @@
 
 #define __joystick_implementation__
 
-
 /*
 Copyright (c) 1989, 1990 David B. Howorth
 
@@ -60,6 +59,7 @@ Hill Road, Portland, Oregon 97219.
 
 /*#include "Dos.h"*/
 
+namespace Avalanche {
 
 typedef void(*readjoyproc)(byte a,byte b,word& c,word& d);
 typedef boolean(*buttonfunc)(byte a);
@@ -206,3 +206,5 @@ unit_joystick_initialize::unit_joystick_initialize() {
            button = oldbutton;
          }
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/joystick.h b/engines/avalanche/joystick.h
index 8a1bcf1..2cbcd3c 100644
--- a/engines/avalanche/joystick.h
+++ b/engines/avalanche/joystick.h
@@ -28,6 +28,7 @@
 #ifndef __joystick_h__
 #define __joystick_h__
 
+namespace Avalanche {
 
 void readjoya(word& xaxis, word& yaxis);
 /* Reads the X and Y coordinates of Joystick A. */
@@ -46,4 +47,6 @@ boolean buttonb2();
 boolean joystickpresent();
 /* This function indicates whether a joystick is installed. */
 
+} // End of namespace Avalanche.
+
 #endif
diff --git a/engines/avalanche/loading.cpp b/engines/avalanche/loading.cpp
index a53e3ed..3f161ed 100644
--- a/engines/avalanche/loading.cpp
+++ b/engines/avalanche/loading.cpp
@@ -27,6 +27,8 @@
 
 #include "graph.h"
 
+namespace Avalanche {
+
 integer gd,gm;
 byte a /*absolute $A000:1200*/;
 byte bit;
@@ -45,3 +47,5 @@ int main(int argc, const char* argv[])
  close(f);
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/logger.cpp b/engines/avalanche/logger.cpp
index 4d14e3c..7da976d 100644
--- a/engines/avalanche/logger.cpp
+++ b/engines/avalanche/logger.cpp
@@ -41,6 +41,7 @@
 /*#include "Gyro.h"*/
 /*#include "Trip5.h"*/
 
+namespace Avalanche {
 
 const char divide[] = "--- oOo ---";
 
@@ -232,4 +233,4 @@ void log_score(word credit,word now)
  output << logfile << "Score " << italic << "credit : " << credit << italic_off << " total : " << now << NL;
 }
 
-
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/logger.h b/engines/avalanche/logger.h
index b068f20..94cd938 100644
--- a/engines/avalanche/logger.h
+++ b/engines/avalanche/logger.h
@@ -28,6 +28,7 @@
 #ifndef __logger_h__
 #define __logger_h__
 
+namespace Avalanche {
 
 void log_setup(string name, boolean printing);
 
@@ -57,4 +58,6 @@ void log_aside(string what);
 
 void log_score(word credit,word now);
 
-#endif
+} // End of namespace Avalanche.
+
+#endif
\ No newline at end of file
diff --git a/engines/avalanche/lucerna.cpp b/engines/avalanche/lucerna.cpp
index 9ef67fd..19466f4 100644
--- a/engines/avalanche/lucerna.cpp
+++ b/engines/avalanche/lucerna.cpp
@@ -54,6 +54,7 @@
 #include "basher.h"
 #include "sequence.h"
 
+namespace Avalanche {
 
 /*$V-*/ /*$S-*/
 boolean fxhidden; array<0,3,palettetype> fxpal;
@@ -1512,3 +1513,5 @@ unit_lucerna_initialize::unit_lucerna_initialize() {
  fxhidden=false; oh=17717; om=17717;
  if (atbios)  atkey="f1"; else atkey="alt-";
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/lucerna.h b/engines/avalanche/lucerna.h
index f40364a..5bf0782 100644
--- a/engines/avalanche/lucerna.h
+++ b/engines/avalanche/lucerna.h
@@ -28,6 +28,7 @@
 #ifndef __lucerna_h__
 #define __lucerna_h__
 
+namespace Avalanche {
 
 #include "gyro.h"
 
@@ -100,4 +101,6 @@
 
  void fix_flashers();
 
-#endif
+ } // End of namespace Avalanche.
+
+#endif
\ No newline at end of file
diff --git a/engines/avalanche/magic2.cpp b/engines/avalanche/magic2.cpp
index e1729f7..130e188 100644
--- a/engines/avalanche/magic2.cpp
+++ b/engines/avalanche/magic2.cpp
@@ -27,6 +27,7 @@
 
 #include "graph.h"
 
+namespace Avalanche {
 
 const longint pagetop = 81920;
 const word nextcode = 17717;
@@ -59,3 +60,5 @@ int main(int argc, const char* argv[])
  close(magic); close(out);
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/magidraw.cpp b/engines/avalanche/magidraw.cpp
index 139f216..241f692 100644
--- a/engines/avalanche/magidraw.cpp
+++ b/engines/avalanche/magidraw.cpp
@@ -28,6 +28,7 @@
 #include "graph.h"
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 const word nextcode = 17717;
 
@@ -56,3 +57,5 @@ int main(int argc, const char* argv[])
 /* close(magic);*/
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/magishuf.cpp b/engines/avalanche/magishuf.cpp
index 0fdb829..6706ceb 100644
--- a/engines/avalanche/magishuf.cpp
+++ b/engines/avalanche/magishuf.cpp
@@ -28,6 +28,7 @@
 /*#include "Dos.h"*/
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 const word nextcode = 17717;
 
@@ -82,3 +83,5 @@ int main(int argc, const char* argv[])
  } while (!keypressed());
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/make!.cpp b/engines/avalanche/make!.cpp
index 32d8a6c..353b461 100644
--- a/engines/avalanche/make!.cpp
+++ b/engines/avalanche/make!.cpp
@@ -28,6 +28,8 @@
 /* Phew! */
 #include "graph.h"
 
+namespace Avalanche {
+
 /*$S-*/
 integer gd,gm;
 untyped_file f;
@@ -85,3 +87,5 @@ int main(int argc, const char* argv[])
  close(t);
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/makeregi.cpp b/engines/avalanche/makeregi.cpp
index 89b66d7..35b37d2 100644
--- a/engines/avalanche/makeregi.cpp
+++ b/engines/avalanche/makeregi.cpp
@@ -27,6 +27,8 @@
 
 /* regname's name starts at $7D1 (2001). */
 
+namespace Avalanche {
+
 const array<1,56,char> padding = 
 "For all the Etruscan armies were ranged beneath his eye";
 
@@ -164,4 +166,6 @@ int main(int argc, const char* argv[])
 
  close(txi); close(txo);
  return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/makesez.cpp b/engines/avalanche/makesez.cpp
index cfb9974..3c46e18 100644
--- a/engines/avalanche/makesez.cpp
+++ b/engines/avalanche/makesez.cpp
@@ -25,6 +25,8 @@
  * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
  */
 
+namespace Avalanche {
+
 struct sezheader {
              array<1,2,char> initials;     /* should be "TT" */
              word gamecode;
@@ -67,4 +69,7 @@ int main(int argc, const char* argv[])
  blockwrite(sez,x[1],39); /* footer */
  close(sez);
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/makevmou.cpp b/engines/avalanche/makevmou.cpp
index 7d3c5f3..9f509f1 100644
--- a/engines/avalanche/makevmou.cpp
+++ b/engines/avalanche/makevmou.cpp
@@ -30,6 +30,7 @@
 /*#include "Crt.h"*/
 
 /*$R+*/
+namespace Avalanche {
 
 struct mp { /* mouse-pointer */
       matrix<0,1,0,15,word> mask;
@@ -292,3 +293,5 @@ int main(int argc, const char* argv[])
  show_off_mouse;*/
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/menuxf.cpp b/engines/avalanche/menuxf.cpp
index be0920e..17fa553 100644
--- a/engines/avalanche/menuxf.cpp
+++ b/engines/avalanche/menuxf.cpp
@@ -27,6 +27,8 @@
 
 #include "graph.h"
 
+namespace Avalanche {
+
 integer gd,gm;
 
 void load()     /* Load2, actually */
@@ -70,3 +72,5 @@ int main(int argc, const char* argv[])
  save();
  return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/minstran.cpp b/engines/avalanche/minstran.cpp
index d404c60..38608c8 100644
--- a/engines/avalanche/minstran.cpp
+++ b/engines/avalanche/minstran.cpp
@@ -27,6 +27,8 @@
 
 #include "graph.h"
 
+namespace Avalanche {
+
 integer gd,gm;
 pointer p; word s;
 
@@ -59,3 +61,5 @@ int main(int argc, const char* argv[])
  putimage(fx1+100,fy1,p,0); freemem(p,s);
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/newsprit.cpp b/engines/avalanche/newsprit.cpp
index 095fc40..e18c0be 100644
--- a/engines/avalanche/newsprit.cpp
+++ b/engines/avalanche/newsprit.cpp
@@ -28,6 +28,7 @@
 #include "graph.h"
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 const string crlf = string('\15')+'\12'; const char eof_ = '\32';
 const array<1,177,char> trip5head = 
@@ -145,4 +146,6 @@ int main(int argc, const char* argv[])
  blockwrite(out,trip5foot,50);
  close(out);
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/nim.cpp b/engines/avalanche/nim.cpp
index a81dfc6..86dd2b2 100644
--- a/engines/avalanche/nim.cpp
+++ b/engines/avalanche/nim.cpp
@@ -29,6 +29,7 @@
 /*#include "Crt.h"*/
 /*#include "Dos.h"*/
 
+namespace Avalanche {
 
 const array<false,true,varying_string<7> > names = {{"Avalot","Dogfood"}};
 
@@ -403,3 +404,5 @@ int main(int argc, const char* argv[])
  endofgame(); /* Winning sequence is A1, B3, B1, C1, C1, btw. */
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/nimdraw.cpp b/engines/avalanche/nimdraw.cpp
index 45b1c68..a81d69f 100644
--- a/engines/avalanche/nimdraw.cpp
+++ b/engines/avalanche/nimdraw.cpp
@@ -27,6 +27,7 @@
 
 #include "graph.h"
 
+namespace Avalanche {
 
 const string header = string("Datafile for Avalot, copyright (c) 1992.")+'\32';
 
@@ -116,3 +117,5 @@ int main(int argc, const char* argv[])
  close(f);
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/nimunit.cpp b/engines/avalanche/nimunit.cpp
index e2d5f6f..cfec877 100644
--- a/engines/avalanche/nimunit.cpp
+++ b/engines/avalanche/nimunit.cpp
@@ -37,6 +37,7 @@
 
 #include "nimunit.h"
 
+namespace Avalanche {
 
 const array<false,true,varying_string<7> > names = {{"Avalot","Dogfood"}};
 
@@ -466,3 +467,5 @@ void play_nim()     /* Plays the game. Only procedure in this unit to
 }
 
      /* No init part. */
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/nimunit.h b/engines/avalanche/nimunit.h
index 4b5f79b..8919b1a 100644
--- a/engines/avalanche/nimunit.h
+++ b/engines/avalanche/nimunit.h
@@ -28,7 +28,6 @@
 #ifndef __nimunit_h__
 #define __nimunit_h__
 
-
 #include "gyro.h"
   #include "Graph.h"
   /*#include "Crt.h"*/
@@ -38,8 +37,10 @@
 #include "logger.h"
 #include "celer.h"
 
+namespace Avalanche {
 
   void play_nim();
 
+} // End of namespace Avalanche.
 
 #endif
diff --git a/engines/avalanche/oldfiler.cpp b/engines/avalanche/oldfiler.cpp
index f802026..c813f37 100644
--- a/engines/avalanche/oldfiler.cpp
+++ b/engines/avalanche/oldfiler.cpp
@@ -31,6 +31,7 @@
 /*#include "Rodent.h"*/
 
 /*$V-*/
+namespace Avalanche {
 
 const char more[] = " (more) ";
 const string up = string('-')+'\30'+more+'\30';
@@ -280,5 +281,4 @@ int main(int argc, const char* argv[])
 return EXIT_SUCCESS;
 }
 
-
-
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/oldhighs.cpp b/engines/avalanche/oldhighs.cpp
index 5fa205c..eaee8eb 100644
--- a/engines/avalanche/oldhighs.cpp
+++ b/engines/avalanche/oldhighs.cpp
@@ -28,6 +28,7 @@
 #include "graph.h"
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 struct scoretype {
              varying_string<39> name;
@@ -270,4 +271,6 @@ int main(int argc, const char* argv[])
  newtable();
  newscore(/*177*/0);
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/oldincln.cpp b/engines/avalanche/oldincln.cpp
index c627407..a364cbc 100644
--- a/engines/avalanche/oldincln.cpp
+++ b/engines/avalanche/oldincln.cpp
@@ -40,6 +40,7 @@
 #include "gyro.h"
 #include "logger.h"
 
+namespace Avalanche {
 
 const integer bug_twonames = 255;
 const integer bug_pandl = 254;
@@ -272,3 +273,5 @@ unit_incline_initialize::unit_incline_initialize() {;
  for( fv=4; fv <= paramcount; fv ++)
   parse(paramstr(fv));
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/oldtrip.cpp b/engines/avalanche/oldtrip.cpp
index e7df00f..9a3476e 100644
--- a/engines/avalanche/oldtrip.cpp
+++ b/engines/avalanche/oldtrip.cpp
@@ -42,6 +42,7 @@
 /*#include "Gyro.h"*/
 /*#include "Dropdown.h"*/
 
+namespace Avalanche {
 
 void copier(integer x1,integer y1,integer x2,integer y2,integer x3,integer y3,integer x4,integer y4);
 
@@ -471,3 +472,4 @@ boolean neardoor_result;
 return neardoor_result;
 }
 
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/oldtrip.h b/engines/avalanche/oldtrip.h
index 7a5e402..70782ee 100644
--- a/engines/avalanche/oldtrip.h
+++ b/engines/avalanche/oldtrip.h
@@ -32,6 +32,7 @@
 #include "graph.h"
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 const integer maxgetset = 10;
 
@@ -118,5 +119,6 @@ EXTERN array<1,numtr,triptype> tr;
 #undef EXTERN
 #define EXTERN extern
 
+} // End of namespace Avalanche.
 
-#endif
+#endif
\ No newline at end of file
diff --git a/engines/avalanche/omtest.cpp b/engines/avalanche/omtest.cpp
index 0209619..c102b3f 100644
--- a/engines/avalanche/omtest.cpp
+++ b/engines/avalanche/omtest.cpp
@@ -31,6 +31,8 @@
 /*#include "Crt.h"*/
 /*#include "Enhanced.h"*/
 
+namespace Avalanche {
+
 varying_string<5> st;
 byte fv;
 
@@ -198,4 +200,6 @@ int main(int argc, const char* argv[])
   }
  } while (!false);
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/oopmenu.cpp b/engines/avalanche/oopmenu.cpp
index 9f8445b..2d8ae42 100644
--- a/engines/avalanche/oopmenu.cpp
+++ b/engines/avalanche/oopmenu.cpp
@@ -36,6 +36,7 @@
 /*#include "Rodent.h"*/
 /*#include "Dos.h"*/
 
+namespace Avalanche {
 
 const integer indent = 40;
 const integer spacing = 83;
@@ -318,3 +319,4 @@ void parsekey(char r,char re)
   }
 }
 
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/oopmenu.h b/engines/avalanche/oopmenu.h
index 4ac4efb..32f171e 100644
--- a/engines/avalanche/oopmenu.h
+++ b/engines/avalanche/oopmenu.h
@@ -28,6 +28,7 @@
 #ifndef __oopmenu_h__
 #define __oopmenu_h__
 
+namespace Avalanche {
 
 typedef void(*proc)();
 
@@ -106,4 +107,6 @@ EXTERN string kbuffer;
 
   void parsekey(char r,char re);
 
+} // End of namespace Avalanche.
+
 #endif
diff --git a/engines/avalanche/overlap.cpp b/engines/avalanche/overlap.cpp
index d68a292..14d5dc8 100644
--- a/engines/avalanche/overlap.cpp
+++ b/engines/avalanche/overlap.cpp
@@ -28,6 +28,8 @@
 #include "graph.h"
 /*#include "Crt.h"*/
 
+namespace Avalanche {
+
 integer gd,gm;
 
 void flash(integer x1,integer y1,integer x2,integer y2)
@@ -74,4 +76,6 @@ int main(int argc, const char* argv[])
  test(100,50,200,100,120, 70,220,120);
  test(100,50,200,100,150, 50,250,100);
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/overscro.cpp b/engines/avalanche/overscro.cpp
index 307b9e2..9617e2e 100644
--- a/engines/avalanche/overscro.cpp
+++ b/engines/avalanche/overscro.cpp
@@ -27,6 +27,8 @@
 
 #include "graph.h"
 
+namespace Avalanche {
+
 integer gd,gm;
 int main(int argc, const char* argv[])
 {pio_initialize(argc, argv);
@@ -75,3 +77,5 @@ int main(int argc, const char* argv[])
  end;*/
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/particle.cpp b/engines/avalanche/particle.cpp
index ef1141e..bcccdb9 100644
--- a/engines/avalanche/particle.cpp
+++ b/engines/avalanche/particle.cpp
@@ -30,6 +30,8 @@
 
 /*$R+*/
 
+namespace Avalanche {
+
 typedef matrix<'\0','\377',0,15,byte> fonttype;
 
 struct markertype {
@@ -255,3 +257,5 @@ int main(int argc, const char* argv[])
  } while (!ok);
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/pictemp.cpp b/engines/avalanche/pictemp.cpp
index c2a05ae..cbc8474 100644
--- a/engines/avalanche/pictemp.cpp
+++ b/engines/avalanche/pictemp.cpp
@@ -27,6 +27,7 @@
 
 #include "graph.h"
 
+namespace Avalanche {
 
 const integer picsize = 966;
 
@@ -87,3 +88,5 @@ int main(int argc, const char* argv[])
  save();
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/pictemp2.cpp b/engines/avalanche/pictemp2.cpp
index 39087b1..f0ebccd 100644
--- a/engines/avalanche/pictemp2.cpp
+++ b/engines/avalanche/pictemp2.cpp
@@ -28,6 +28,7 @@
 /* Get 'em back! */
 #include "graph.h"
 
+namespace Avalanche {
 
 const integer picsize = 966;
 const integer number_of_objects = 17;
@@ -87,3 +88,5 @@ int main(int argc, const char* argv[])
  close(f); freemem(p,picsize);
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/pingo.cpp b/engines/avalanche/pingo.cpp
index 6b0f490..2c68a8c 100644
--- a/engines/avalanche/pingo.cpp
+++ b/engines/avalanche/pingo.cpp
@@ -45,6 +45,7 @@
 #include "trip5.h"
 #include "scrolls.h"
 
+namespace Avalanche {
 
 void dplot(integer x,integer y, string z)
 {;
@@ -251,4 +252,4 @@ void winning_pic()
  major_redraw();
 }
 
-
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/pingo.h b/engines/avalanche/pingo.h
index 71af98e..2bda478 100644
--- a/engines/avalanche/pingo.h
+++ b/engines/avalanche/pingo.h
@@ -28,6 +28,7 @@
 #ifndef __pingo_h__
 #define __pingo_h__
 
+namespace Avalanche {
 
 void bosskey();
 
@@ -43,4 +44,6 @@ void zonk();
 
 void winning_pic();
 
-#endif
+} // End of namespace Avalanche.
+
+#endif
\ No newline at end of file
diff --git a/engines/avalanche/plottest.cpp b/engines/avalanche/plottest.cpp
index 799f1f1..909088c 100644
--- a/engines/avalanche/plottest.cpp
+++ b/engines/avalanche/plottest.cpp
@@ -27,6 +27,8 @@
 
 #include "graph.h"
 
+namespace Avalanche {
+
 integer gd,gm; byte fv;
 matrix<1,35,0,39,byte> a;
 array<0,3,0,4,1,35,byte> b;
@@ -64,3 +66,5 @@ int main(int argc, const char* argv[])
   }
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/preview1.cpp b/engines/avalanche/preview1.cpp
index f76486d..8611277 100644
--- a/engines/avalanche/preview1.cpp
+++ b/engines/avalanche/preview1.cpp
@@ -28,6 +28,7 @@
 #include "graph.h"
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 array<0,3,palettetype> fxpal;
 
@@ -144,3 +145,5 @@ int main(int argc, const char* argv[])
  closegraph();
  return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/qintro.cpp b/engines/avalanche/qintro.cpp
index b3e2eb6..22e6f3f 100644
--- a/engines/avalanche/qintro.cpp
+++ b/engines/avalanche/qintro.cpp
@@ -29,6 +29,8 @@
 #include "graph.h"
 /*#include "Crt.h"*/
 
+namespace Avalanche {
+
  /* This is a stand-alone program. */
 
 /* 0, black, remains 0.
@@ -299,3 +301,5 @@ int main(int argc, const char* argv[])
  graphmode(3);
  return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/qstars.cpp b/engines/avalanche/qstars.cpp
index 2ed399d..d512838 100644
--- a/engines/avalanche/qstars.cpp
+++ b/engines/avalanche/qstars.cpp
@@ -31,6 +31,8 @@
 /*#include "Rodent.h"*/
 /*#include "Tommys.h"*/
 
+namespace Avalanche {
+
 integer gd,gm;
 
 typedef matrix<'\0','\377',0,15,byte> fonttype;
@@ -260,3 +262,5 @@ int main(int argc, const char* argv[])
  bigo2go();
  return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/rawupd.cpp b/engines/avalanche/rawupd.cpp
index 6d8a300..4f2a5f7 100644
--- a/engines/avalanche/rawupd.cpp
+++ b/engines/avalanche/rawupd.cpp
@@ -28,6 +28,8 @@
 /*#include "Dos.h"*/
 /*#include "Crt.h"*/
 
+namespace Avalanche {
+
 searchrec s;
 string x,y;
 longint hash_time,s_time;
@@ -92,4 +94,6 @@ int main(int argc, const char* argv[])
   findnext(s);
  }
  return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/readsez.cpp b/engines/avalanche/readsez.cpp
index 76cfc77..b55d45a 100644
--- a/engines/avalanche/readsez.cpp
+++ b/engines/avalanche/readsez.cpp
@@ -25,6 +25,8 @@
  * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
  */
 
+namespace Avalanche {
+
 struct markertype {
               word length;
               longint offset;
@@ -100,4 +102,6 @@ int main(int argc, const char* argv[])
  }
  close(f);
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/reginam.cpp b/engines/avalanche/reginam.cpp
index 7a2cbac..0458acb 100644
--- a/engines/avalanche/reginam.cpp
+++ b/engines/avalanche/reginam.cpp
@@ -25,6 +25,8 @@
  * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
  */
 
+namespace Avalanche {
+
 const array<1,36,char> letters = "ABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890";
 varying_string<30> name;
 varying_string<5> number;
@@ -112,4 +114,6 @@ int main(int argc, const char* argv[])
  negate();
  output << "Or, negated, = " << name << NL;
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/sackb1.cpp b/engines/avalanche/sackb1.cpp
index cc11935..e3369db 100644
--- a/engines/avalanche/sackb1.cpp
+++ b/engines/avalanche/sackb1.cpp
@@ -45,6 +45,8 @@
 /*$L v:MOD-obj.OBJ*/ 	        /* Link in Object file */
 /*$F+*/ 				/* force calls to be 'far'*/
 
+namespace Avalanche {
+
 extern void modvolume(integer v1,integer v2,integer v3,integer v4);  /*Can do while playing*/
 extern void moddevice(integer& device); 
 extern void modsetup(integer& status,integer device,integer mixspeed,integer pro,integer loop,string& stri); 
@@ -74,4 +76,4 @@ void sb_link()     /* At the moment, this does nothing. */
 {;
 }
 
-
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/sackb1.h b/engines/avalanche/sackb1.h
index e226946..c660c36 100644
--- a/engines/avalanche/sackb1.h
+++ b/engines/avalanche/sackb1.h
@@ -31,6 +31,7 @@
 
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 void sb_start(string md);
 
@@ -38,4 +39,6 @@ void sb_stop();
 
 void sb_link();    /* At the moment, this does nothing. */
 
-#endif
+} // End of namespace Avalanche.
+
+#endif
\ No newline at end of file
diff --git a/engines/avalanche/sackb3.cpp b/engines/avalanche/sackb3.cpp
index 60a259c..0abca98 100644
--- a/engines/avalanche/sackb3.cpp
+++ b/engines/avalanche/sackb3.cpp
@@ -32,6 +32,7 @@
 
 /*#include "SBVoice.h"*/
 
+namespace Avalanche {
 
 int main(int argc, const char* argv[])
 {
@@ -46,3 +47,5 @@ if (paramcount>0)  {
     output << "Usage: DEMO [d:\\path\\]filename.voc" << NL;
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/sackblas.cpp b/engines/avalanche/sackblas.cpp
index e3261d7..9cec14d 100644
--- a/engines/avalanche/sackblas.cpp
+++ b/engines/avalanche/sackblas.cpp
@@ -23,5 +23,4 @@
 /*
  * This code is based on the original source code of Lord Avalot d'Argent version 1.3.
  * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
- */
-
+ */
\ No newline at end of file
diff --git a/engines/avalanche/saving.cpp b/engines/avalanche/saving.cpp
index fce157e..5385a6c 100644
--- a/engines/avalanche/saving.cpp
+++ b/engines/avalanche/saving.cpp
@@ -27,6 +27,8 @@
 
 #include "graph.h"
 
+namespace Avalanche {
+
 integer gd,gm;
 byte a /*absolute $A000:(15*80)*/;
 byte bit;
@@ -70,3 +72,5 @@ int main(int argc, const char* argv[])
  close(f);
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/scr_1.cpp b/engines/avalanche/scr_1.cpp
index 5a9d55d..6228bf8 100644
--- a/engines/avalanche/scr_1.cpp
+++ b/engines/avalanche/scr_1.cpp
@@ -27,6 +27,7 @@
 
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 const varying_string<4> codes = " ßÜÛ";
 
@@ -111,3 +112,5 @@ int main(int argc, const char* argv[])
  save();
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/scr_2.cpp b/engines/avalanche/scr_2.cpp
index 2d5a78c..6cb6fca 100644
--- a/engines/avalanche/scr_2.cpp
+++ b/engines/avalanche/scr_2.cpp
@@ -27,6 +27,7 @@
 
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 const varying_string<4> codes = " ßÜÛ";
 
@@ -135,3 +136,5 @@ int main(int argc, const char* argv[])
  save();
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/scr_3.cpp b/engines/avalanche/scr_3.cpp
index 0e4ff0d..b71353c 100644
--- a/engines/avalanche/scr_3.cpp
+++ b/engines/avalanche/scr_3.cpp
@@ -27,6 +27,7 @@
 
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 const varying_string<4> codes = " ßÜÛ";
 
@@ -115,3 +116,5 @@ int main(int argc, const char* argv[])
  save();
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/scr_4.cpp b/engines/avalanche/scr_4.cpp
index 44099e1..7f5cb6a 100644
--- a/engines/avalanche/scr_4.cpp
+++ b/engines/avalanche/scr_4.cpp
@@ -27,6 +27,7 @@
 
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 const varying_string<4> codes = " ÞÝÛ";
 
@@ -110,4 +111,6 @@ int main(int argc, const char* argv[])
  textattr=30; centre(12,"Well done!");
  textattr=27; centre(14,"You completed the game!");
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/scr_5.cpp b/engines/avalanche/scr_5.cpp
index 8268631..5a4aa12 100644
--- a/engines/avalanche/scr_5.cpp
+++ b/engines/avalanche/scr_5.cpp
@@ -27,6 +27,7 @@
 
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 const varying_string<4> codes = " ßÜÛ";
 
@@ -115,3 +116,5 @@ int main(int argc, const char* argv[])
  save();
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/scr_9.cpp b/engines/avalanche/scr_9.cpp
index 2dac08c..1fb4942 100644
--- a/engines/avalanche/scr_9.cpp
+++ b/engines/avalanche/scr_9.cpp
@@ -27,6 +27,8 @@
 
 /*#include "Crt.h"*/
 
+namespace Avalanche {
+
 text t;
 string x;
 byte fv;
@@ -43,3 +45,5 @@ int main(int argc, const char* argv[])
  gotoxy(1,23); clreol;
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/scrolls.cpp b/engines/avalanche/scrolls.cpp
index 7bf6c6d..c109624 100644
--- a/engines/avalanche/scrolls.cpp
+++ b/engines/avalanche/scrolls.cpp
@@ -50,6 +50,7 @@
 #include "visa.h"
 #include "timeout.h"
 
+namespace Avalanche {
 
 const integer roman = 0;
 const integer italic = 1;
@@ -804,3 +805,5 @@ unit_scrolls_initialize::unit_scrolls_initialize() {
  loadfont();
  resetscrolldriver();
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/scrolls.h b/engines/avalanche/scrolls.h
index d20d361..a22cfb7 100644
--- a/engines/avalanche/scrolls.h
+++ b/engines/avalanche/scrolls.h
@@ -32,6 +32,7 @@
 #include "gyro.h"
 #include "joystick.h"
 
+namespace Avalanche {
 
 const boolean aboutscroll = false; /* Is this the about box? */
 
@@ -57,4 +58,6 @@ void okay();    /* Says "Okay!" */
 
 void musical_scroll();
 
-#endif
+} // End of namespace Avalanche.
+
+#endif
\ No newline at end of file
diff --git a/engines/avalanche/sequence.cpp b/engines/avalanche/sequence.cpp
index 243caf4..cf1cb0a 100644
--- a/engines/avalanche/sequence.cpp
+++ b/engines/avalanche/sequence.cpp
@@ -43,6 +43,7 @@
 /*#include "Celer.h"*/
 /*#include "Trip5.h"*/
 
+namespace Avalanche {
 
 void then_show(byte what)
 {
@@ -115,3 +116,4 @@ void call_sequencer()
  start_to_close(); /* Make sure this proc gets called again. */
 }
 
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/sequence.h b/engines/avalanche/sequence.h
index 86d2d89..2d773ca 100644
--- a/engines/avalanche/sequence.h
+++ b/engines/avalanche/sequence.h
@@ -28,6 +28,7 @@
 #ifndef __sequence_h__
 #define __sequence_h__
 
+namespace Avalanche {
 
 const integer now_flip = 177;
 
@@ -56,4 +57,6 @@ void start_to_open();
 
 void call_sequencer();
 
-#endif
+} // End of namespace Avalanche.
+
+#endif
\ No newline at end of file
diff --git a/engines/avalanche/setup.cpp b/engines/avalanche/setup.cpp
index 1416a51..245a119 100644
--- a/engines/avalanche/setup.cpp
+++ b/engines/avalanche/setup.cpp
@@ -29,6 +29,7 @@
 /*#include "Tommys.h"*/
 #include "joystick.h"
 
+namespace Avalanche {
 
 const integer selected = 0x60; /* Background for selected lines of text. */
 
@@ -1290,3 +1291,5 @@ int main(int argc, const char* argv[])
  clear_up();
  return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/seu.cpp b/engines/avalanche/seu.cpp
index 9e8f4aa..883a810 100644
--- a/engines/avalanche/seu.cpp
+++ b/engines/avalanche/seu.cpp
@@ -30,6 +30,7 @@
 /*#include "Crt.h"*/
 /*#include "Tommys.h"*/
 
+namespace Avalanche {
 
 const integer msize = 100;
 const integer flag = -20047;
@@ -999,3 +1000,5 @@ int main(int argc, const char* argv[])
  mem[storage_seg*storage_ofs]=score;
  return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/seu_avvy.cpp b/engines/avalanche/seu_avvy.cpp
index 206c844..479f8c1 100644
--- a/engines/avalanche/seu_avvy.cpp
+++ b/engines/avalanche/seu_avvy.cpp
@@ -28,6 +28,7 @@
 #include "graph.h"
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 struct adxtype {
            varying_string<12> name; /* name of character */
@@ -111,4 +112,6 @@ int main(int argc, const char* argv[])
  close(sf);
  close(outfile);
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/sezedit.cpp b/engines/avalanche/sezedit.cpp
index d9f0e48..4ec0bf3 100644
--- a/engines/avalanche/sezedit.cpp
+++ b/engines/avalanche/sezedit.cpp
@@ -29,6 +29,7 @@
 /*#include "Crt.h"*/
 #include "graph.h"
 
+namespace Avalanche {
 
 const char marker = '\33';
 const char game[] = "Avalot";
@@ -428,3 +429,5 @@ int main(int argc, const char* argv[])
  general();
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/sezunit.cpp b/engines/avalanche/sezunit.cpp
index c98e6f8..e9dda13 100644
--- a/engines/avalanche/sezunit.cpp
+++ b/engines/avalanche/sezunit.cpp
@@ -30,6 +30,7 @@
 
 #include "sezunit.h"
 
+namespace Avalanche {
 
 struct markertype {
               word length;
@@ -99,3 +100,4 @@ void getchain(longint number)
  sezerror=sezok;  /* nowt went wrong */
 }
 
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/sezunit.h b/engines/avalanche/sezunit.h
index 76feb66..fa1f750 100644
--- a/engines/avalanche/sezunit.h
+++ b/engines/avalanche/sezunit.h
@@ -31,6 +31,7 @@
 
 /*#include "Gyro.h"*/
 
+namespace Avalanche {
 
 struct sezheader {
              array<1,2,char> initials;     /* should be "TT" */
@@ -65,5 +66,6 @@ void sez_setup();
 
 void getchain(longint number);
 
+} // End of namespace Avalanche.
 
-#endif
+#endif
\ No newline at end of file
diff --git a/engines/avalanche/sezxfr.cpp b/engines/avalanche/sezxfr.cpp
index 7ae6cec..3c2cff6 100644
--- a/engines/avalanche/sezxfr.cpp
+++ b/engines/avalanche/sezxfr.cpp
@@ -27,6 +27,9 @@
 
 /*#include "Crt.h"*/
  /*$V-*/
+
+namespace Avalanche {
+
 text t;
 string x;
 matrix<1,100,1,2,string> data;
@@ -116,4 +119,6 @@ int main(int argc, const char* argv[])
 
  /* Done! */
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/shell1.cpp b/engines/avalanche/shell1.cpp
index 5d6e2c9..1618174 100644
--- a/engines/avalanche/shell1.cpp
+++ b/engines/avalanche/shell1.cpp
@@ -28,6 +28,8 @@
 /*$M $800,0,0*/
 /*#include "Dos.h"*/
 
+namespace Avalanche {
+
 struct infotype {
             matrix<128,255,1,8,byte> chars;
             string data;
@@ -57,4 +59,6 @@ int main(int argc, const char* argv[])
  swapvectors;
  setintvec(0x1f,where);
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/shell2.cpp b/engines/avalanche/shell2.cpp
index cd6fec2..1bc68df 100644
--- a/engines/avalanche/shell2.cpp
+++ b/engines/avalanche/shell2.cpp
@@ -28,6 +28,8 @@
 /*#include "Dos.h"*/
 #include "graph.h"
 
+namespace Avalanche {
+
 struct infotype {
             matrix<128,255,1,8,byte> chars;
             string data;
@@ -47,4 +49,6 @@ int main(int argc, const char* argv[])
  output << "Press Enter..." << NL;
  input >> NL; closegraph();
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/slope.cpp b/engines/avalanche/slope.cpp
index 83bb1d7..54ab3d0 100644
--- a/engines/avalanche/slope.cpp
+++ b/engines/avalanche/slope.cpp
@@ -25,6 +25,8 @@
  * Copyright (c) 1994-1995 Mike, Mark and Thomas Thurman.
  */
 
+namespace Avalanche {
+
 struct joysetup {
             word xmid,ymid,xmin,ymin,xmax,ymax;
             byte centre; /* Size of centre in tenths */
@@ -370,3 +372,5 @@ int main(int argc, const char* argv[])
  store_slopeline();
  return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/spread.cpp b/engines/avalanche/spread.cpp
index 3ee7134..acc9535 100644
--- a/engines/avalanche/spread.cpp
+++ b/engines/avalanche/spread.cpp
@@ -28,6 +28,7 @@
 #include "graph.h"
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 struct adxtype {
            varying_string<12> name; /* name of character */
@@ -327,4 +328,6 @@ int main(int argc, const char* argv[])
   pickone();
  } while (!false);
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/spread2.cpp b/engines/avalanche/spread2.cpp
index 5a42427..6fa2159 100644
--- a/engines/avalanche/spread2.cpp
+++ b/engines/avalanche/spread2.cpp
@@ -31,6 +31,8 @@
 
 /*$V-,R+*/
 
+namespace Avalanche {
+
 const integer pattern = 12; /* Pattern for transparencies. */
 const fillpatterntype grey50 = {{0xaa, 0x55, 0xaa,
  0x55, 0xaa, 0x55, 0xaa, 0x55}};
@@ -876,4 +878,6 @@ int main(int argc, const char* argv[])
   }
  } while (!false);
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/squish.cpp b/engines/avalanche/squish.cpp
index d9077ed..231aae2 100644
--- a/engines/avalanche/squish.cpp
+++ b/engines/avalanche/squish.cpp
@@ -33,6 +33,8 @@
 /*                                                                          */
 /*--------------------------------------------------------------------------*/
 
+namespace Avalanche {
+
 const integer maxbuff = 8192    /* Buffer size for input and output files */;
 const integer maxtab = 4095     /* Table size - 1 ==> 2**10-1 ==> 12 bits */;
 const integer no_prev = 0x7fff  /* Special code for no previous character */;
@@ -476,3 +478,5 @@ int main(int argc, const char* argv[])
 
    return EXIT_SUCCESS;
 }     /* PibCompr */
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/ss_blank.cpp b/engines/avalanche/ss_blank.cpp
index 7e97654..907c09f 100644
--- a/engines/avalanche/ss_blank.cpp
+++ b/engines/avalanche/ss_blank.cpp
@@ -28,6 +28,8 @@
 /*#include "Dos.h"*/
 /*#include "Crt.h"*/
 
+namespace Avalanche {
+
 byte fv;
 boolean test;
 
@@ -59,4 +61,6 @@ int main(int argc, const char* argv[])
  output << NL;
  output << "Have fun!" << NL;
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/ss_clock.cpp b/engines/avalanche/ss_clock.cpp
index ae466bc..b735765 100644
--- a/engines/avalanche/ss_clock.cpp
+++ b/engines/avalanche/ss_clock.cpp
@@ -30,6 +30,7 @@
 #include "graph.h"
 /*#include "Drivers.h"*/
 
+namespace Avalanche {
 
 const integer width = 88;
 const integer height = 8; /* width & height of string returned by "time" */
@@ -105,4 +106,6 @@ int main(int argc, const char* argv[])
  output << NL;
  output << "Have fun!" << NL;
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/stars.cpp b/engines/avalanche/stars.cpp
index d6bc8ef..aaeada2 100644
--- a/engines/avalanche/stars.cpp
+++ b/engines/avalanche/stars.cpp
@@ -32,6 +32,8 @@
 /*#include "Rodent.h"*/
 /*#include "Tommys.h"*/
 
+namespace Avalanche {
+
 integer gd,gm;
 
 typedef matrix<'\0','\377',0,15,byte> fonttype;
@@ -585,3 +587,5 @@ int main(int argc, const char* argv[])
  closegraph();
  return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/status.cpp b/engines/avalanche/status.cpp
index c8931e6..f9c5ddb 100644
--- a/engines/avalanche/status.cpp
+++ b/engines/avalanche/status.cpp
@@ -27,6 +27,8 @@
 
 #include "graph.h"
 
+namespace Avalanche {
+
 integer gd,gm;
 
 void data(integer y, string a,string b)
@@ -55,4 +57,6 @@ int main(int argc, const char* argv[])
  data(177,"Bios/keyboard","AT (enhanced)"); /* or XT (bog standard) */
  data(187,"Display","VGA");
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/sticks.cpp b/engines/avalanche/sticks.cpp
index 0e18be0..840ca27 100644
--- a/engines/avalanche/sticks.cpp
+++ b/engines/avalanche/sticks.cpp
@@ -37,6 +37,7 @@
 
 #include "sticks.h"
 
+namespace Avalanche {
 
 enum lmc {l,m,r, last_lmc}; /* Left, middle & right */
 
@@ -112,4 +113,6 @@ void joykeys()
  }
 }
 
-     /* No init code. */
\ No newline at end of file
+     /* No init code. */
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/sticks.h b/engines/avalanche/sticks.h
index 24f59c4..c9235c0 100644
--- a/engines/avalanche/sticks.h
+++ b/engines/avalanche/sticks.h
@@ -34,7 +34,11 @@
 /*#include "Gyro.h"*/
      /* for solidarity */
 
+namespace Avalanche {
+
 byte joyway();
 void joykeys();
 
 #endif
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/sunrise.cpp b/engines/avalanche/sunrise.cpp
index d512892..a5c6b28 100644
--- a/engines/avalanche/sunrise.cpp
+++ b/engines/avalanche/sunrise.cpp
@@ -28,6 +28,8 @@
 #include "graph.h"
 /*#include "Crt.h"*/
 
+namespace Avalanche {
+
 integer gd,gm;
 longint tskellern /*absolute $0:244*/; /* Over int $61 */
 
@@ -79,3 +81,5 @@ int main(int argc, const char* argv[])
  }
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/tempo.cpp b/engines/avalanche/tempo.cpp
index 908e762..21ee150 100644
--- a/engines/avalanche/tempo.cpp
+++ b/engines/avalanche/tempo.cpp
@@ -27,6 +27,7 @@
 
 #include "graph.h"
 
+namespace Avalanche {
 
 enum flavourtype {ch_ega,ch_bgi,ch_natural,ch_two,ch_one, last_flavourtype};
 
@@ -99,3 +100,5 @@ int main(int argc, const char* argv[])
  choose();
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/test.cpp b/engines/avalanche/test.cpp
index ead8a37..22e49d0 100644
--- a/engines/avalanche/test.cpp
+++ b/engines/avalanche/test.cpp
@@ -28,6 +28,8 @@
 /*$M 2048,0,0*/
 /*#include "Dos.h"*/
 
+namespace Avalanche {
+
 const array<1,22,char> signature = string("*AVALOT* v1.00 ±tt± ")+'\3'+'\0';
 pointer saveint1f;
 int main(int argc, const char* argv[])
@@ -41,3 +43,5 @@ int main(int argc, const char* argv[])
  setintvec(0x1f,saveint1f);
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/test2.cpp b/engines/avalanche/test2.cpp
index 0001ac0..7efe64e 100644
--- a/engines/avalanche/test2.cpp
+++ b/engines/avalanche/test2.cpp
@@ -27,6 +27,8 @@
 
 /*#include "Dos.h"*/
 
+namespace Avalanche {
+
 const array<1,22,char> signature = string("*AVALOT* v1.00 ±tt± ")+'\3'+'\0';
 pointer getint1f;
 array<1,22,char> x;
@@ -38,4 +40,6 @@ int main(int argc, const char* argv[])
  if (x==signature) 
   output << "Signature found." << NL; else output << "Signature NOT found!" << NL;
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/testblit.cpp b/engines/avalanche/testblit.cpp
index 4154dcb..5fe1e3a 100644
--- a/engines/avalanche/testblit.cpp
+++ b/engines/avalanche/testblit.cpp
@@ -27,6 +27,7 @@
 
 #include "graph.h"
 
+namespace Avalanche {
 
 const integer ttp = 81920;
 const integer borland = xorput;
@@ -71,3 +72,5 @@ int main(int argc, const char* argv[])
  mblit();
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/testcard.cpp b/engines/avalanche/testcard.cpp
index 3a3fba5..f435df0 100644
--- a/engines/avalanche/testcard.cpp
+++ b/engines/avalanche/testcard.cpp
@@ -28,6 +28,8 @@
 #include "graph.h"
 /*#include "Dos.h"*/
 
+namespace Avalanche {
+
 integer gd,gm;
 string filename;
 
@@ -78,3 +80,5 @@ int main(int argc, const char* argv[])
  close(f);
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/testenh.cpp b/engines/avalanche/testenh.cpp
index b304a57..86b01b5 100644
--- a/engines/avalanche/testenh.cpp
+++ b/engines/avalanche/testenh.cpp
@@ -27,6 +27,8 @@
 
 /*#include "Enhanced.h"*/
 
+namespace Avalanche {
+
 int main(int argc, const char* argv[])
 {pio_initialize(argc, argv);
 ;
@@ -39,4 +41,6 @@ int main(int argc, const char* argv[])
   }
  } while (!(inchar=='\33'));
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/timeout.cpp b/engines/avalanche/timeout.cpp
index 073d415..2c83104 100644
--- a/engines/avalanche/timeout.cpp
+++ b/engines/avalanche/timeout.cpp
@@ -47,6 +47,7 @@
 #include "Acci.h"
 #include "enid.h"
 
+namespace Avalanche {
 
 byte fv;
 
@@ -617,3 +618,5 @@ static unit_timeout_initialize timeout_constructor;
 unit_timeout_initialize::unit_timeout_initialize() {
  fillchar(times,sizeof(times),'\0');
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/timeout.h b/engines/avalanche/timeout.h
index 99090dd..ceb8c36 100644
--- a/engines/avalanche/timeout.h
+++ b/engines/avalanche/timeout.h
@@ -32,6 +32,7 @@
 #include "gyro.h"
 #include "celer.h"
 
+namespace Avalanche {
 
 /* reason_ now runs between 1 and 28. */
 
@@ -253,4 +254,6 @@ void lose_timer(byte which);
 
  void give_lute_to_geida();
 
-#endif
+ } // End of namespace Avalanche.
+
+#endif
\ No newline at end of file
diff --git a/engines/avalanche/travel.cpp b/engines/avalanche/travel.cpp
index 4ce11d5..a9117c2 100644
--- a/engines/avalanche/travel.cpp
+++ b/engines/avalanche/travel.cpp
@@ -28,6 +28,8 @@
 #include "graph.h"
 /*#include "Crt.h"*/
 
+namespace Avalanche {
+
 integer gd,gm;
 
 void zoomout(integer x,integer y)
@@ -85,4 +87,6 @@ int main(int argc, const char* argv[])
  zoomin(577,124);
  zoomin(320,85);
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/trip.cpp b/engines/avalanche/trip.cpp
index 64b8878..867ea34 100644
--- a/engines/avalanche/trip.cpp
+++ b/engines/avalanche/trip.cpp
@@ -42,6 +42,7 @@
 #include "gyro.h"
 /*#include "Dos.h"*/
 
+namespace Avalanche {
 
 /*                                                                              */
 /*       EGA Graphic Primitive for Turbo Pascal 3.01A, Version 01FEB86.         */
@@ -161,4 +162,4 @@ void trippancy()
  budge();
 }
 
-
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/trip.h b/engines/avalanche/trip.h
index abef803..bfb645e 100644
--- a/engines/avalanche/trip.h
+++ b/engines/avalanche/trip.h
@@ -28,6 +28,7 @@
 #ifndef __trip_h__
 #define __trip_h__
 
+namespace Avalanche {
 
  void loadtrip();
 
@@ -41,4 +42,6 @@
 
  void trippancy();
 
-#endif
+} // End of namespace Avalanche.
+
+#endif
\ No newline at end of file
diff --git a/engines/avalanche/trip3.cpp b/engines/avalanche/trip3.cpp
index 4c04ef4..1ca78fb 100644
--- a/engines/avalanche/trip3.cpp
+++ b/engines/avalanche/trip3.cpp
@@ -36,6 +36,8 @@
 
 /*$S+*/
 
+namespace Avalanche {
+
 const integer avvy = 1;
 const integer test = 177;
 
@@ -254,3 +256,5 @@ static unit_trip3_initialize trip3_constructor;
 unit_trip3_initialize::unit_trip3_initialize() {; /* init portion of Trip3 */
  tramt=0;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/trip3.h b/engines/avalanche/trip3.h
index 9318726..4a5f6fb 100644
--- a/engines/avalanche/trip3.h
+++ b/engines/avalanche/trip3.h
@@ -31,6 +31,7 @@
 
 #include "gyro.h"
 
+namespace Avalanche {
 
  void loadtrip();
 
@@ -44,4 +45,6 @@
 
  void enter(byte what_handle, integer xx,integer yy,integer lx,integer ly, byte mmx,byte mmy,byte st);
 
-#endif
+ } // End of namespace Avalanche.
+
+#endif
\ No newline at end of file
diff --git a/engines/avalanche/trip42.cpp b/engines/avalanche/trip42.cpp
index 2dee669..a587dc1 100644
--- a/engines/avalanche/trip42.cpp
+++ b/engines/avalanche/trip42.cpp
@@ -42,6 +42,7 @@
 /*#include "Dropdown.h"*/
 /*#include "Access.h"*/
 
+namespace Avalanche {
 
 /*procedure copier(x1,y1,x2,y2,x3,y3,x4,y4:integer);
 
@@ -473,3 +474,5 @@ static unit_trip42_initialize trip42_constructor;
 unit_trip42_initialize::unit_trip42_initialize() {;
  getsetclear();
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/trip42.h b/engines/avalanche/trip42.h
index 72b9499..644a721 100644
--- a/engines/avalanche/trip42.h
+++ b/engines/avalanche/trip42.h
@@ -35,6 +35,7 @@
 /*#include "Gyro.h"*/
 /*#include "Sticks.h"*/
 
+namespace Avalanche {
 
 const integer maxgetset = 10;
 
@@ -113,5 +114,6 @@ EXTERN array<0,1,getsettype> getset;
 #undef EXTERN
 #define EXTERN extern
 
+} // End of namespace Avalanche.
 
-#endif
+#endif
\ No newline at end of file
diff --git a/engines/avalanche/trip5.cpp b/engines/avalanche/trip5.cpp
index 5742bf3..fc9429b 100644
--- a/engines/avalanche/trip5.cpp
+++ b/engines/avalanche/trip5.cpp
@@ -47,6 +47,7 @@
 /*#include "Sequence.h"*/
 /*#include "Enid.h"*/
 
+namespace Avalanche {
 
 void loadtrip()
 {
@@ -1911,3 +1912,5 @@ static unit_trip5_initialize trip5_constructor;
 unit_trip5_initialize::unit_trip5_initialize() {
  getsetclear(); mustexclaim=false;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/trip5.h b/engines/avalanche/trip5.h
index 3811c85..6c18232 100644
--- a/engines/avalanche/trip5.h
+++ b/engines/avalanche/trip5.h
@@ -34,6 +34,8 @@
 /*#include "Gyro.h"*/
 /*#include "Sticks.h"*/
 
+namespace Avalanche {
+
 
 const integer maxgetset = 35;
 
@@ -198,5 +200,6 @@ EXTERN boolean mustexclaim; EXTERN word saywhat;
 #undef EXTERN
 #define EXTERN extern
 
+} // End of namespace Avalanche.
 
-#endif
+#endif
\ No newline at end of file
diff --git a/engines/avalanche/trip5tst.cpp b/engines/avalanche/trip5tst.cpp
index 5b78efa..8dbd985 100644
--- a/engines/avalanche/trip5tst.cpp
+++ b/engines/avalanche/trip5tst.cpp
@@ -30,6 +30,8 @@
 
 /*$R+*/
 
+namespace Avalanche {
+
 struct adxtype {
            varying_string<12> name; /* name of character */
            varying_string<16> comment; /* comment */
@@ -156,4 +158,6 @@ int main(int argc, const char* argv[])
  plotone(0,0);
  close(inf);
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/trip5xf.cpp b/engines/avalanche/trip5xf.cpp
index 09a8eac..f83f9c7 100644
--- a/engines/avalanche/trip5xf.cpp
+++ b/engines/avalanche/trip5xf.cpp
@@ -28,6 +28,7 @@
 #include "graph.h"
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 const string crlf = string('\15')+'\12'; const char eof_ = '\32';
 const array<1,177,char> trip5head = 
@@ -193,4 +194,6 @@ int main(int argc, const char* argv[])
  blockwrite(out,trip5foot,50);
  close(out);
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/tripoop.cpp b/engines/avalanche/tripoop.cpp
index 6ddc12c..0edd926 100644
--- a/engines/avalanche/tripoop.cpp
+++ b/engines/avalanche/tripoop.cpp
@@ -29,6 +29,7 @@
 #include "graph.h"
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 const integer up = 0;
 const integer right = 1;
@@ -312,4 +313,6 @@ int main(int argc, const char* argv[])
   } while (!keypressed());
  }
 return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/ttmenuxf.cpp b/engines/avalanche/ttmenuxf.cpp
index ad986e1..536ebcd 100644
--- a/engines/avalanche/ttmenuxf.cpp
+++ b/engines/avalanche/ttmenuxf.cpp
@@ -29,6 +29,8 @@
 /*#include "Tommys.h"*/
 /*#include "Crt.h"*/
 
+namespace Avalanche {
+
 integer gd,gm;
 word s; pointer p;
 file<byte> f;
@@ -134,3 +136,5 @@ int main(int argc, const char* argv[])
  close(f);
  return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/unsquish.cpp b/engines/avalanche/unsquish.cpp
index bf98aeb..e0ede8e 100644
--- a/engines/avalanche/unsquish.cpp
+++ b/engines/avalanche/unsquish.cpp
@@ -28,6 +28,7 @@
 /*$S-*/
 #include "graph.h"
 
+namespace Avalanche {
 
 typedef array<1,50000,byte> buffertype;
 
@@ -546,4 +547,4 @@ delete buffer;
 return EXIT_SUCCESS;
 }
 
-
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/viewdocs.cpp b/engines/avalanche/viewdocs.cpp
index 52edfe4..58dc7b6 100644
--- a/engines/avalanche/viewdocs.cpp
+++ b/engines/avalanche/viewdocs.cpp
@@ -30,6 +30,7 @@
 /*#include "crt.h"*/
 /*#include "tommys.h"*/
 
+namespace Avalanche {
 
 typedef array<0,49999,byte> bigtextarray;
 struct chaptertype {
@@ -545,3 +546,5 @@ int main(int argc, const char* argv[])
  endit();
  return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/visa.cpp b/engines/avalanche/visa.cpp
index dea03b1..c801a74 100644
--- a/engines/avalanche/visa.cpp
+++ b/engines/avalanche/visa.cpp
@@ -44,6 +44,7 @@
 /*#include "Trip5.h"*/
 /*#include "Lucerna.h"*/
 
+namespace Avalanche {
 
 const boolean bubbling = false;
 const boolean report_dixi_errors = true;
@@ -286,4 +287,4 @@ void talkto(byte whom)
  }
 }
 
-
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/visa.h b/engines/avalanche/visa.h
index 0c695fb..474a009 100644
--- a/engines/avalanche/visa.h
+++ b/engines/avalanche/visa.h
@@ -28,9 +28,12 @@
 #ifndef __visa_h__
 #define __visa_h__
 
+namespace Avalanche {
 
 void dixi(char block, byte point);
 
 void talkto(byte whom);
 
-#endif
+} // End of namespace Avalanche.
+
+#endif
\ No newline at end of file
diff --git a/engines/avalanche/visatest.cpp b/engines/avalanche/visatest.cpp
index 5cbcf64..8544239 100644
--- a/engines/avalanche/visatest.cpp
+++ b/engines/avalanche/visatest.cpp
@@ -27,6 +27,7 @@
 
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 char block;
 word point;
@@ -105,4 +106,6 @@ int main(int argc, const char* argv[])
   display_it();
  } while (!false);
  return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/xf_gover.cpp b/engines/avalanche/xf_gover.cpp
index 98590e6..074c3b1 100644
--- a/engines/avalanche/xf_gover.cpp
+++ b/engines/avalanche/xf_gover.cpp
@@ -27,6 +27,7 @@
 
 #include "graph.h"
 
+namespace Avalanche {
 
 void load()
 {
@@ -117,3 +118,5 @@ int main(int argc, const char* argv[])
  dump_to_file(26,88,78,147,"gameover.avd");
  return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/xf_help.cpp b/engines/avalanche/xf_help.cpp
index ec7b1d1..7a99b50 100644
--- a/engines/avalanche/xf_help.cpp
+++ b/engines/avalanche/xf_help.cpp
@@ -28,6 +28,7 @@
 /*#include "Crt.h"*/
 /*#include "Tommys.h"*/
 
+namespace Avalanche {
 
 const integer max_pages = 34;
 
@@ -107,4 +108,6 @@ int main(int argc, const char* argv[])
 
  close(o);
  return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/xf_visa.cpp b/engines/avalanche/xf_visa.cpp
index c0b2573..4df55cd 100644
--- a/engines/avalanche/xf_visa.cpp
+++ b/engines/avalanche/xf_visa.cpp
@@ -30,6 +30,8 @@
 
 /*$R+*/
 
+namespace Avalanche {
+
 const varying_string<9> used = "DNPQSTUXZ";
 
 const varying_string<12> header = string("Avalot Sez:")+'\32';
@@ -199,4 +201,6 @@ int main(int argc, const char* argv[])
 
  write_out(); 
  return EXIT_SUCCESS;
-}
\ No newline at end of file
+}
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/xfbutton.cpp b/engines/avalanche/xfbutton.cpp
index 197aa96..013a121 100644
--- a/engines/avalanche/xfbutton.cpp
+++ b/engines/avalanche/xfbutton.cpp
@@ -27,6 +27,8 @@
 
 #include "graph.h"
 
+namespace Avalanche {
+
 integer x,y;
 untyped_file f,out;
 
@@ -84,3 +86,5 @@ int main(int argc, const char* argv[])
  close(out);
  return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/xfghost.cpp b/engines/avalanche/xfghost.cpp
index 6eeec28..1c7673c 100644
--- a/engines/avalanche/xfghost.cpp
+++ b/engines/avalanche/xfghost.cpp
@@ -28,6 +28,7 @@
 #include "graph.h"
 /*#include "Crt.h"*/
 
+namespace Avalanche {
 
 const array<1,44,char> chunkheader = 
 string("Spooky file! Nearly a Chunk... (c) MT.")+'\32'+'\261'+'\x30'+'\x1'+'\x75'+'\261';
@@ -268,3 +269,5 @@ int main(int argc, const char* argv[])
 #endif
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/zapdraw.cpp b/engines/avalanche/zapdraw.cpp
index 9b13dbb..fe1619a 100644
--- a/engines/avalanche/zapdraw.cpp
+++ b/engines/avalanche/zapdraw.cpp
@@ -29,6 +29,7 @@
 /*#include "Crt.h"*/
 /*#include "Dos.h"*/
 
+namespace Avalanche {
 
 untyped_file f;
 byte bit;
@@ -60,3 +61,5 @@ int main(int argc, const char* argv[])
  rectangle(  0, 10, 27, 19);
 return EXIT_SUCCESS;
 }
+
+} // End of namespace Avalanche.
\ No newline at end of file


Commit: 38bc20a0763f0f83ea3c0a94a68a1edea0d08514
    https://github.com/scummvm/scummvm/commit/38bc20a0763f0f83ea3c0a94a68a1edea0d08514
Author: uruk (koppirnyo at gmail.com)
Date: 2013-06-18T01:23:29-07:00

Commit Message:
AVALANCHE: Use Artistic Style.

Changed paths:
    engines/avalanche/1stoff.cpp
    engines/avalanche/access.cpp
    engines/avalanche/access.h
    engines/avalanche/acci.cpp
    engines/avalanche/acci.h
    engines/avalanche/also.cpp
    engines/avalanche/andexor.cpp
    engines/avalanche/andexor2.cpp
    engines/avalanche/andextst.cpp
    engines/avalanche/arch.cpp
    engines/avalanche/arch.h
    engines/avalanche/avalot9.cpp
    engines/avalanche/avbkgrnd.cpp
    engines/avalanche/avmenu.cpp
    engines/avalanche/avvyans.cpp
    engines/avalanche/avvyans2.cpp
    engines/avalanche/avvymonk.cpp
    engines/avalanche/bakchunk.cpp
    engines/avalanche/basher.cpp
    engines/avalanche/basher.h
    engines/avalanche/cadburys.cpp
    engines/avalanche/cadburys.h
    engines/avalanche/celer.cpp
    engines/avalanche/celer.h
    engines/avalanche/ch_egats.cpp
    engines/avalanche/charmap.cpp
    engines/avalanche/chunker.cpp
    engines/avalanche/chunkxf1.cpp
    engines/avalanche/chunkxf2.cpp
    engines/avalanche/chunkxf3.cpp
    engines/avalanche/chunkxf4.cpp
    engines/avalanche/chunkxf5.cpp
    engines/avalanche/chunkxf6.cpp
    engines/avalanche/chunkxf7.cpp
    engines/avalanche/chunkxf8.cpp
    engines/avalanche/chunkxf9.cpp
    engines/avalanche/chunkxfa.cpp
    engines/avalanche/chunkxfb.cpp
    engines/avalanche/chunkxfc.cpp
    engines/avalanche/chunkxfd.cpp
    engines/avalanche/chunkxfe.cpp
    engines/avalanche/chunkxff.cpp
    engines/avalanche/chunkxfg.cpp
    engines/avalanche/chunkxfh.cpp
    engines/avalanche/chunkxfi.cpp
    engines/avalanche/chunkxfj.cpp
    engines/avalanche/chunkxfk.cpp
    engines/avalanche/chunkxfl.cpp
    engines/avalanche/clock.cpp
    engines/avalanche/closing.cpp
    engines/avalanche/closing.h
    engines/avalanche/convert.cpp
    engines/avalanche/convmous.cpp
    engines/avalanche/credits.cpp
    engines/avalanche/displtxt.cpp
    engines/avalanche/dropdown.cpp
    engines/avalanche/dropdown.h
    engines/avalanche/dwidth.cpp
    engines/avalanche/edhead.cpp
    engines/avalanche/edna.cpp
    engines/avalanche/enhanced.cpp
    engines/avalanche/enhanced.h
    engines/avalanche/enid.cpp
    engines/avalanche/enid.h
    engines/avalanche/filer.cpp
    engines/avalanche/fileunit.cpp
    engines/avalanche/fileunit.h
    engines/avalanche/filing.cpp
    engines/avalanche/folktemp.cpp
    engines/avalanche/fontslid.cpp
    engines/avalanche/frere.cpp
    engines/avalanche/g-room.cpp
    engines/avalanche/golden.cpp
    engines/avalanche/gyro.cpp
    engines/avalanche/gyro.h
    engines/avalanche/help.cpp
    engines/avalanche/help2.cpp
    engines/avalanche/helpbak.cpp
    engines/avalanche/helpbak.h
    engines/avalanche/helper.cpp
    engines/avalanche/helper.h
    engines/avalanche/hibits.cpp
    engines/avalanche/highs.cpp
    engines/avalanche/highs.h
    engines/avalanche/hiz.cpp
    engines/avalanche/incline.cpp
    engines/avalanche/incline.h
    engines/avalanche/initxf.cpp
    engines/avalanche/inputtes.cpp
    engines/avalanche/intro.cpp
    engines/avalanche/ints.cpp
    engines/avalanche/joysetup.cpp
    engines/avalanche/joystick.cpp
    engines/avalanche/joystick.h
    engines/avalanche/loading.cpp
    engines/avalanche/logger.cpp
    engines/avalanche/logger.h
    engines/avalanche/lucerna.cpp
    engines/avalanche/lucerna.h
    engines/avalanche/magic2.cpp
    engines/avalanche/magidraw.cpp
    engines/avalanche/magishuf.cpp
    engines/avalanche/make!.cpp
    engines/avalanche/makesez.cpp
    engines/avalanche/makevmou.cpp
    engines/avalanche/menuxf.cpp
    engines/avalanche/minstran.cpp
    engines/avalanche/newsprit.cpp
    engines/avalanche/nim.cpp
    engines/avalanche/nimdraw.cpp
    engines/avalanche/nimunit.cpp
    engines/avalanche/nimunit.h
    engines/avalanche/oldfiler.cpp
    engines/avalanche/oldhighs.cpp
    engines/avalanche/oldincln.cpp
    engines/avalanche/oldincln.h
    engines/avalanche/oldtrip.cpp
    engines/avalanche/oldtrip.h
    engines/avalanche/omtest.cpp
    engines/avalanche/oopmenu.cpp
    engines/avalanche/oopmenu.h
    engines/avalanche/overlap.cpp
    engines/avalanche/overscro.cpp
    engines/avalanche/particle.cpp
    engines/avalanche/pictemp.cpp
    engines/avalanche/pictemp2.cpp
    engines/avalanche/pingo.cpp
    engines/avalanche/pingo.h
    engines/avalanche/plottest.cpp
    engines/avalanche/preview1.cpp
    engines/avalanche/qintro.cpp
    engines/avalanche/qstars.cpp
    engines/avalanche/rawupd.cpp
    engines/avalanche/readsez.cpp
    engines/avalanche/reginam.cpp
    engines/avalanche/sackb1.cpp
    engines/avalanche/sackb1.h
    engines/avalanche/sackb3.cpp
    engines/avalanche/sackblas.cpp
    engines/avalanche/saving.cpp
    engines/avalanche/scr_1.cpp
    engines/avalanche/scr_2.cpp
    engines/avalanche/scr_3.cpp
    engines/avalanche/scr_4.cpp
    engines/avalanche/scr_5.cpp
    engines/avalanche/scr_9.cpp
    engines/avalanche/scrolls.cpp
    engines/avalanche/scrolls.h
    engines/avalanche/sequence.cpp
    engines/avalanche/sequence.h
    engines/avalanche/setup.cpp
    engines/avalanche/seu.cpp
    engines/avalanche/seu_avvy.cpp
    engines/avalanche/sez.cpp
    engines/avalanche/sezedit.cpp
    engines/avalanche/sezunit.cpp
    engines/avalanche/sezunit.h
    engines/avalanche/sezxfr.cpp
    engines/avalanche/shell1.cpp
    engines/avalanche/shell2.cpp
    engines/avalanche/slope.cpp
    engines/avalanche/spread.cpp
    engines/avalanche/spread2.cpp
    engines/avalanche/squish.cpp
    engines/avalanche/ss_blank.cpp
    engines/avalanche/ss_clock.cpp
    engines/avalanche/stars.cpp
    engines/avalanche/status.cpp
    engines/avalanche/sticks.cpp
    engines/avalanche/sticks.h
    engines/avalanche/sunrise.cpp
    engines/avalanche/tempo.cpp
    engines/avalanche/test.cpp
    engines/avalanche/test2.cpp
    engines/avalanche/testblit.cpp
    engines/avalanche/testcard.cpp
    engines/avalanche/testenh.cpp
    engines/avalanche/timeout.cpp
    engines/avalanche/timeout.h
    engines/avalanche/travel.cpp
    engines/avalanche/trip.cpp
    engines/avalanche/trip.h
    engines/avalanche/trip3.cpp
    engines/avalanche/trip3.h
    engines/avalanche/trip42.cpp
    engines/avalanche/trip42.h
    engines/avalanche/trip5.cpp
    engines/avalanche/trip5.h
    engines/avalanche/trip5tst.cpp
    engines/avalanche/trip5xf.cpp
    engines/avalanche/tripoop.cpp
    engines/avalanche/ttmenuxf.cpp
    engines/avalanche/unsquish.cpp
    engines/avalanche/viewdocs.cpp
    engines/avalanche/visa.cpp
    engines/avalanche/visa.h
    engines/avalanche/visatest.cpp
    engines/avalanche/waver.cpp
    engines/avalanche/xf_gover.cpp
    engines/avalanche/xf_help.cpp
    engines/avalanche/xf_visa.cpp
    engines/avalanche/xfbutton.cpp
    engines/avalanche/xfghost.cpp
    engines/avalanche/zapdraw.cpp



diff --git a/engines/avalanche/1stoff.cpp b/engines/avalanche/1stoff.cpp
index 0f9e19b..9748605 100644
--- a/engines/avalanche/1stoff.cpp
+++ b/engines/avalanche/1stoff.cpp
@@ -11,7 +11,7 @@
 
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
 
  * You should have received a copy of the GNU General Public License
@@ -30,55 +30,59 @@
 
 namespace Avalanche {
 
-matrix<1,7,1,3,byte> cols;
+matrix<1, 7, 1, 3, byte> cols;
 byte fv;
 
-void adjust()
-{
- registers r;
-;
- {;
-  ax=0x1012;
-  bx=1;
-  cx=2;
-  es=seg(cols);
-  dx=ofs(cols);
+void adjust() {
+	registers r;
+	;
+	{
+		;
+		ax = 0x1012;
+		bx = 1;
+		cx = 2;
+		es = seg(cols);
+		dx = ofs(cols);
 
- }
+	}
 
- intr(0x10,r);
+	intr(0x10, r);
 }
 
-int main(int argc, const char* argv[])
-{pio_initialize(argc, argv);
-;
- textattr=0;
- clrscr;
-
- fillchar(cols,sizeof(cols),'\0');
- adjust();
-
- gotoxy(29,10); textattr=1; output << "Thorsoft of Letchworth";
- gotoxy(36,12); textattr=2; output << "presents";
-
- for( fv=1; fv <= 77; fv ++)
- {;
-  delay(77);
-  if (fv<64)  fillchar(cols[1],3,chr(fv));
-  if (fv>14)  fillchar(cols[2],3,chr(fv-14));
-  adjust();
- }
-
- delay(100);
-
- for( fv=63; fv >= 1; fv --)
- {;
-  fillchar(cols,sizeof(cols),chr(fv));
-  delay(37);
-  adjust();
- }
-
-return EXIT_SUCCESS;
+int main(int argc, const char *argv[]) {
+	pio_initialize(argc, argv);
+	;
+	textattr = 0;
+	clrscr;
+
+	fillchar(cols, sizeof(cols), '\0');
+	adjust();
+
+	gotoxy(29, 10);
+	textattr = 1;
+	output << "Thorsoft of Letchworth";
+	gotoxy(36, 12);
+	textattr = 2;
+	output << "presents";
+
+	for (fv = 1; fv <= 77; fv ++) {
+		;
+		delay(77);
+		if (fv < 64)  fillchar(cols[1], 3, chr(fv));
+		if (fv > 14)  fillchar(cols[2], 3, chr(fv - 14));
+		adjust();
+	}
+
+	delay(100);
+
+	for (fv = 63; fv >= 1; fv --) {
+		;
+		fillchar(cols, sizeof(cols), chr(fv));
+		delay(37);
+		adjust();
+	}
+
+	return EXIT_SUCCESS;
 }
 
 } // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/access.cpp b/engines/avalanche/access.cpp
index 951bc1c..abc944f 100644
--- a/engines/avalanche/access.cpp
+++ b/engines/avalanche/access.cpp
@@ -11,7 +11,7 @@
 
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
 
  * You should have received a copy of the GNU General Public License
@@ -49,148 +49,160 @@ namespace Avalanche {
 boolean int_say_went_ok;
 
 void int_say(string filename, boolean bubble)
- /* Internal use ONLY! */
+/* Internal use ONLY! */
 {
-    untyped_file f;
-;
- /*$I-*/
- assign(f,filename);
- reset(f,1);
- if (ioresult!=0) 
- {;
-  int_say_went_ok=false;
-  return;
- }
- bufsize=filesize(f);
- blockread(f,buffer,bufsize);
- if (bubble) 
- {;
-  bufsize += 1;
-  buffer[bufsize]='\2';
- }
- close(f);
- /*$I+*/
-
- calldrivers;
-
- int_say_went_ok=true;
+	untyped_file f;
+	;
+	/*$I-*/
+	assign(f, filename);
+	reset(f, 1);
+	if (ioresult != 0) {
+		;
+		int_say_went_ok = false;
+		return;
+	}
+	bufsize = filesize(f);
+	blockread(f, buffer, bufsize);
+	if (bubble) {
+		;
+		bufsize += 1;
+		buffer[bufsize] = '\2';
+	}
+	close(f);
+	/*$I+*/
+
+	calldrivers;
+
+	int_say_went_ok = true;
 }
 
-void dixi(char p, byte n)
-{; exit(153);
- int_say(string('s')+p+strf(n)+".raw",false);
+void dixi(char p, byte n) {
+	;
+	exit(153);
+	int_say(string('s') + p + strf(n) + ".raw", false);
 }
 
-void talkto(byte whom)
-{
- byte fv;
- boolean no_matches;
-; exit(153);
- if (person==pardon) 
- {;
-  person=chr(subjnumber);
-  subjnumber=0;
- }
-
- switch (chr(whom)) {
-  case pspludwick:
-
-    if ((dna.lustie_is_asleep) & (~ dna.obj[potion])) 
-    {;
-     dixi('q',68);
-     dna.obj[potion]=true;
-     objectlist; points(3); return;
-    } else
-    {;
-     if (dna.talked_to_crapulus) 
-      switch (dna.given2spludwick) { /* Spludwick - what does he need? */
-         /* 0 - let it through to use normal routine. */
-         case RANGE_2(1,2): {;
-                display(string("Can you get me ")+
-                 get_better(spludwick_order[dna.given2spludwick])+", please?"+
-                  "\232\2");
-                return;
-               }
-               break;
-         case 3: {;
-             dixi('q',30); /* need any help with the game? */
-             return;
-            }
-            break;
-       }
-     else dixi('q',42); /* Haven't talked to Crapulus. Go and talk to him. */
-    }
-    break;
-
-  case pibythneth: if (dna.givenbadgetoiby) 
-              {;
-               dixi('q',33); /* Thanks a lot! */
-               return; /* And leave the proc. */
-              }
-              break; /* Or... just continue, 'cos he hasn't got it. */
-  case pdogfood: if (dna.wonnim) 
-            {;     /* We've won the game. */
-             dixi('q',6); /* "I'm Not Playing!" */
-             return; /* Zap back. */
-            }
-            break;
-  case payles: if (~ dna.ayles_is_awake) 
-          {;
-           dixi('q',43); /* He's fast asleep! */
-           return;
-          }
-          break;
-  case pgeida: if (dna.geida_given_potion) 
-           dna.geida_follows=true; else
-          {;
-           dixi('u',17);
-           return;
-          }
-          break;
- }
-
- if (whom>149)  whom -= 149;
-
- no_matches=true;
- for( fv=1; fv <= numtr; fv ++)
-  if (tr[fv].a.accinum==whom) 
-  {;
-   display(string('\23')+chr(fv+48)+'\4');
-   no_matches=false;
-   flush();
-  }
-
- if (no_matches)  display("\23\23\4");
-
- if (subjnumber==0)   /* For the moment... later we'll parse "say". */
-  int_say(string("ss")+strf(whom)+".raw",true);
- else
- {;
-  int_say(string("ss")+strf(whom)+'-'+strf(subjnumber)+".raw",true);
-  if (! int_say_went_ok)      /* File not found! */
-   dixi('n',whom);
- }
-
- switch (chr(whom+149)) {
-  case pcrapulus:
-     {;     /* Crapulus: get the badge - first time only */
-      dna.obj[badge]=true;
-      objectlist;
-      dixi('q',1); /* Circular from Cardiff. */
-      dna.talked_to_crapulus=true;
-
-      whereis[pcrapulus]=177;  /* Crapulus walks off. */
-
-      tr[2].vanishifstill=true;
-      tr[2].walkto(4); /* Walks away. */
-
-      points(2);
-     }
-     break;
-
-  case payles: dixi('q',44); break; /* Can you get me a pen? */
-
- }
+void talkto(byte whom) {
+	byte fv;
+	boolean no_matches;
+	;
+	exit(153);
+	if (person == pardon) {
+		;
+		person = chr(subjnumber);
+		subjnumber = 0;
+	}
+
+	switch (chr(whom)) {
+	case pspludwick:
+
+		if ((dna.lustie_is_asleep) & (~ dna.obj[potion])) {
+			;
+			dixi('q', 68);
+			dna.obj[potion] = true;
+			objectlist;
+			points(3);
+			return;
+		} else {
+			;
+			if (dna.talked_to_crapulus)
+				switch (dna.given2spludwick) { /* Spludwick - what does he need? */
+					/* 0 - let it through to use normal routine. */
+				case RANGE_2(1, 2): {
+					;
+					display(string("Can you get me ") +
+					        get_better(spludwick_order[dna.given2spludwick]) + ", please?" +
+					        "\232\2");
+					return;
+				}
+				break;
+				case 3: {
+					;
+					dixi('q', 30); /* need any help with the game? */
+					return;
+				}
+				break;
+				}
+			else dixi('q', 42); /* Haven't talked to Crapulus. Go and talk to him. */
+		}
+		break;
+
+	case pibythneth:
+		if (dna.givenbadgetoiby) {
+			;
+			dixi('q', 33); /* Thanks a lot! */
+			return; /* And leave the proc. */
+		}
+		break; /* Or... just continue, 'cos he hasn't got it. */
+	case pdogfood:
+		if (dna.wonnim) {
+			;     /* We've won the game. */
+			dixi('q', 6); /* "I'm Not Playing!" */
+			return; /* Zap back. */
+		}
+		break;
+	case payles:
+		if (~ dna.ayles_is_awake) {
+			;
+			dixi('q', 43); /* He's fast asleep! */
+			return;
+		}
+		break;
+	case pgeida:
+		if (dna.geida_given_potion)
+			dna.geida_follows = true;
+		else {
+			;
+			dixi('u', 17);
+			return;
+		}
+		break;
+	}
+
+	if (whom > 149)  whom -= 149;
+
+	no_matches = true;
+	for (fv = 1; fv <= numtr; fv ++)
+		if (tr[fv].a.accinum == whom) {
+			;
+			display(string('\23') + chr(fv + 48) + '\4');
+			no_matches = false;
+			flush();
+		}
+
+	if (no_matches)  display("\23\23\4");
+
+	if (subjnumber == 0) /* For the moment... later we'll parse "say". */
+		int_say(string("ss") + strf(whom) + ".raw", true);
+	else {
+		;
+		int_say(string("ss") + strf(whom) + '-' + strf(subjnumber) + ".raw", true);
+		if (! int_say_went_ok)      /* File not found! */
+			dixi('n', whom);
+	}
+
+	switch (chr(whom + 149)) {
+	case pcrapulus: {
+		;     /* Crapulus: get the badge - first time only */
+		dna.obj[badge] = true;
+		objectlist;
+		dixi('q', 1); /* Circular from Cardiff. */
+		dna.talked_to_crapulus = true;
+
+		whereis[pcrapulus] = 177; /* Crapulus walks off. */
+
+		tr[2].vanishifstill = true;
+		tr[2].walkto(4); /* Walks away. */
+
+		points(2);
+	}
+	break;
+
+	case payles:
+		dixi('q', 44);
+		break; /* Can you get me a pen? */
+
+	}
 }
 
 } // End of namespace Avalanche.
\ No newline at end of file
diff --git a/engines/avalanche/access.h b/engines/avalanche/access.h
index e985953..2e4a081 100644
--- a/engines/avalanche/access.h
+++ b/engines/avalanche/access.h
@@ -11,7 +11,7 @@
 
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
 
  * You should have received a copy of the GNU General Public License
diff --git a/engines/avalanche/acci.cpp b/engines/avalanche/acci.cpp
index f33d7c2..adaad69 100644
--- a/engines/avalanche/acci.cpp
+++ b/engines/avalanche/acci.cpp
@@ -11,7 +11,7 @@
 
  * This program is distributed in the hope that it will be useful,
  * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.	 See the
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  * GNU General Public License for more details.
 
  * You should have received a copy of the GNU General Public License
@@ -58,42 +58,43 @@ namespace Avalanche {
 byte fv;
 
 string wordnum(string x);
-static char whatsit; 
-static word fv; 
+static char whatsit;
+static word fv;
 static boolean gotcha;
 
-static void checkword(string& x) /* Checks word "fv". */
-{
- {
-  vocab& with = words[fv]; 
+static void checkword(string &x) { /* Checks word "fv". */
+	{
+		vocab &with = words[fv];
 
-  if ((with.w==x) || ((copy(with.w,1,length(x))==x) && ! gotcha))
-        whatsit=chr(with.n);
-  if (with.w==x)  gotcha=true;
- }
+		if ((with.w == x) || ((copy(with.w, 1, length(x)) == x) && ! gotcha))
+			whatsit = chr(with.n);
+		if (with.w == x)  gotcha = true;
+	}
 }
 
 string wordnum(string x)
 
 {
- string wordnum_result;
- if (x=="")  { wordnum_result=""; return wordnum_result; }
- whatsit=pardon; gotcha=false;
- for( fv=nowords; fv >= 1; fv --) checkword(x);
- wordnum_result=whatsit;
- return wordnum_result;
+	string wordnum_result;
+	if (x == "")  {
+		wordnum_result = "";
+		return wordnum_result;
+	}
+	whatsit = pardon;
+	gotcha = false;
+	for (fv = nowords; fv >= 1; fv --) checkword(x);
+	wordnum_result = whatsit;
+	return wordnum_result;
 }
 
-void replace(string old1,string new1)
-{
-    byte q;
-
- q=pos(old1,thats);
- while (q!=0) 
- {
-  thats=copy(thats,1,q-1)+new1+copy(thats,q+length(old1),255);
-  q=pos(old1,thats);
- }
+void replace(string old1, string new1) {
+	byte q;
+
+	q = pos(old1, thats);
+	while (q != 0) {
+		thats = copy(thats, 1, q - 1) + new1 + copy(thats, q + length(old1), 255);
+		q = pos(old1, thats);
+	}
 }
 
 /*procedure ninetydump;
@@ -112,1588 +113,1844 @@ begin
  display('Dumped.');
 end;*/
 
-string rank()
-{
-    byte fv;
-
- string rank_result;
- for( fv=1; fv <= 8; fv ++)
-  if ((dna.score>=ranks[fv].score)
-   && (dna.score<ranks[fv+1].score)) 
-   {
-    rank_result=ranks[fv].title;
-    return rank_result;
-   }
- return rank_result;
+string rank() {
+	byte fv;
+
+	string rank_result;
+	for (fv = 1; fv <= 8; fv ++)
+		if ((dna.score >= ranks[fv].score)
+		        && (dna.score < ranks[fv + 1].score)) {
+			rank_result = ranks[fv].title;
+			return rank_result;
+		}
+	return rank_result;
 }
 
-string totaltime()
-{
-      const real ticks_in_1_sec = (real)(65535)/3600;
- word h,m,s; varying_string<70> a;
-
-  /* There are 65535 clock ticks in a second,
-    1092.25 in a minute, and
-    65535 in an hour. */
- string totaltime_result;
- h=trunc(dna.total_time/ticks_in_1_sec);  /* No. of seconds. */
- m=h % 3600; h=h / 3600;
- s=m % 60;   m=m / 60;
-
- a="You've been playing for ";
-
- if (h>0)  a=a+strf(h)+" hours, ";
- if ((m>0) || (h!=0))  a=a+strf(m)+" minutes and ";
- a=a+strf(s)+" seconds.";
-
- totaltime_result=a;
- return totaltime_result;
+string totaltime() {
+	const real ticks_in_1_sec = (real)(65535) / 3600;
+	word h, m, s;
+	varying_string<70> a;
+
+	/* There are 65535 clock ticks in a second,
+	  1092.25 in a minute, and
+	  65535 in an hour. */
+	string totaltime_result;
+	h = trunc(dna.total_time / ticks_in_1_sec); /* No. of seconds. */
+	m = h % 3600;
+	h = h / 3600;
+	s = m % 60;
+	m = m / 60;
+
+	a = "You've been playing for ";
+
+	if (h > 0)  a = a + strf(h) + " hours, ";
+	if ((m > 0) || (h != 0))  a = a + strf(m) + " minutes and ";
+	a = a + strf(s) + " seconds.";
+
+	totaltime_result = a;
+	return totaltime_result;
 }
 
 void cheatparse(string codes);
-static word num; 
+static word num;
 static integer e;
 
-static void number(string& codes)
-{
- val(codes,num,e);
+static void number(string &codes) {
+	val(codes, num, e);
 }
 
-void cheatparse(string codes)
-{
-    char cmd;integer se,sx,sy;
-
- if (~ cheat) 
- {     /* put them off the scent! */
-  display("Have you gone dotty\??!");
-  return;
- }
- cmd=upcase(codes[2]); Delete(codes,1,2);  /* strip header */
- display("\6Ninety: \22\4");
- switch (cmd) {
-  case 'R': {
-        number(codes); if (e!=0)  return;
-        display(string("room swap to ")+codes+'.');
-        fliproom(num,1);
-       }
-       break;
-  case 'Z': { zonk; display("Zonk OK!"); } break;
-  case 'W': { wobble; display("Ow my head!"); } break;
-  case 'A': {
-        tr[1].done;
-        tr[1].init(1,true);
-        dna.user_moves_avvy=true;
-        alive=true;
-        display("Reincat.");
-       }
-       break;
-  case 'B': {
-        sx=tr[1].x;
-        sy=tr[1].y;
-        se=tr[1].face;
-        delavvy;
-        number(codes);
-        {
-         void& with = tr[1]; 
-
-         done;
-         init(num,true);
-         display(string("Become ")+codes+':'+"\r\r"+a.name+'\15'+a.comment);
-         appear(sx,sy,se);
-        }
-       }
-       break;
-/*  'D': ninetydump;*/
-  case 'G': play_nim; break;
-  case '±': display("\232\25"); break;
-  default: display("unknown code!");
- }
+void cheatparse(string codes) {
+	char cmd;
+	integer se, sx, sy;
+
+	if (~ cheat) {
+		/* put them off the scent! */
+		display("Have you gone dotty\??!");
+		return;
+	}
+	cmd = upcase(codes[2]);
+	Delete(codes, 1, 2); /* strip header */
+	display("\6Ninety: \22\4");
+	switch (cmd) {
+	case 'R': {
+		number(codes);
+		if (e != 0)  return;
+		display(string("room swap to ") + codes + '.');
+		fliproom(num, 1);
+	}
+	break;
+	case 'Z': {
+		zonk;
+		display("Zonk OK!");
+	}
+	break;
+	case 'W': {
+		wobble;
+		display("Ow my head!");
+	}
+	break;
+	case 'A': {
+		tr[1].done;
+		tr[1].init(1, true);
+		dna.user_moves_avvy = true;
+		alive = true;
+		display("Reincat.");
+	}
+	break;
+	case 'B': {
+		sx = tr[1].x;
+		sy = tr[1].y;
+		se = tr[1].face;
+		delavvy;
+		number(codes);
+		{
+			void &with = tr[1];
+
+			done;
+			init(num, true);
+			display(string("Become ") + codes + ':' + "\r\r" + a.name + '\15' + a.comment);
+			appear(sx, sy, se);
+		}
+	}
+	break;
+	/*  'D': ninetydump;*/
+	case 'G':
+		play_nim;
+		break;
+	case '±':
+		display("\232\25");
+		break;
+	default:
+		display("unknown code!");
+	}
 }
 
-void punctustrip(string& x)          /* Strips punctuation from x. */
-{
-      const varying_string<32> punct = "~`!@#$%^&*()_+-={}[]:\"|;'\\,./<>?";
-    byte fv,p;
-
- for( fv=1; fv <= 32; fv ++)
-  do {
-   p=pos(punct[fv-1],x);
-   if (p==0)  flush(); /* <<< The first time I've ever used it! */
-   Delete(x,p,1);
-  } while (!false);
+void punctustrip(string &x) {        /* Strips punctuation from x. */
+	const varying_string<32> punct = "~`!@#$%^&*()_+-={}[]:\"|;'\\,./<>?";
+	byte fv, p;
+
+	for (fv = 1; fv <= 32; fv ++)
+		do {
+			p = pos(punct[fv - 1], x);
+			if (p == 0)  flush(); /* <<< The first time I've ever used it! */
+			Delete(x, p, 1);
+		} while (!false);
 }
 
 boolean do_pronouns();
 static boolean ambiguous;
 
-static void displaywhat(char ch, boolean animate) /* << it's an adjective! */
-{
-    byte ff; string z;
-
- if (ch==pardon) 
- {
-  ambiguous=true;
-  if (animate)  display("Whom?"); else display("What?");
- } else
- {
-  if (animate)  display(string("{ ")+getname(ch)+" }");
-   else
-   {
-     z=get_better(ch);
-     if (z!="")  display(string("{ ")+z+" }");
-   }
- }
+static void displaywhat(char ch, boolean animate) { /* << it's an adjective! */
+	byte ff;
+	string z;
+
+	if (ch == pardon) {
+		ambiguous = true;
+		if (animate)  display("Whom?");
+		else display("What?");
+	} else {
+		if (animate)  display(string("{ ") + getname(ch) + " }");
+		else {
+			z = get_better(ch);
+			if (z != "")  display(string("{ ") + z + " }");
+		}
+	}
 }
 
-boolean do_pronouns()
-{
-    byte fv;
-
- boolean do_pronouns_result;
- ambiguous=false;
- for( fv=1; fv <= length(thats); fv ++)
-  switch (thats[fv]) {
-   case '\310': {
-          displaywhat(him,true);
-          thats[fv]=him;
-         }
-         break;
-   case '\311': {
-          displaywhat(her,true);
-          thats[fv]=her;
-         }
-         break;
-   case '\312': {
-          displaywhat(it,false);
-          thats[fv]=it;
-         }
-         break;
-  }
- do_pronouns_result=ambiguous;
- return do_pronouns_result;
+boolean do_pronouns() {
+	byte fv;
+
+	boolean do_pronouns_result;
+	ambiguous = false;
+	for (fv = 1; fv <= length(thats); fv ++)
+		switch (thats[fv]) {
+		case '\310': {
+			displaywhat(him, true);
+			thats[fv] = him;
+		}
+		break;
+		case '\311': {
+			displaywhat(her, true);
+			thats[fv] = her;
+		}
+		break;
+		case '\312': {
+			displaywhat(it, false);
+			thats[fv] = it;
+		}
+		break;
+		}
+	do_pronouns_result = ambiguous;
+	return do_pronouns_result;
 }
 
 void store_interrogation(byte interrogation);
 
 
-static void lowercase()
-{
-    byte fv;
+static void lowercase() {
+	byte fv;
 
- for( fv=1; fv <= length(current); fv ++)
-  if (set::of(range('A','Z'), eos).has(current[fv])) 
-   current[fv] += 32;
+	for (fv = 1; fv <= length(current); fv ++)
+		if (set::of(range('A', 'Z'), eos).has(current[fv]))
+			current[fv] += 32;
 }
 
 
 
-static void propernouns()
-{
-    byte fv;
+static void propernouns() {
+	byte fv;
 
- lowercase();
- for( fv=2; fv <= length(current)-1; fv ++)
-  if (current[fv]==' ') 
-   current[fv+1]=upcase(current[fv+1]);
- current[1]=upcase(current[1]);
+	lowercase();
+	for (fv = 2; fv <= length(current) - 1; fv ++)
+		if (current[fv] == ' ')
+			current[fv + 1] = upcase(current[fv + 1]);
+	current[1] = upcase(current[1]);
 }
 
 
 
-static void sayit() /* This makes Avalot say the response. */
-{
-    string x;
+static void sayit() { /* This makes Avalot say the response. */
+	string x;
 
- x=current; x[1]=upcase(x[1]);
- display(string("\231")+x+'.'+'\2'+'\23'+'2');
+	x = current;
+	x[1] = upcase(x[1]);
+	display(string("\231") + x + '.' + '\2' + '\23' + '2');
 }
 
-void store_interrogation(byte interrogation)
-{
-    byte fv;
+void store_interrogation(byte interrogation) {
+	byte fv;
 
 
- if (current=="")  return;
+	if (current == "")  return;
 
- /* Strip current: */
- while ((current[1]==' ') && (current!=""))  Delete(current,1,1);
- while ((current[length(current)]==' ') && (current!=""))  current[0] -= 1;
+	/* Strip current: */
+	while ((current[1] == ' ') && (current != ""))  Delete(current, 1, 1);
+	while ((current[length(current)] == ' ') && (current != ""))  current[0] -= 1;
 
- lose_timer(reason_cardiffsurvey); /* if you want to use any other timer,
+	lose_timer(reason_cardiffsurvey); /* if you want to use any other timer,
   put this into the case statement. */
-  switch (interrogation) {
-   case 1: {
-       lowercase(); sayit();
-       like2drink=current;
-       dna.cardiff_things=2;
-      }
-      break;
-   case 2: {
-       propernouns(); sayit();
-       favourite_song=current;
-       dna.cardiff_things=3;
-      }
-      break;
-   case 3: {
-       propernouns(); sayit();
-       worst_place_on_earth=current;
-       dna.cardiff_things=4;
-      }
-      break;
-   case 4: {
-       lowercase(); sayit();
-       fillchar(spare_evening,sizeof(spare_evening),'\261');
-       spare_evening=current;
-       dixi('z',5); /* His closing statement... */
-       tr[2].walkto(4); /* The end of the drawbridge */
-       tr[2].vanishifstill=true;  /* Then go away! */
-       magics[2].op=nix;
-       dna.cardiff_things=5;
-      }
-      break;
-
-   case 99: store_high(current); break;
-  }
- if (interrogation<4)  cardiff_survey;
+	switch (interrogation) {
+	case 1: {
+		lowercase();
+		sayit();
+		like2drink = current;
+		dna.cardiff_things = 2;
+	}
+	break;
+	case 2: {
+		propernouns();
+		sayit();
+		favourite_song = current;
+		dna.cardiff_things = 3;
+	}
+	break;
+	case 3: {
+		propernouns();
+		sayit();
+		worst_place_on_earth = current;
+		dna.cardiff_things = 4;
+	}
+	break;
+	case 4: {
+		lowercase();
+		sayit();
+		fillchar(spare_evening, sizeof(spare_evening), '\261');
+		spare_evening = current;
+		dixi('z', 5); /* His closing statement... */
+		tr[2].walkto(4); /* The end of the drawbridge */
+		tr[2].vanishifstill = true; /* Then go away! */
+		magics[2].op = nix;
+		dna.cardiff_things = 5;
+	}
+	break;
+
+	case 99:
+		store_high(current);
+		break;
+	}
+	if (interrogation < 4)  cardiff_survey;
 }
 
-void clearwords()
-{
- fillchar(realwords,sizeof(realwords),'\0');
+void clearwords() {
+	fillchar(realwords, sizeof(realwords), '\0');
 }
 
-void parse()
-{
-    byte n,fv,ff; string c,cc,thisword; varying_string<1> answer; boolean notfound;
-
- /* first parsing - word identification */
-
- thats=""; c=current+'\40'; n=1; polite=false;
- verb=pardon; thing=pardon; thing2=pardon; person=pardon;
- clearwords();
- if (current[1]=='.') 
- {     /* a cheat mode attempt */
-  cheatparse(current); thats=nowt; return;
- }    /* not our department! Otherwise... */
-
- /* Are we being interrogated right now? */
-
- if (interrogation>0) 
- {
-  store_interrogation(interrogation);
-  weirdword=true;
-  return;
- }
-
- cc=c; for( fv=1; fv <= length(c); fv ++) c[fv]=upcase(c[fv]);
- while (c!="") 
- {
-   while ((c[1]=='\40') && (c!="")) 
-     { Delete(c,1,1); Delete(cc,1,1); }
-  thisword=copy(c,1,pos("\40",c)-1);
-  realwords[n]=copy(cc,1,pos("\40",cc)-1);
-  punctustrip(c);
-
-  notfound=true;
-
-  if (thisword!="") 
-  {
-   for( ff=1; ff <= 30; ff ++)
-   {     /* Check Also, FIRST! */
-    if (pos(string(',')+thisword,also[ff][0])>0) 
-    {
-     thats=thats+chr(99+ff);
-     notfound=false;
-    }
-   }
-  }
-
-  if (notfound) 
-  {
-   answer=wordnum(thisword);
-   if (answer==pardon) 
-   {
-    notfound=true;
-    thats=thats+pardon;
-   } else
-    thats=thats+wordnum(thisword);
-   n += 1;
-  }
-  Delete(c,1,pos("\40",c)); Delete(cc,1,pos("\40",cc));
- }
-
- if (pos("\376",thats)>0)  unknown=realwords[pos("\376",thats)]; else unknown=""; replace("\377",""); /* zap noise words */
- replace(string('\15')+'\342',"\1"); /* "look at" = "examine" */
- replace(string('\15')+'\344',"\1"); /* "look in" = "examine" */
- replace(string('\4')+'\343',"\21"); /* "get up" = "stand" */
- replace(string('\4')+'\347',"\21"); /* "get down" = "stand"... well, why not? */
- replace(string('\22')+'\344',"\2"); /* "go in" = "open [door]" */
- replace(string('\34')+'\345',"\375"); /* "P' off" is a swear word */
- replace(string('\4')+'\6',"\6"); /* "Take inventory" (remember Colossal Adventure?) */
- replace(string('\50')+'\350',"\25"); /* "put on" = "don" */
- replace(string('\4')+'\345',"\24"); /* "take off" = "doff" */
-
-             /* Words that could mean more than one person */
- {
-  if (room==r__nottspub)  replace("\314","\244"); /* Barman = Port */
-   else replace("\314","\232");                   /* Barman = Malagauche */
-  switch (room) {
-   case r__aylesoffice: replace("\313","\243"); break;        /* Monk = Ayles */
-   case r__musicroom: replace("\313","\246"); break;          /* Monk = Jacques */
-   default: replace("\313","\242");                   /* Monk = Ibythneth */
-  }
- }
-
- if (do_pronouns()) 
- {
-  weirdword=true;
-  thats=nowt;
-  return;
- }
-
- /* second parsing - accidence */
-
- subject=""; subjnumber=0;   /* Find subject of conversation. */
- for( fv=1; fv <= 11; fv ++)
-  if (set::of('`','\'', eos).has(realwords[fv][1])) 
-  {
-   subjnumber=ord(thats[fv]);
-   thats[fv]=moved;
-   flush(); /* Only the second time I've used that! */
-  }
- if (subjnumber==0)   /* Still not found. */
-  for( fv=1; fv <= 10; fv ++)
-   if (thats[fv]=='\374')  /* the word is "about", or something similar */
-   {
-    subjnumber=ord(thats[fv+1]);
-    thats[fv+1]='\0';
-    flush(); /* ...Third! */
-   }
- if (subjnumber==0)   /* STILL not found! Must be the word after "say". */
-  for( fv=1; fv <= 10; fv ++)
-   if ((thats[fv]=='\7') && ! (set::of('\0',range('\341','\345'), eos).has(thats[fv+1]))) 
-   {     /* SAY not followed by a preposition */
-    subjnumber=ord(thats[fv+1]);
-    thats[fv+1]='\0';
-    flush(); /* ...Fourth! */
-   }
-
- for( fv=length(thats); fv >= 1; fv --) /* Reverse order- so first'll be used */
-  switch (thats[fv]) {
-   case '\1' ... '\61':case '\375':case '\371': verb=thats[fv]; break;
-   case '\62' ... '\225': { thing2=thing; thing=thats[fv]; } break;
-   case '\226' ... '\307': person=thats[fv]; break;
-   case '\373': polite=true; break;
-  }
-
- if ((unknown!="") && !
-  (set::of(vb_exam,vb_talk,vb_save,vb_load,vb_dir, eos).has(verb))) 
- {
-  display(string("Sorry, but I have no idea what `")+unknown+
-    "\" means. Can you rephrase it?");
-  weirdword=true;
- } else weirdword=false;
- if (thats=="")  thats=nowt;
-
- if (thing!=pardon)  it=thing;
- if (person!=pardon) 
- {
-  if (person<'\257')  him=person; else her=person;
- }
+void parse() {
+	byte n, fv, ff;
+	string c, cc, thisword;
+	varying_string<1> answer;
+	boolean notfound;
+
+	/* first parsing - word identification */
+
+	thats = "";
+	c = current + '\40';
+	n = 1;
+	polite = false;
+	verb = pardon;
+	thing = pardon;
+	thing2 = pardon;
+	person = pardon;
+	clearwords();
+	if (current[1] == '.') {
+		/* a cheat mode attempt */
+		cheatparse(current);
+		thats = nowt;
+		return;
+	}    /* not our department! Otherwise... */
+
+	/* Are we being interrogated right now? */
+
+	if (interrogation > 0) {
+		store_interrogation(interrogation);
+		weirdword = true;
+		return;
+	}
+
+	cc = c;
+	for (fv = 1; fv <= length(c); fv ++) c[fv] = upcase(c[fv]);
+	while (c != "") {
+		while ((c[1] == '\40') && (c != "")) {
+			Delete(c, 1, 1);
+			Delete(cc, 1, 1);
+		}
+		thisword = copy(c, 1, pos("\40", c) - 1);
+		realwords[n] = copy(cc, 1, pos("\40", cc) - 1);
+		punctustrip(c);
+
+		notfound = true;
+
+		if (thisword != "") {
+			for (ff = 1; ff <= 30; ff ++) {
+				/* Check Also, FIRST! */
+				if (pos(string(',') + thisword, also[ff][0]) > 0) {
+					thats = thats + chr(99 + ff);
+					notfound = false;
+				}
+			}
+		}
+
+		if (notfound) {
+			answer = wordnum(thisword);
+			if (answer == pardon) {
+				notfound = true;
+				thats = thats + pardon;
+			} else
+				thats = thats + wordnum(thisword);
+			n += 1;
+		}
+		Delete(c, 1, pos("\40", c));
+		Delete(cc, 1, pos("\40", cc));
+	}
+
+	if (pos("\376", thats) > 0)  unknown = realwords[pos("\376", thats)];
+	else unknown = "";
+	replace("\377", ""); /* zap noise words */
+	replace(string('\15') + '\342', "\1"); /* "look at" = "examine" */
+	replace(string('\15') + '\344', "\1"); /* "look in" = "examine" */
+	replace(string('\4') + '\343', "\21"); /* "get up" = "stand" */
+	replace(string('\4') + '\347', "\21"); /* "get down" = "stand"... well, why not? */
+	replace(string('\22') + '\344', "\2"); /* "go in" = "open [door]" */
+	replace(string('\34') + '\345', "\375"); /* "P' off" is a swear word */
+	replace(string('\4') + '\6', "\6"); /* "Take inventory" (remember Colossal Adventure?) */
+	replace(string('\50') + '\350', "\25"); /* "put on" = "don" */
+	replace(string('\4') + '\345', "\24"); /* "take off" = "doff" */
+
+	/* Words that could mean more than one person */
+	{
+		if (room == r__nottspub)  replace("\314", "\244"); /* Barman = Port */
+		else replace("\314", "\232");                  /* Barman = Malagauche */
+		switch (room) {
+		case r__aylesoffice:
+			replace("\313", "\243");
+			break;        /* Monk = Ayles */
+		case r__musicroom:
+			replace("\313", "\246");
+			break;          /* Monk = Jacques */
+		default:
+			replace("\313", "\242");                  /* Monk = Ibythneth */
+		}
+	}
+
+	if (do_pronouns()) {
+		weirdword = true;
+		thats = nowt;
+		return;
+	}
+
+	/* second parsing - accidence */
+
+	subject = "";
+	subjnumber = 0; /* Find subject of conversation. */
+	for (fv = 1; fv <= 11; fv ++)
+		if (set::of('`', '\'', eos).has(realwords[fv][1])) {
+			subjnumber = ord(thats[fv]);
+			thats[fv] = moved;
+			flush(); /* Only the second time I've used that! */
+		}
+	if (subjnumber == 0) /* Still not found. */
+		for (fv = 1; fv <= 10; fv ++)
+			if (thats[fv] == '\374') { /* the word is "about", or something similar */
+				subjnumber = ord(thats[fv + 1]);
+				thats[fv + 1] = '\0';
+				flush(); /* ...Third! */
+			}
+	if (subjnumber == 0) /* STILL not found! Must be the word after "say". */
+		for (fv = 1; fv <= 10; fv ++)
+			if ((thats[fv] == '\7') && !(set::of('\0', range('\341', '\345'), eos).has(thats[fv + 1]))) {
+				/* SAY not followed by a preposition */
+				subjnumber = ord(thats[fv + 1]);
+				thats[fv + 1] = '\0';
+				flush(); /* ...Fourth! */
+			}
+
+	for (fv = length(thats); fv >= 1; fv --) /* Reverse order- so first'll be used */
+		switch (thats[fv]) {
+		case '\1' ... '\61':
+		case '\375':
+		case '\371':
+			verb = thats[fv];
+			break;
+		case '\62' ... '\225': {
+			thing2 = thing;
+			thing = thats[fv];
+		}
+		break;
+		case '\226' ... '\307':
+			person = thats[fv];
+			break;
+		case '\373':
+			polite = true;
+			break;
+		}
+
+	if ((unknown != "") && !
+	        (set::of(vb_exam, vb_talk, vb_save, vb_load, vb_dir, eos).has(verb))) {
+		display(string("Sorry, but I have no idea what `") + unknown +
+		        "\" means. Can you rephrase it?");
+		weirdword = true;
+	} else weirdword = false;
+	if (thats == "")  thats = nowt;
+
+	if (thing != pardon)  it = thing;
+	if (person != pardon) {
+		if (person < '\257')  him = person;
+		else her = person;
+	}
 }
 
-void examobj()     /* Examine a standard object-thing */
-{
- if (thing!=thinks)  thinkabout(thing,a_thing);
-  switch (thing) {
-   case wine : switch (winestate) {
-         /* 4 is perfect wine. 0 is not holding the wine. */
-           case 1: dixi('t',1); break; /* Normal examine wine scroll */
-           case 2: dixi('d',6); break; /* Bad wine */
-           case 3: dixi('d',7); break; /* Vinegar */
-          }
-          break;
-   case onion: if (rotten_onion) 
-           dixi('q',21); /* Yucky onion. */
-          else
-           dixi('t',18);
-           break;        /* Normal onion scroll */
-  default:
-   dixi('t',ord(thing)); /* <<< Ordinarily */
-  }
+void examobj() {   /* Examine a standard object-thing */
+	if (thing != thinks)  thinkabout(thing, a_thing);
+	switch (thing) {
+	case wine :
+		switch (winestate) {
+			/* 4 is perfect wine. 0 is not holding the wine. */
+		case 1:
+			dixi('t', 1);
+			break; /* Normal examine wine scroll */
+		case 2:
+			dixi('d', 6);
+			break; /* Bad wine */
+		case 3:
+			dixi('d', 7);
+			break; /* Vinegar */
+		}
+		break;
+	case onion:
+		if (rotten_onion)
+			dixi('q', 21); /* Yucky onion. */
+		else
+			dixi('t', 18);
+		break;        /* Normal onion scroll */
+	default:
+		dixi('t', ord(thing)); /* <<< Ordinarily */
+	}
 }
 
-boolean personshere()         /* Person equivalent of "holding" */
-{
- boolean personshere_result;
- if ((person==pardon) || (person=='\0')
-   || (whereis[person]==dna.room))  personshere_result=true;
- else {
-  if (person<'\257')  display("H\4"); else display("Sh\4");
-  display("e isn't around at the moment.");
-  personshere_result=false;
- }
- return personshere_result;
+boolean personshere() {       /* Person equivalent of "holding" */
+	boolean personshere_result;
+	if ((person == pardon) || (person == '\0')
+	        || (whereis[person] == dna.room))  personshere_result = true;
+	else {
+		if (person < '\257')  display("H\4");
+		else display("Sh\4");
+		display("e isn't around at the moment.");
+		personshere_result = false;
+	}
+	return personshere_result;
 }
 
-void exampers()
-{
- if (personshere()) 
- {
-  if (thing!=thinks)  thinkabout(person,a_person);
-  person -= 149;
-   switch (person) { /* Special cases */
-    case '\13': if (wonnim) 
-         {
-          dixi('Q',8); /* "I'm Not Playing!" */
-          return;
-         }
-         break;
-    case '\11': if (lustie_is_asleep) 
-        { dixi('Q',65);     /* He's asleep. (65! Wow!) */ return; }
-        break;
-   }
-   /* Otherwise... */ dixi('p',ord(person));
- }    /* And afterwards... */
- switch (person) {
-  case '\16': if (~ dna.ayles_is_awake)  dixi('Q',13); break; /* u.f.s.? */
- }
+void exampers() {
+	if (personshere()) {
+		if (thing != thinks)  thinkabout(person, a_person);
+		person -= 149;
+		switch (person) { /* Special cases */
+		case '\13':
+			if (wonnim) {
+				dixi('Q', 8); /* "I'm Not Playing!" */
+				return;
+			}
+			break;
+		case '\11':
+			if (lustie_is_asleep) {
+				dixi('Q', 65);     /* He's asleep. (65! Wow!) */ return;
+			}
+			break;
+		}
+		/* Otherwise... */ dixi('p', ord(person));
+	}    /* And afterwards... */
+	switch (person) {
+	case '\16':
+		if (~ dna.ayles_is_awake)  dixi('Q', 13);
+		break; /* u.f.s.? */
+	}
 }
 
-boolean holding()
-{
- boolean holding_result;
- if (set::of(range('\63','\143'), eos).has(thing))  { holding_result=true; return holding_result; } /* Also */
- holding_result=false;
- if (thing>'\144')  display("Be reasonable!"); else
-  if (~ dna.obj[thing])      /* verbs that need "thing" to be in the inventory */
-   display("You're not holding it, Avvy."); else
-    holding_result=true;
- return holding_result;
+boolean holding() {
+	boolean holding_result;
+	if (set::of(range('\63', '\143'), eos).has(thing))  {
+		holding_result = true;    /* Also */
+		return holding_result;
+	}
+	holding_result = false;
+	if (thing > '\144')  display("Be reasonable!");
+	else if (~ dna.obj[thing])     /* verbs that need "thing" to be in the inventory */
+		display("You're not holding it, Avvy.");
+	else
+		holding_result = true;
+	return holding_result;
 }
 
 void examine();
 
-static void special(boolean before)
-{
- switch (dna.room) {
-  case r__yours: switch (thing) {
-             case '\66': if (before)  show_one(5); else show_one(6); break;
-            }
-            break;
- }
+static void special(boolean before) {
+	switch (dna.room) {
+	case r__yours:
+		switch (thing) {
+		case '\66':
+			if (before)  show_one(5);
+			else show_one(6);
+			break;
+		}
+		break;
+	}
 }
 
-void examine()
-{
- /* Examine. EITHER it's an object OR it's an Also OR it's a person OR
-    it's something else. */
- if ((person==pardon) && (thing!=pardon)) 
- {
-  if (holding()) 
-   switch (thing) { /* remember it's been Slipped- ie subtract 49 */
-       case '\1' ... '\61' : examobj(); break; /* Standard object */
-     case '\62' ... '\144' : {
-                  special(true);
-                  display(also[ord(thing)-50][1]); /* Also thing */
-                  special(false);
-                 }
-                 break;
-   }
- } else
-  if (person!=pardon)  exampers();
-   else display("It's just as it looks on the picture.");  /* don't know- guess */
+void examine() {
+	/* Examine. EITHER it's an object OR it's an Also OR it's a person OR
+	   it's something else. */
+	if ((person == pardon) && (thing != pardon)) {
+		if (holding())
+			switch (thing) { /* remember it's been Slipped- ie subtract 49 */
+			case '\1' ... '\61' :
+				examobj();
+				break; /* Standard object */
+			case '\62' ... '\144' : {
+				special(true);
+				display(also[ord(thing) - 50][1]); /* Also thing */
+				special(false);
+			}
+			break;
+			}
+	} else if (person != pardon)  exampers();
+	else display("It's just as it looks on the picture.");  /* don't know- guess */
 }
 
-void inv()     /* the time-honoured command... */
-{
-    char fv; byte q;
-
- q=0; display(string("You're carrying ")+'\4');
- {
-  for( fv='\1'; fv <= numobjs; fv ++)
-   if (obj[fv]) 
-   {
-    q += 1; if (q==carrying)  display(string("and ")+'\4');
-    display(get_better(fv)+'\4');
-    if (fv==wearing)  display(string(", which you're wearing")+'\4');
-     if (q<carrying)  display(string(", ")+'\4');
-   }
-  if (wearing==nowt)  display("...\r\r...and you're stark naked!"); else
-   display('.');
- }
+void inv() {   /* the time-honoured command... */
+	char fv;
+	byte q;
+
+	q = 0;
+	display(string("You're carrying ") + '\4');
+	{
+		for (fv = '\1'; fv <= numobjs; fv ++)
+			if (obj[fv]) {
+				q += 1;
+				if (q == carrying)  display(string("and ") + '\4');
+				display(get_better(fv) + '\4');
+				if (fv == wearing)  display(string(", which you're wearing") + '\4');
+				if (q < carrying)  display(string(", ") + '\4');
+			}
+		if (wearing == nowt)  display("...\r\r...and you're stark naked!");
+		else
+			display('.');
+	}
 }
 
-void swallow()     /* Eat something. */
-{
- switch (thing) {
-  case wine: switch (dna.winestate) {
-         /* 4 is perfect */
-          case 1: {
-              if (dna.teetotal)  { dixi('D',6); return; }
-              dixi('U',1); wobble; dixi('U',2);
-              dna.obj[wine]=false; objectlist;
-              have_a_drink();
-             }
-             break;
-          case 2:case 3: dixi('d',8); break; /* You can't drink it! */
-         }
-         break;
-  case potion: { background(4); dixi('U',3); gameover; background(0); } break;
-  case ink: dixi('U',4); break;
-  case chastity: dixi('U',5); break;
-  case mushroom: {
-             dixi('U',6);
-             gameover;
-            }
-            break;
-  case onion: if (dna.rotten_onion)  dixi('U',11);
-         else {
-          dixi('U',8);
-          dna.obj[onion]=false;
-          objectlist;
-         }
-         break;
-  default:
-    if (set::of(r__argentpub,r__nottspub, eos).has(dna.room)) 
-      display("Try BUYing things before you drink them!");
-    else
-      display("The taste of it makes you retch!");
-         /* Constant- leave this one */
- }
+void swallow() {   /* Eat something. */
+	switch (thing) {
+	case wine:
+		switch (dna.winestate) {
+			/* 4 is perfect */
+		case 1: {
+			if (dna.teetotal)  {
+				dixi('D', 6);
+				return;
+			}
+			dixi('U', 1);
+			wobble;
+			dixi('U', 2);
+			dna.obj[wine] = false;
+			objectlist;
+			have_a_drink();
+		}
+		break;
+		case 2:
+		case 3:
+			dixi('d', 8);
+			break; /* You can't drink it! */
+		}
+		break;
+	case potion: {
+		background(4);
+		dixi('U', 3);
+		gameover;
+		background(0);
+	}
+	break;
+	case ink:
+		dixi('U', 4);
+		break;
+	case chastity:
+		dixi('U', 5);
+		break;
+	case mushroom: {
+		dixi('U', 6);
+		gameover;
+	}
+	break;
+	case onion:
+		if (dna.rotten_onion)  dixi('U', 11);
+		else {
+			dixi('U', 8);
+			dna.obj[onion] = false;
+			objectlist;
+		}
+		break;
+	default:
+		if (set::of(r__argentpub, r__nottspub, eos).has(dna.room))
+			display("Try BUYing things before you drink them!");
+		else
+			display("The taste of it makes you retch!");
+		/* Constant- leave this one */
+	}
 }
 
 void others()
- /* This lists the other people in the room. */
+/* This lists the other people in the room. */
 {
- char fv;
- byte num_people,this_person,here;
+	char fv;
+	byte num_people, this_person, here;
 
 
- num_people=0;
- this_person=0;
- here=dna.room;
+	num_people = 0;
+	this_person = 0;
+	here = dna.room;
 
- for( fv='\227'; fv <= '\262'; fv ++) /* Start at 151 so we don't list Avvy himself! */
-  if (whereis[fv]==here) 
-   num_people += 1;
+	for (fv = '\227'; fv <= '\262'; fv ++) /* Start at 151 so we don't list Avvy himself! */
+		if (whereis[fv] == here)
+			num_people += 1;
 
- /* If nobody's here, we can cut out straight away. */
+	/* If nobody's here, we can cut out straight away. */
 
- if (num_people==0)  return; /* Leave the procedure. */
+	if (num_people == 0)  return; /* Leave the procedure. */
 
- for( fv='\227'; fv <= '\262'; fv ++)
-  if (whereis[fv]==here) 
-  {
-   this_person += 1;
-   if (this_person==1)   /* First on the list. */
-    display(getname(fv)+'\4'); else
-    if (this_person<num_people)    /* The middle... */
-     display(string(", ")+getname(fv)+'\4'); else
-      display(string(" and ")+getname(fv)+'\4'); /* The end. */
-  }
+	for (fv = '\227'; fv <= '\262'; fv ++)
+		if (whereis[fv] == here) {
+			this_person += 1;
+			if (this_person == 1) /* First on the list. */
+				display(getname(fv) + '\4');
+			else if (this_person < num_people) /* The middle... */
+				display(string(", ") + getname(fv) + '\4');
+			else
+				display(string(" and ") + getname(fv) + '\4'); /* The end. */
+		}
 
- if (num_people==1)  display(" is\4"); else display(" are\4");
+	if (num_people == 1)  display(" is\4");
+	else display(" are\4");
 
- display(" here."); /* End and display it. */
+	display(" here."); /* End and display it. */
 }
 
 void lookaround()
 /* This is called when you say "look." */
 {
- display(also[0][1]);
- switch (dna.room) {
-  case r__spludwicks: if (dna.avaricius_talk>0)  dixi('q',23); else others(); break;
-  case r__robins: {
-              if (dna.tied_up)  dixi('q',38);
-              if (dna.mushroom_growing)  dixi('q',55);
-             }
-             break;
-  case r__insidecardiffcastle: if (~ dna.taken_pen)  dixi('q',49); break;
-  case r__lustiesroom: if (dna.lustie_is_asleep)  dixi('q',65); break;
-  case r__catacombs: switch (dna.cat_y*256+dna.cat_x) {
-                 case 258 : dixi('q',80); break; /* Inside art gallery */
-                 case 514 : dixi('q',81); break; /* Outside ditto */
-                 case 260 : dixi('q',82); break; /* Outside Geida's room. */
-                }
-                break;
-  default: others();
- }
+	display(also[0][1]);
+	switch (dna.room) {
+	case r__spludwicks:
+		if (dna.avaricius_talk > 0)  dixi('q', 23);
+		else others();
+		break;
+	case r__robins: {
+		if (dna.tied_up)  dixi('q', 38);
+		if (dna.mushroom_growing)  dixi('q', 55);
+	}
+	break;
+	case r__insidecardiffcastle:
+		if (~ dna.taken_pen)  dixi('q', 49);
+		break;
+	case r__lustiesroom:
+		if (dna.lustie_is_asleep)  dixi('q', 65);
+		break;
+	case r__catacombs:
+		switch (dna.cat_y * 256 + dna.cat_x) {
+		case 258 :
+			dixi('q', 80);
+			break; /* Inside art gallery */
+		case 514 :
+			dixi('q', 81);
+			break; /* Outside ditto */
+		case 260 :
+			dixi('q', 82);
+			break; /* Outside Geida's room. */
+		}
+		break;
+	default:
+		others();
+	}
 }
 
-void opendoor()     /* so whaddya THINK this does?! */
-{
-    byte fv;
-
- switch (dna.room) {   /* Special cases. */
-   case r__yours: if (infield(2)) 
-             {     /* Opening the box. */
-              thing='\66'; /* The box. */ person=pardon;
-              examine();
-              return;
-             }
-             break;
-   case r__spludwicks: if (thing=='\75')  {
-                    dixi('q',85);
-                    return;
-                  }
-                  break;
- }
-
-
- if ((~ dna.user_moves_avvy) & (dna.room!=r__lusties))
-        return; /* No doors can open if you can't move Avvy. */
- for( fv=9; fv <= 15; fv ++)
-  if (infield(fv)) 
-  {
-   { void& with = portals[fv]; 
-    switch (op) {
-     case exclaim: { tr[1].bounce; dixi('x',data); } break;
-     case transport: fliproom(hi(data),lo(data)); break;
-     case unfinished: {
-                  tr[1].bounce;
-                  display("\7Sorry.\3\rThis place is not available yet!");
-                 }
-                 break;
-     case special: call_special(data); break;
-     case mopendoor: open_the_door(hi(data),lo(data),fv); break;
-    }}
-    return;
-   }
- if (dna.room==r__map) 
-  display(string("Avvy, you can complete the whole game without ever going ")+
-                 "to anywhere other than Argent, Birmingham, Cardiff, "+
-                 "Nottingham and Norwich.");
- else display("Door? What door?");
+void opendoor() {   /* so whaddya THINK this does?! */
+	byte fv;
+
+	switch (dna.room) {   /* Special cases. */
+	case r__yours:
+		if (infield(2)) {
+			/* Opening the box. */
+			thing = '\66'; /* The box. */ person = pardon;
+			examine();
+			return;
+		}
+		break;
+	case r__spludwicks:
+		if (thing == '\75')  {
+			dixi('q', 85);
+			return;
+		}
+		break;
+	}
+
+
+	if ((~ dna.user_moves_avvy) & (dna.room != r__lusties))
+		return; /* No doors can open if you can't move Avvy. */
+	for (fv = 9; fv <= 15; fv ++)
+		if (infield(fv)) {
+			{
+				void &with = portals[fv];
+				switch (op) {
+				case exclaim: {
+					tr[1].bounce;
+					dixi('x', data);
+				}
+				break;
+				case transport:
+					fliproom(hi(data), lo(data));
+					break;
+				case unfinished: {
+					tr[1].bounce;
+					display("\7Sorry.\3\rThis place is not available yet!");
+				}
+				break;
+				case special:
+					call_special(data);
+					break;
+				case mopendoor:
+					open_the_door(hi(data), lo(data), fv);
+					break;
+				}
+			}
+			return;
+		}
+	if (dna.room == r__map)
+		display(string("Avvy, you can complete the whole game without ever going ") +
+		        "to anywhere other than Argent, Birmingham, Cardiff, " +
+		        "Nottingham and Norwich.");
+	else display("Door? What door?");
 }
 
 void putproc();
 
 
-static void silly()
-{
- display("Don't be silly!");
+static void silly() {
+	display("Don't be silly!");
 }
 
-void putproc()     /* Called when you call vb_put. */
-{
-    char temp;
-
-
- if (! holding())  return;
- thing2 -= 49;   /* Slip the second object */
- temp=thing; thing=thing2; if (! holding())  return;
- thing=temp;
-
- /* Thing is the thing which you're putting in. Thing2 is where you're
-   putting it. */
-             /* Convenience thing. */
-  switch (thing2) {
-   case wine: if (thing==onion) 
-         {
-          if (dna.rotten_onion) 
-          display(string("That's a bit like shutting the stable door after the ")+
-                   "horse has bolted!");
-          else {     /* Put onion into wine? */
-           if (dna.winestate!=3) 
-            display("\6Oignon au vin\22 is a bit too strong for your tastes!");
-           else {     /* Put onion into vinegar! Yes! */
-            onion_in_vinegar=true;
-            points(7);
-            dixi('u',9);
-           }
-          }
-         } else silly();
-         break;
-
-    case '\66': if (room==1)  /* Put something into the box. */
-         {
-          if (box_contents!=nowt) 
-           display(string("There's something in the box already, Avvy. Try taking")+
-            " that out first.");
-          else
-           switch (thing) {
-            case money: display("You'd better keep some ready cash on you!"); break;
-            case bell: display("That's a silly place to keep a bell."); break;
-            case bodkin: display("But you might need it!"); break;
-            case onion: display("Just give it to Spludwick, Avvy!"); break;
-            default:
-            {     /* Put the object into the box... */
-             if (wearing==thing) 
-              display(string("You'd better take ")+get_better(thing)+" off first!");
-             else
-             {
-              show_one(5); /* Open box. */
-              box_contents=thing;
-              dna.obj[thing]=false;
-              objectlist;
-              display("OK, it's in the box.");
-              show_one(6); /* Shut box. */
-             }
-            }
-           }
-         } else silly();
-         break;
-
-   default: silly();
-  }
+void putproc() {   /* Called when you call vb_put. */
+	char temp;
+
+
+	if (! holding())  return;
+	thing2 -= 49;   /* Slip the second object */
+	temp = thing;
+	thing = thing2;
+	if (! holding())  return;
+	thing = temp;
+
+	/* Thing is the thing which you're putting in. Thing2 is where you're
+	  putting it. */
+	/* Convenience thing. */
+	switch (thing2) {
+	case wine:
+		if (thing == onion) {
+			if (dna.rotten_onion)
+				display(string("That's a bit like shutting the stable door after the ") +
+				        "horse has bolted!");
+			else {     /* Put onion into wine? */
+				if (dna.winestate != 3)
+					display("\6Oignon au vin\22 is a bit too strong for your tastes!");
+				else {     /* Put onion into vinegar! Yes! */
+					onion_in_vinegar = true;
+					points(7);
+					dixi('u', 9);
+				}
+			}
+		} else silly();
+		break;
+
+	case '\66':
+		if (room == 1) { /* Put something into the box. */
+			if (box_contents != nowt)
+				display(string("There's something in the box already, Avvy. Try taking") +
+				        " that out first.");
+			else
+				switch (thing) {
+				case money:
+					display("You'd better keep some ready cash on you!");
+					break;
+				case bell:
+					display("That's a silly place to keep a bell.");
+					break;
+				case bodkin:
+					display("But you might need it!");
+					break;
+				case onion:
+					display("Just give it to Spludwick, Avvy!");
+					break;
+				default: {
+					/* Put the object into the box... */
+					if (wearing == thing)
+						display(string("You'd better take ") + get_better(thing) + " off first!");
+					else {
+						show_one(5); /* Open box. */
+						box_contents = thing;
+						dna.obj[thing] = false;
+						objectlist;
+						display("OK, it's in the box.");
+						show_one(6); /* Shut box. */
+					}
+				}
+				}
+		} else silly();
+		break;
+
+	default:
+		silly();
+	}
 }
 
 boolean give2spludwick();
 
- /* The result of this fn is whether or not he says "Hey, thanks!" */
-static void not_in_order()
-{
- display(string("Sorry, I need the ingredients in the right order for this potion.")+
-  " What I need next is "+
-   get_better(spludwick_order[dna.given2spludwick])+".\232\2");
+/* The result of this fn is whether or not he says "Hey, thanks!" */
+static void not_in_order() {
+	display(string("Sorry, I need the ingredients in the right order for this potion.") +
+	        " What I need next is " +
+	        get_better(spludwick_order[dna.given2spludwick]) + ".\232\2");
 }
 
 
 
-static void go_to_cauldron()
-{
-   tr[2].call_eachstep=false;  /* Stops Geida_Procs. */
-   set_up_timer(1,procspludwick_goes_to_cauldron,reason_spludwalk);
-   tr[2].walkto(2);
+static void go_to_cauldron() {
+	tr[2].call_eachstep = false; /* Stops Geida_Procs. */
+	set_up_timer(1, procspludwick_goes_to_cauldron, reason_spludwalk);
+	tr[2].walkto(2);
 }
 
 boolean give2spludwick()
 
 {
- boolean give2spludwick_result;
- {
-
-  give2spludwick_result=false;
-
-  if (spludwick_order[given2spludwick]!=thing) 
-  {
-   not_in_order();
-   return give2spludwick_result;
-  }
-
-  switch (thing) {
-   case onion:
-    {
-     obj[onion]=false;
-     if (rotten_onion) 
-      dixi('q',22);
-     else {
-      given2spludwick += 1;
-      dixi('q',20);
-      go_to_cauldron();
-      points(3);
-     }
-     objectlist;
-    }
-    break;
-   case ink: {
-         obj[ink]=false;
-         objectlist;
-         given2spludwick += 1;
-         dixi('q',24);
-         go_to_cauldron();
-         points(3);
-        }
-        break;
-   case mushroom: {
-              obj[mushroom]=false;
-              dixi('q',25);
-              points(5);
-              given2spludwick += 1;
-              go_to_cauldron();
-              obj[potion]=true;
-              objectlist;
-             }
-             break;
-   default: give2spludwick_result=true;
-  }
- }
- return give2spludwick_result;
+	boolean give2spludwick_result;
+	{
+
+		give2spludwick_result = false;
+
+		if (spludwick_order[given2spludwick] != thing) {
+			not_in_order();
+			return give2spludwick_result;
+		}
+
+		switch (thing) {
+		case onion: {
+			obj[onion] = false;
+			if (rotten_onion)
+				dixi('q', 22);
+			else {
+				given2spludwick += 1;
+				dixi('q', 20);
+				go_to_cauldron();
+				points(3);
+			}
+			objectlist;
+		}
+		break;
+		case ink: {
+			obj[ink] = false;
+			objectlist;
+			given2spludwick += 1;
+			dixi('q', 24);
+			go_to_cauldron();
+			points(3);
+		}
+		break;
+		case mushroom: {
+			obj[mushroom] = false;
+			dixi('q', 25);
+			points(5);
+			given2spludwick += 1;
+			go_to_cauldron();
+			obj[potion] = true;
+			objectlist;
+		}
+		break;
+		default:
+			give2spludwick_result = true;
+		}
+	}
+	return give2spludwick_result;
 }
 
-void have_a_drink()
-{
- {
-  alcohol += 1;
-  if (alcohol==5) 
-  {
-   obj[key]=true;  /* Get the key. */
-   teetotal=true;
-   avvy_is_awake=false;
-   avvy_in_bed=true;
-   objectlist;
-   dusk;
-   hang_around_for_a_while;
-   fliproom(1,1);
-   background(14);
-   new_game_for_trippancy; /* Not really */
-  }
- }
+void have_a_drink() {
+	{
+		alcohol += 1;
+		if (alcohol == 5) {
+			obj[key] = true; /* Get the key. */
+			teetotal = true;
+			avvy_is_awake = false;
+			avvy_in_bed = true;
+			objectlist;
+			dusk;
+			hang_around_for_a_while;
+			fliproom(1, 1);
+			background(14);
+			new_game_for_trippancy; /* Not really */
+		}
+	}
 }
 
-void cardiff_climbing()
-{
- if (dna.standing_on_dais) 
- {     /* Clamber up. */
-  display("You climb down, back onto the floor.");
-  dna.standing_on_dais=false;
-  apped(1,3);
- } else
- {     /* Clamber down. */
-  if (infield(1)) 
-  {
-    display("You clamber up onto the dais.");
-    dna.standing_on_dais=true;
-    apped(1,2);
-  } else
-    display("Get a bit closer, Avvy.");
- }
+void cardiff_climbing() {
+	if (dna.standing_on_dais) {
+		/* Clamber up. */
+		display("You climb down, back onto the floor.");
+		dna.standing_on_dais = false;
+		apped(1, 3);
+	} else {
+		/* Clamber down. */
+		if (infield(1)) {
+			display("You clamber up onto the dais.");
+			dna.standing_on_dais = true;
+			apped(1, 2);
+		} else
+			display("Get a bit closer, Avvy.");
+	}
 }
 
 void stand_up();
 
-  /* Called when you ask Avvy to stand. */
-static void already()
-{
- display("You're already standing!");
+/* Called when you ask Avvy to stand. */
+static void already() {
+	display("You're already standing!");
 }
 
-void stand_up()
-{
-  switch (dna.room) {
-   case r__yours: /* Avvy isn't asleep. */
-              if (avvy_in_bed)    /* But he's in bed. */
-              {
-               if (teetotal) 
-               {
-                dixi('d',12);
-                background(0);
-                dixi('d',14);
-               }
-               tr[1].visible=true;
-               user_moves_avvy=true;
-               apped(1,2);
-               dna.rw=left;
-               show_one(4); /* Picture of empty pillow. */
-               points(1);
-               avvy_in_bed=false;
-               lose_timer(reason_arkata_shouts);
-              } else already();
-              break;
-
-    case r__insidecardiffcastle: cardiff_climbing(); break;
-
-    case r__nottspub: if (sitting_in_pub)  {
-                  show_one(4); /* Not sitting down. */
-                  tr[1].visible=true;  /* But standing up. */
-                  apped(1,4); /* And walking away. */
-                  sitting_in_pub=false;  /* Really not sitting down. */
-                  user_moves_avvy=true;  /* And ambulant. */
-                 } else already();
-                 break;
-   default: already();
-  }
+void stand_up() {
+	switch (dna.room) {
+	case r__yours: /* Avvy isn't asleep. */
+		if (avvy_in_bed) {  /* But he's in bed. */
+			if (teetotal) {
+				dixi('d', 12);
+				background(0);
+				dixi('d', 14);
+			}
+			tr[1].visible = true;
+			user_moves_avvy = true;
+			apped(1, 2);
+			dna.rw = left;
+			show_one(4); /* Picture of empty pillow. */
+			points(1);
+			avvy_in_bed = false;
+			lose_timer(reason_arkata_shouts);
+		} else already();
+		break;
+
+	case r__insidecardiffcastle:
+		cardiff_climbing();
+		break;
+
+	case r__nottspub:
+		if (sitting_in_pub)  {
+			show_one(4); /* Not sitting down. */
+			tr[1].visible = true; /* But standing up. */
+			apped(1, 4); /* And walking away. */
+			sitting_in_pub = false; /* Really not sitting down. */
+			user_moves_avvy = true; /* And ambulant. */
+		} else already();
+		break;
+	default:
+		already();
+	}
 }
 
-void getproc(char thing)
-{
-  switch (room) {
-   case r__yours:
-     if (infield(2)) 
-     {
-      if (box_contents==thing) 
-      {
-       show_one(5);
-       display("OK, I've got it.");
-       obj[thing]=true; objectlist;
-       box_contents=nowt;
-       show_one(6);
-      } else
-       display(string("I can't see ")+get_better(thing)+" in the box.");
-     } else dixi('q',57);
-     break;
-  case r__insidecardiffcastle:
-    switch (thing) {
-     case pen:
-     {
-      if (infield(2)) 
-      {     /* Standing on the dais. */
-
-       if (dna.taken_pen) 
-        display("It's not there, Avvy.");
-       else
-       {     /* OK: we're taking the pen, and it's there. */
-        show_one(4); /* No pen there now. */
-        call_special(3); /* Zap! */
-        dna.taken_pen=true;
-        dna.obj[pen]=true;
-        objectlist;
-        display("Taken.");
-       }
-      } else if (dna.standing_on_dais)  dixi('q',53); else dixi('q',51);
-     }
-     break;
-      case bolt: dixi('q',52); break;
-     default: dixi('q',57);
-    }
-    break;
-  case r__robins: if ((thing==mushroom) & (infield(1)) & (dna.mushroom_growing))
-                  {
-              show_one(3);
-              display("Got it!");
-              dna.mushroom_growing=false;
-              dna.taken_mushroom=true;
-              dna.obj[mushroom]=true;
-              objectlist;
-              points(3);
-             } else dixi('q',57);
-             break;
-  default: dixi('q',57);
- }
+void getproc(char thing) {
+	switch (room) {
+	case r__yours:
+		if (infield(2)) {
+			if (box_contents == thing) {
+				show_one(5);
+				display("OK, I've got it.");
+				obj[thing] = true;
+				objectlist;
+				box_contents = nowt;
+				show_one(6);
+			} else
+				display(string("I can't see ") + get_better(thing) + " in the box.");
+		} else dixi('q', 57);
+		break;
+	case r__insidecardiffcastle:
+		switch (thing) {
+		case pen: {
+			if (infield(2)) {
+				/* Standing on the dais. */
+
+				if (dna.taken_pen)
+					display("It's not there, Avvy.");
+				else {
+					/* OK: we're taking the pen, and it's there. */
+					show_one(4); /* No pen there now. */
+					call_special(3); /* Zap! */
+					dna.taken_pen = true;
+					dna.obj[pen] = true;
+					objectlist;
+					display("Taken.");
+				}
+			} else if (dna.standing_on_dais)  dixi('q', 53);
+			else dixi('q', 51);
+		}
+		break;
+		case bolt:
+			dixi('q', 52);
+			break;
+		default:
+			dixi('q', 57);
+		}
+		break;
+	case r__robins:
+		if ((thing == mushroom) & (infield(1)) & (dna.mushroom_growing)) {
+			show_one(3);
+			display("Got it!");
+			dna.mushroom_growing = false;
+			dna.taken_mushroom = true;
+			dna.obj[mushroom] = true;
+			objectlist;
+			points(3);
+		} else dixi('q', 57);
+		break;
+	default:
+		dixi('q', 57);
+	}
 }
 
-void give_geida_the_lute()
-{
- {
-  if (room!=r__lustiesroom) 
-  {
-   display("Not yet. Try later!\232\2");
-   return;
-  }
-  dna.obj[lute]=false;
-  objectlist;
-  dixi('q',64); /* She plays it. */
-
-   /* And the rest has been moved to Timeout... under give_lute_to_Geida. */
-
-  set_up_timer(1,procgive_lute_to_geida,reason_geida_sings);
-  back_to_bootstrap(4);
- }
+void give_geida_the_lute() {
+	{
+		if (room != r__lustiesroom) {
+			display("Not yet. Try later!\232\2");
+			return;
+		}
+		dna.obj[lute] = false;
+		objectlist;
+		dixi('q', 64); /* She plays it. */
+
+		/* And the rest has been moved to Timeout... under give_lute_to_Geida. */
+
+		set_up_timer(1, procgive_lute_to_geida, reason_geida_sings);
+		back_to_bootstrap(4);
+	}
 }
 
-void play_harp()
-{
- if (infield(7)) 
-  musical_scroll;
- else display("Get a bit closer to it, Avvy!");
+void play_harp() {
+	if (infield(7))
+		musical_scroll;
+	else display("Get a bit closer to it, Avvy!");
 }
 
-void winsequence()
-{
- dixi('q',78);
- first_show(7); then_show(8); then_show(9);
- start_to_close;
- set_up_timer(30,procwinning,reason_winning);
+void winsequence() {
+	dixi('q', 78);
+	first_show(7);
+	then_show(8);
+	then_show(9);
+	start_to_close;
+	set_up_timer(30, procwinning, reason_winning);
 }
 
-void person_speaks()
-{
-    boolean found; byte fv; char cfv;
-
-
-  if ((person==pardon) || (person=='\0')) 
-  {
-   if ((him==pardon) || (whereis[him]!=dna.room))  person=her;
-    else person=him;
-  }
-
-  if (whereis[person]!=dna.room) 
-  {
-   display("\231\4"); /* Avvy himself! */
-   return;
-  }
-
-  found=false;  /* The person we're looking for's code is in Person. */
-
-  for( fv=1; fv <= numtr; fv ++)
-   if (tr[fv].quick & (chr(tr[fv].a.accinum+149)==person)) 
-   {
-    display(string('\23')+chr(fv+48)+'\4');
-    found=true;
-   }
-
-  if (! found) 
-    for( fv=10; fv <= 25; fv ++)
-     { void& with = quasipeds[fv]; 
-     if ((who==person) && (room==dna.room)) 
-     {
-      display(string('\23')+chr(fv+55)+'\4');
-     }}
+void person_speaks() {
+	boolean found;
+	byte fv;
+	char cfv;
+
+
+	if ((person == pardon) || (person == '\0')) {
+		if ((him == pardon) || (whereis[him] != dna.room))  person = her;
+		else person = him;
+	}
+
+	if (whereis[person] != dna.room) {
+		display("\231\4"); /* Avvy himself! */
+		return;
+	}
+
+	found = false; /* The person we're looking for's code is in Person. */
+
+	for (fv = 1; fv <= numtr; fv ++)
+		if (tr[fv].quick & (chr(tr[fv].a.accinum + 149) == person)) {
+			display(string('\23') + chr(fv + 48) + '\4');
+			found = true;
+		}
+
+	if (! found)
+		for (fv = 10; fv <= 25; fv ++) {
+			void &with = quasipeds[fv];
+			if ((who == person) && (room == dna.room)) {
+				display(string('\23') + chr(fv + 55) + '\4');
+			}
+		}
 }
 
 void do_that();
 
-static void heythanks()
-{
-  person_speaks();
-  display("Hey, thanks!\2(But now, you've lost it!)");
-  dna.obj[thing]=false;
+static void heythanks() {
+	person_speaks();
+	display("Hey, thanks!\2(But now, you've lost it!)");
+	dna.obj[thing] = false;
 }
 
-void do_that()
-{
-      const array<'\63','\72',varying_string<6> > booze = {{"Bitter","GIED","Whisky","Cider","","","","Mead"}};
-    byte fv,ff; integer sx,sy; boolean ok;
-
-
- if (thats==nowt)  { thats=""; return; }
- if (weirdword)  return;
- if (thing<'\310')  thing -= 49;   /* "Slip" */
-
- if ((~ alive) &
-  ! (set::of(vb_load,vb_save,vb_quit,vb_info,vb_help,vb_larrypass,
-     vb_phaon,vb_boss,vb_cheat,vb_restart,vb_dir,vb_score,
-     vb_highscores,vb_smartalec, eos).has(verb)))
-       {
-        display(string("You're dead, so don't talk. What are you, a ghost ")+
-         "or something? Try restarting, or restoring a saved game!"); return;
-       }
-
- if ((~ dna.avvy_is_awake) &
-  ! (set::of(vb_load,vb_save,vb_quit,vb_info,vb_help,vb_larrypass,
-     vb_phaon,vb_boss,vb_cheat,vb_restart,vb_dir,vb_die,vb_score,
-     vb_highscores,vb_smartalec,vb_expletive,vb_wake, eos).has(verb)))
-       {
-        display("Talking in your sleep? Try waking up!"); return;
-       }
-
-
- switch (verb) {
-  case vb_exam: examine(); break;
-  case vb_open: opendoor(); break;
-  case vb_pause: display(string("Game paused.")+'\3'+'\15'+'\15'+"Press Enter, Esc, or click "+
-             "the mouse on the `O.K.\" box to continue.");
-             break;
-  case vb_get: {
-           if (thing!=pardon) 
-           {     /* Legitimate try to pick something up. */
-            if (dna.carrying>=maxobjs)  display("You can't carry any more!");
-            else getproc(thing);
-
-           } else
-           {     /* Not... ditto. */
-            if (person!=pardon) 
-             display("You can't sweep folk off their feet!"); else
-            display("I assure you, you don't need it.");
-           }
-          }
-          break;
-  case vb_drop: display(string("Two years ago you dropped a florin in the street. Three days ")+
-       "later it was gone! So now you never leave ANYTHING lying around. OK?");
-       break;
-/*       begin dna.obj[thing]:=false; objectlist; end;*/
-  case vb_inv: inv(); break;
-  case vb_talk:  if (person==pardon) 
-            {
-              if (subjnumber==99)   /* They typed "say password". */
-                display("Yes, but what \6is\22 the password?");
-              else if (set::of(range(1,49),253,249, eos).has(subjnumber)) 
-              {
-                Delete(thats,1,1);
-                move(realwords[2],realwords[1],sizeof(realwords)-sizeof(realwords[1]));
-                verb=chr(subjnumber);
-                do_that(); return;
-              } else
-              {
-                person=chr(subjnumber); subjnumber=0;
-                if (set::of(pardon,'\0', eos).has(person))  display("Talk to whom?");
-                 else if (personshere())  talkto(ord(person));
-              }
-            } else if (person==pardon)  display("Talk to whom?");
-            else if (personshere())  talkto(ord(person));
-            break;
-
-  case vb_give: if (holding()) 
-           {
-            if (person==pardon)  display("Give to whom?"); else
-            if (personshere()) 
-            {
-             switch (thing) {
-              case money : display("You can't bring yourself to give away your moneybag."); break;
-              case bodkin:case bell:case clothes:case habit :
-                    display("Don't give it away, it might be useful!");
-                    break;
-              default: switch (person) {
-                      case pcrapulus: switch (thing) {
-                                 case wine: {
-                                        display("Crapulus grabs the wine and gulps it down.");
-                                        dna.obj[wine]=false;
-                                       }
-                                       break;
-                                 default: heythanks();
-                                }
-                                break;
-                     case pcwytalot: if (set::of(crossbow,bolt, eos).has(thing)) 
-                                 display(string("You might be able to influence ")+
-                                 "Cwytalot more if you used it!");
-                                else heythanks();
-                                break;
-                     case pspludwick: if (give2spludwick())  heythanks(); break;
-                     case pibythneth: if (thing==badge) 
-                                 {
-                                  dixi('q',32); /* Thanks! Wow! */
-                                  points(3);
-                                  dna.obj[badge]=false;
-                                  dna.obj[habit]=true;
-                                  dna.givenbadgetoiby=true;
-                                  show_one(8); show_one(9);
-                                 } else heythanks();
-                                 break;
-                     case payles: if (dna.ayles_is_awake) 
-                             {
-                               if (thing==pen) 
-                               {
-                                dna.obj[pen]=false;
-                                dixi('q',54);
-                                dna.obj[ink]=true;
-                                dna.given_pen_to_ayles=true;
-                                objectlist;
-                                points(2);
-                               } else heythanks();
-                             } else
-                               display("But he's asleep!");
-                               break;
-                     case pgeida: switch (thing) {
-                              case potion : {
-                                        dna.obj[potion]=false;
-                                        dixi('u',16); /* She drinks it. */
-                                        points(2);
-                                        dna.geida_given_potion=true;
-                                        objectlist;
-                                       }
-                                       break;
-                              case lute: give_geida_the_lute(); break;
-                              default: heythanks();
-                             }
-                             break;
-                     case parkata: switch (thing) {
-                              case potion: if (dna.geida_given_potion) 
-                                       winsequence();
-                                      else dixi('q',77);
-                                      break;             /* That Geida woman! */
-                              default: heythanks();
-                             }
-                             break;
-                    default: heythanks();
-                   }
-             }
-            }
-            objectlist; /* Just in case... */
-           }
-           break;
-
-  case vb_eat:case vb_drink: if (holding())  swallow(); break;
-  case vb_load: edna_load(realwords[2]); break;
-  case vb_save: if (alive)  edna_save(realwords[2]);
-           else display("It's a bit late now to save your game!");
-           break;
-  case vb_pay: display("No money need change hands."); break;
-  case vb_look: lookaround(); break;
-  case vb_break: display("Vandalism is prohibited within this game!"); break;
-  case vb_quit: { /* quit */
-            if (demo) 
-            {
-             dixi('q',31);
-             close(demofile);
-             exit(0); /* Change this later!!! */
-            }
-        if (! polite)  display("How about a `please\", Avvy?"); else
-         if (ask("\23C\26Do you really want to quit?"))  lmo=true;
-       }
-       break;
-  case vb_go: display("Just use the arrow keys to walk there."); break;
-  case vb_info: {
-            aboutscroll=true;
-/*            display('Thorsoft of Letchworth presents:'+^c+^m+^m+
-             'The medi‘val descendant of'+^m+
-             'Denarius Avaricius Sextus'+^m+'in:'+
-             ^m+^m+'LORD AVALOT D''ARGENT'+
-             ^m+'version '+vernum+^m+^m+'Copyright ï '
-             +copyright+', Mark, Mike and Thomas Thurman.');*/
-             display(string("\r\r\r\r\r\r\r")+"LORD AVALOT D'ARGENT"+"\3\r"+
-              "The medi‘val descendant of"+'\15'+
-              "Denarius Avaricius Sextus"+
-              '\15'+'\15'+"version "+vernum+'\15'+'\15'+"Copyright ï "
-              +copyright+", Mark, Mike and Thomas Thurman."+'\23'+'Y'+'\26');
-             aboutscroll=false;
-           }
-           break;
-  case vb_undress: if (dna.wearing==nowt)  display("You're already stark naked!");
-               else
-            if (dna.avvys_in_the_cupboard) 
-            {
-             display(string("You take off ")+get_better(dna.wearing)+'.');
-             dna.wearing=nowt; objectlist;
-            } else
-            display("Hadn't you better find somewhere more private, Avvy?");
-            break;
-  case vb_wear: if (holding()) 
-       {     /* wear something */
-        switch (thing) {
-         case chastity: display("Hey, what kind of a weirdo are you\??!"); break;
-         case clothes:case habit: { /* Change this! */
-                         if (dna.wearing!=nowt) 
-                         {
-                          if (dna.wearing==thing) 
-                            display("You're already wearing that.");
-                          else
-                            display(string("You'll be rather warm wearing two ")+
-                           "sets of clothes!");
-                          return;
-                         } else
-                         dna.wearing=thing; objectlist;
-                         if (thing==habit)  fv=3; else fv=0;
-                         { void& with = tr[1]; 
-                          if (whichsprite!=fv) 
-                          {
-                           sx=tr[1].x; sy=tr[1].y;
-                           done;
-                           init(fv,true);
-                           appear(sx,sy,left);
-                           tr[1].visible=false;
-                          }}
-                        }
-                        break;
-         default: display(what);
-        }
-       }
-       break;
-  case vb_play: if (thing==pardon) 
-            switch (dna.room) { /* They just typed "play"... */
-             case r__argentpub: play_nim; break; /* ...in the pub, => play Nim. */
-             case r__musicroom: play_harp(); break;
-            }
-           else if (holding()) 
-           {
-            switch (thing) {
-             case lute : {
-                     dixi('U',7);
-                     if (whereis[pcwytalot]==dna.room)  dixi('U',10);
-                     if (whereis[pdulustie]==dna.room)  dixi('U',15);
-                    }
-                    break;
-             case '\64' : if (dna.room==r__musicroom)  play_harp();
-                    else display(what);
-                    break;
-             case '\67' : if (dna.room==r__argentpub)  play_nim;
-                    else display(what);
-                    break;
-             default: display(what);
-            }
-           }
-           break;
-  case vb_ring: if (holding()) 
-       {
-        if (thing==bell) 
-        {
-         display("Ding, dong, ding, dong, ding, dong, ding, dong...");
-         if ((dna.ringing_bells) & (flagset('B'))) 
-          display("(Are you trying to join in, Avvy\?\?!)");
-        } else display(what);
-       }
-       break;
-  case vb_help: boot_help; break;
-  case vb_larrypass: display("Wrong game!"); break;
-  case vb_phaon: display("Hello, Phaon!"); break;
-  case vb_boss: bosskey; break;
-  case vb_pee: if (flagset('P')) 
-          {
-           display("Hmm, I don't think anyone will notice...");
-           set_up_timer(4,procurinate,reason_gototoilet);
-          } else display("It would be \6VERY\22 unwise to do that here, Avvy!");
-          break;
-  case vb_cheat: {
-