- Added missing #ifdef ENABLE_ZOMBIES for zombie exclusive code (by Jazz)

git-svn-id: https://ja2svn.dyndns.org/source/ja2/trunk/GameSource/ja2_v1.13@6672 3b4a5df2-a311-0410-b5c6-a8a6f20db521
Brief: //dnl ch80
- Polishing and fixing mapeditor.
Details:
- Add scroll map editor items for mouse wheel.
- Fix selection of mapinfo light and smoothing buttons when switching between taskbars.
- UpdateRoofsView now will hide/show onroof tiles and back roof walls too.
- Fix fake light toggle which now will remain after switching to another taskbar also fix incorrect ambient light saving during toggling fake light with HOME key.
- Finish work on HandleMouseClicksInGameScreen function so most draw functions now are single clicked on same tile element instead rapid burst of events which in some situation create stacking tiles problem during save game.
- Fix incorrect value for exit grids if right click on map element without exit grid, also if changing same exit grid then will update same instead to define next available slot from exit grid array.
- Restricted scroll will now disable scrolling when enter in textbox at mapinfo taskbar for basement levels and for proper radar map creation.


git-svn-id: https://ja2svn.dyndns.org/source/ja2/trunk/GameSource/ja2_v1.13@6673 3b4a5df2-a311-0410-b5c6-a8a6f20db521
Hotkey Updates (by Buggler)
- Duplicate all applicable arrow hotkeys to WASD hotkeys in Laptop mode (w -> UP, a -> LEFT, s -> DOWN, d -> RIGHT)
- Remapped squad 14 to 'Ctrl + 4' in tactical screen

git-svn-id: https://ja2svn.dyndns.org/source/ja2/trunk/GameSource/ja2_v1.13@6674 3b4a5df2-a311-0410-b5c6-a8a6f20db521
- Fixed wrong encoding and damaged content of mercs Files.cpp (by Buggler)
- Moved Chinese Character from mercs Files.cpp to _ChineseText.cpp, so we can have correct encoding of mercs Files.cpp


git-svn-id: https://ja2svn.dyndns.org/source/ja2/trunk/GameSource/ja2_v1.13@6675 3b4a5df2-a311-0410-b5c6-a8a6f20db521
Extended "Merc Random Stats Feature" (by Jenilee)
- Added 4th option for MERCS_RANDOM_STATS (MERCS_RANDOM_STATS = 4)
  o full randomization of mercs, including traits, gear kits and all statistics
see: http://www.ja-galaxy-forum.com/board/ubbthreads.php/topics/328769.html#Post328769

git-svn-id: https://ja2svn.dyndns.org/source/ja2/trunk/GameSource/ja2_v1.13@6676 3b4a5df2-a311-0410-b5c6-a8a6f20db521
Re-Fixed mercs Files.cpp (by Buggler)
o I assumed it was a Chinese character, but Buggler told me it was Korean. Anyway, we removed it ...

git-svn-id: https://ja2svn.dyndns.org/source/ja2/trunk/GameSource/ja2_v1.13@6677 3b4a5df2-a311-0410-b5c6-a8a6f20db521
- Fixed mouse cursor issue when calling sector inventory using hotkey in MovementPlottingMode and ChangeArrivalSectorMode (by Buggler)

git-svn-id: https://ja2svn.dyndns.org/source/ja2/trunk/GameSource/ja2_v1.13@6678 3b4a5df2-a311-0410-b5c6-a8a6f20db521
Bugfix: "Merc Random Stats Feature" (by Jenilee)
- Fixed crash on initializing armor when starting a new game

git-svn-id: https://ja2svn.dyndns.org/source/ja2/trunk/GameSource/ja2_v1.13@6679 3b4a5df2-a311-0410-b5c6-a8a6f20db521
- Bugfix: Fixed infinite loops that could occur in AI Actions (by Mae)


git-svn-id: https://ja2svn.dyndns.org/source/ja2/trunk/GameSource/ja2_v1.13@6680 3b4a5df2-a311-0410-b5c6-a8a6f20db521
Added new merge type "USE_ITEM_NEW" -> MergeType: 13 (by Sevenfm)

1.) USE_ITEM_NEW
- It creates new items with firstResultingItemIndex and secondResultingItemIndex (if defined) and deducts 1 point from firstItemIndex's status (for each new item).
- When firstItemIndex's status reaches 0, the item is destroyed.
- With this type of merge, you can use knife on tripwire roll, for example, to get 2 new tripwire items. So you can think of tripwire roll as container for 100 tripwires.
 
  <MERGE>
     <firstItemIndex>299</firstItemIndex>
     <secondItemIndex>1640</secondItemIndex>
     <firstResultingItemIndex>1524</firstResultingItemIndex>
     <secondResultingItemIndex>1524</secondResultingItemIndex>
     <mergeType>13</mergeType>
     <APCost>20</APCost>
  </MERGE>

2) USE_ITEM merge creates secondResultingItemIndex item if defined.
- With this secondResultingItemIndex defined, you can use knife on T-Shirt to get 2 rags.

  <MERGE>
     <firstItemIndex>299</firstItemIndex>
     <secondItemIndex>195</secondItemIndex>
     <firstResultingItemIndex>1022</firstResultingItemIndex>
     <secondResultingItemIndex>1022</secondResultingItemIndex>
     <mergeType>6</mergeType>
     <APCost>20</APCost>
   </MERGE>

git-svn-id: https://ja2svn.dyndns.org/source/ja2/trunk/GameSource/ja2_v1.13@6681 3b4a5df2-a311-0410-b5c6-a8a6f20db521
Ctrl + D in turnbased - skip player interrupts for that turn (by Sevenfm)
- This only works for singleplayer
- This only works for Old interrupt system

git-svn-id: https://ja2svn.dyndns.org/source/ja2/trunk/GameSource/ja2_v1.13@6682 3b4a5df2-a311-0410-b5c6-a8a6f20db521
New MOD-Setting (by Jazz)
- CREATURE_MEANWHILE_CUTSCENE: Play the meanwhile cutscene ordering the release of creatures?

git-svn-id: https://ja2svn.dyndns.org/source/ja2/trunk/GameSource/ja2_v1.13@6683 3b4a5df2-a311-0410-b5c6-a8a6f20db521
New option ALTERNATE_MOUSE_COMMANDS in Ja2_Options.ini (by Sevenfm)
- With this option = TRUE, mousewheel is inverted for changing stance with ALT+mousewheel, also some new mouse actions are possible.
- Alternate mouse actions: see "Docs\Manual\JA2_113_Alternate_Mouse_Commands.xlsx"
  https://ja2svn.no-ip.org/source/ja2_v1.13_data/GameDir/Docs/Manuals/JA2_113_Alternate_Mouse_Commands.xlsx

git-svn-id: https://ja2svn.dyndns.org/source/ja2/trunk/GameSource/ja2_v1.13@6684 3b4a5df2-a311-0410-b5c6-a8a6f20db521
Added support for turnbased mode to extended disarm dialog (by Sevenfm)
- AP/BP costs:
o Disarm: AP_DISARM_MINE, BP_DISARM_MINE
o Inspect: AP_DISARM_MINE/2, BP_DISARM_MINE/2
o Remove Blue Flag: AP_DISARM_MINE/2, BP_DISARM_MINE/2
o Blow Up: AP_DISARM_MINE/4, BP_DISARM_MINE/4
- Note: AP_DISARM_MINE value is modified if merc has ambidextrous trait.

git-svn-id: https://ja2svn.dyndns.org/source/ja2/trunk/GameSource/ja2_v1.13@6685 3b4a5df2-a311-0410-b5c6-a8a6f20db521
Updated Merc Random Stats Feature (Jenilee)
- tweaked the stats generation so should see less super high level marks/agi, especially on low level mercs
- randomization will now only affect AIM/MERC mercs.
- randomized gear kits are now an ini setting: MERCS_RANDOM_GEAR_KITS = TRUE/FALSE.
I made the gear randomization optional because it seems to cause trouble for people that don't use AIMNAS. SO hopefully this still lets them enjoy the random merc feature!

git-svn-id: https://ja2svn.dyndns.org/source/ja2/trunk/GameSource/ja2_v1.13@6686 3b4a5df2-a311-0410-b5c6-a8a6f20db521
Brief: //dnl ch81
- Fix several problems with summary windows and improve map loading to any map for mapeditor.
Details:
- Add option from CTRL+L list box to load any map from any listed profiles.
- Fix incorrect loading of items option in summary window for non vanilla maps.
- Fix improper popup of radio boxes for when items is selected in summary window and summary file or map not exist.
- Summary items information is now show for non sector custom map files too.
- Fix glitches when switching from overhead map to sector summary windows.
- Fix improper opening of exit screen text box during exit from overhead map.
- Change size to fixed macro of all temporary buffers for map filename.


git-svn-id: https://ja2svn.dyndns.org/source/ja2/trunk/GameSource/ja2_v1.13@6687 3b4a5df2-a311-0410-b5c6-a8a6f20db521
Fix: crash when soldier dies without an attacker

git-svn-id: https://ja2svn.dyndns.org/source/ja2/trunk/GameSource/ja2_v1.13@6688 3b4a5df2-a311-0410-b5c6-a8a6f20db521
Small visual changes (by Sevenfm)
see: http://www.bears-pit.com/board/ubbthreads.php/topics/172712/16/Code_Snippets.html

1) ENEMY_HIT_COUNT in ja2_options.ini accepts 2 new parameters:
  3 - show damage as white asterisks
  4 - show damage as red asterisks
  Number of asterisks is scaled (maximum 5): >0, >10, >30, >60, >100

2) Suppression tactical tooltip now shows suppression points from last attacks.
Previously it was always = 0 because ubSuppressionPoints value is cleared after each attack.

3) It is now possible to show suppression values above soldier, just as hit count.
There are new options in ja2_options.ini

Possible values:
 0 - do not show
 1 - show on moving hit counter
 2 - show above soldier
The values are color coded:
 Suppression is light gray
 Shock is yellow
 AP loss is blue
 Morale hit is green

SHOW_SUPPRESSION_COUNT = 0
SHOW_SHOCK_COUNT = 0
SHOW_AP_COUNT = 0
SHOW_MORALE_COUNT = 0

This option defines if values are shown as numbers or asterisks (1..5, using scale)
SHOW_SUPPRESSION_USE_ASTERISK = FALSE

This option defines if only 1 asterisk is shown or several (1..5) to represent value
SHOW_SUPPRESSION_SCALE_ASTERISK = TRUE

Show suppression above soldier during enemy attack. All other values are shown after attack, when HandleSuppressionFire function is calculated.
SHOW_SUPPRESSION_COUNT_ALT = TRUE

git-svn-id: https://ja2svn.dyndns.org/source/ja2/trunk/GameSource/ja2_v1.13@6689 3b4a5df2-a311-0410-b5c6-a8a6f20db521
- Fix: not checking for NOBODY
- Fix: uninitialised variable

git-svn-id: https://ja2svn.dyndns.org/source/ja2/trunk/GameSource/ja2_v1.13@6690 3b4a5df2-a311-0410-b5c6-a8a6f20db521
New options in ja2_options.ini (by Sevenfm)

1) PLAYER_HIT_COUNT = 0
This works as ENEMY_HIT_COUNT option, but for player mercs.
Possible values: 0 - 4

2) SOLDIER_TOOLTIP_DISPLAY_SUPPRESSION_INFO = TRUE
Show additional info in tactical tooltip:
- APs lost due to suppression
- Suppression Tolerance
- Effective Shock Level ( Shock level modified by traits and backgrounds. This value is compared with current suppression tolerance to determine "cowering" effect )
- AI morale level

3) SHOW_ENEMY_WEAPON = TRUE
Show enemy weapon name above soldier - after health, name and rank.
You can see exact weapon name only on short distances, range calculation is similar to dynamic tooltips and based on soldiers actual viewing range and experience.

git-svn-id: https://ja2svn.dyndns.org/source/ja2/trunk/GameSource/ja2_v1.13@6691 3b4a5df2-a311-0410-b5c6-a8a6f20db521