cybermind
b21dc46d49
[*] Now editor correctly uses randomized mixed tile types
2014-05-26 17:07:31 +06:00
cybermind
00972d1aa2
[+] Added CPreference::GrayscaleIcons, to enable and disable support for grayscale icons\n[-] Fixed bug with incorrect unit icons display
2014-05-26 15:56:59 +06:00
cybermind
57391a45cf
[-] Fixed crash when using tabs in text
2014-05-25 13:47:53 +06:00
cybermind
e4c357c1d9
[-] Fixed crash when blowing up dwarves/sappers
2014-05-25 13:37:58 +06:00
cybermind
f38afb7703
[-] Fixed infopanel displaying when holding mouse over a unit without selecting
...
[-] Fixed crash with unit tracking
2014-05-25 11:20:25 +06:00
cybermind
d47fdf52bd
[*] Correct Death Coil spell casting
2014-05-25 10:40:56 +06:00
cybermind
446a0a9454
[*] Lua access to UI.Infopanel.G, required for correct infopanel displaying.
2014-05-23 20:18:58 +06:00
cybermind
27691dce45
[-] Fixed a bug with scoreboard (non-colored player labels)
2014-05-19 20:23:24 +06:00
cybermind
1d374a6afa
[-] Fixed some network bugs
2014-03-17 20:21:56 +06:00
cybermind
c54cd1bf9d
[-] Fixed some crashes while loading a saved game
2014-03-16 12:45:36 +06:00
cybermind
6bd2a7f206
[+] Added Preference.AiExplores, to control AI exploration requests for resources
2014-03-12 19:11:38 +06:00
cybermind
69cceb0486
[*] Update button popup after all buttons were drawn
2014-03-09 13:34:23 +06:00
cybermind
131aceeeb4
[+] Added new function SaveMapPNG to save whole terrain as png file
2014-03-09 13:33:09 +06:00
joris
d42b58d1d2
[AStyle]
2014-03-08 17:12:33 +01:00
cybermind
ab720b4508
[-] Fixed CclGetUnitsAroundUnit
2014-03-07 19:57:20 +06:00
cybermind
a4df831f4b
[+] Added "min-range" parameter to autocast settings, to set minimal distance for autocast to work
2014-03-07 19:53:46 +06:00
cybermind
37d0772785
[+] Correct support for interrior tilesets. Now units aren't able to shoot through "rock" and "forest" tilesets. Use GameSettings.Inside = true
...
[+] DamageUnit lua function to damage unit through Lua code
[+] Support for unit's build sound
[+] IsAlive variable, allows to check if unit is alive through Lua
[-] Fixes in unit voice code
2014-03-02 17:41:47 +06:00
cybermind
41652c2518
[+] Support for &, |, ^, ! operations in CAnimation_IfVar
2014-02-26 17:06:56 +06:00
cybermind
d4ecd6327d
[+] Enhanced spell casting:
...
-ability to define user conditions for spell using Lua scripts. Just use "callback" keyword in conditions, followed by function name after comma. If function returns true, the condition pass and vice versa.
-ability to define user actions for spell using Lua scripts. Use "lua-callback" action type, followed by function name after comma.
2014-02-25 22:30:32 +06:00
cybermind
435283a69d
[+] Enhanced teleporting feature:
...
-TeleportMissile replaced to lua callbacks TeleportEffectIn and TeleportEffectOut, allowing more flexible effects
-Ability to set the teleporter's destination using SetTeleportDestination function
-Now player can use neutral teleporters
2014-02-21 23:00:39 +06:00
cybermind
81a00d6163
[-] Fixed assert in debug mode
2014-02-20 18:42:36 +06:00
cybermind
a8ed6b7f9a
[+] Added GameEstablishing flag to control player's interaction to game
2014-02-13 23:11:00 +06:00
cybermind
a8448d0c97
[+] Ability play unit's still animation while waiting
2014-02-04 22:45:27 +06:00
joris
f7ef97a7df
[AStyle]
2014-01-06 22:49:57 +01:00
cybermind
19176cbe1d
[*] Another AI target priority fixing
...
[*] Slightly improved AI forces behavior
[*] Removed FrameFraction, FrameRemainder, NextFrameTicks now is double instead of unsigned long
[-] Fixed crash when loading a savegame with spell casting units
2013-12-29 23:56:56 +06:00
cybermind
229f2cbdfa
[-] Fixed missile blocking by Wall units
2013-12-24 13:48:05 +06:00
cybermind
fa37c4d4a3
[+] Added second parameter to PlaySound to play sound even if it's currently playing
2013-12-24 13:47:24 +06:00
cybermind
8c0f644642
[*] Correctly handle unit annoyed voices
2013-12-21 17:07:15 +06:00
joris
4fc21f085c
Add missing include for gcc.
2013-12-20 02:26:00 +01:00
cybermind
8cac9b3e70
[-] Fixed bug when selecting an enemy unit under counstrction would emit building sound
2013-12-17 14:31:38 +06:00
cybermind
d58ebc9572
[-] Fixed bug when unit with stand-ground action could attack enemies but without shooting a missile
2013-12-17 14:10:03 +06:00
cybermind
f8daf90b32
[*] Ability to automatically return goods in newly constructed depot
2013-12-17 14:07:40 +06:00
cybermind
4559c0050d
[-] Fixed bug when piercing missile is outside of map
2013-12-16 19:22:10 +06:00
cybermind
bc16a6c6eb
[+] Metaserver client code rewritten: now using class CMetaClient available through Lua
2013-12-05 21:03:34 +06:00
cybermind
45441a848a
[*] If unit is being attack by MissileClipToTarget and it is removed from the map(transport,...), no damage is inflicted
2013-12-04 21:07:11 +06:00
cybermind
262b1571f9
[-] Don't update buttonpanel on every variable change to prevent slowdown
2013-12-04 21:05:45 +06:00
cybermind
5b7ca4f014
[-] Fixed hotkey assignment(now use Key = "ESC" for escape button in DefineButton)
2013-12-04 21:04:32 +06:00
cybermind
4f852dee9d
[-] Fixed bug when unit tries to launch missile in stand ground mode
2013-12-04 21:02:42 +06:00
cybermind
51e9ed142e
missed changes for mouse.cpp
2013-12-04 21:01:25 +06:00
cybermind
1498d28480
[+] Some enhacements to the small(unit) AI
...
-use Damage formula to calculate damage when searching for targets
-don't auto attack invulnerable units
-attack wall only if unit is near to it
-units controlled by player now are able to switch targets when attacked
-fixed casting spells on attacking units
-increased priority for targets that are able to retalliate
[+] Ability to return goods to allied depots
[+] Added FiredSound property for MissileType
[-] Fixed possible crash when trying to place units in editor
2013-12-04 20:59:46 +06:00
cybermind
eab83bf933
[-] When upgrading-to a unit, AI didn't take into account the unit limits
2013-11-16 15:13:29 +06:00
cybermind
d735b730ab
[-] Fixed desync caused by triggers in custom maps
2013-11-16 14:04:47 +06:00
joris
c911d001d0
Some clean up.
2013-11-02 16:54:21 +01:00
joris
0f29012a23
Some clean up.
...
remove dead code.
2013-10-29 19:09:51 +01:00
joris
81570d6ea1
should fix compilation on *nix.
2013-10-29 14:24:42 +01:00
joris
7ee02a9b1f
Replace raw pointer ::Selected by std::vector.
2013-10-29 10:38:04 +01:00
joris
489ddc943f
Remove unused GetNumberUnitsOfGroup.
2013-10-26 11:39:38 +02:00
joris
27f83021d7
Files not commited in previous commit.
2013-10-26 11:36:43 +02:00
joris
49a615cf50
Clean up groups.cpp
2013-10-26 10:55:29 +02:00
joris
a0ed13735b
Clean up selection.cpp
...
- Replace raw array by std::vector.
- use unsigned int instead of int.
2013-10-25 12:56:46 +02:00
joris
d55f0acadd
Implement lua wrapper CheckDependency. Inspired from Mikko Merikivi's patch.
2013-10-18 12:12:48 +02:00
joris
ad3212a069
Remove useless virtual for luacallback.
2013-10-14 13:57:11 +02:00
joris
cdc311b209
Use "full path" for hash to avoid conflict in main-menu when changing data root.
2013-10-13 20:11:21 +02:00
joris
51cc01ab45
Remove useless typedef.
2013-10-13 19:34:45 +02:00
joris
300fa70d92
Some clean up
2013-10-11 20:53:25 +02:00
joris
d33119e0e4
Change prototype of LibraryFileName.
2013-10-11 11:59:49 +02:00
joris
75f857f60b
Fix gcc warnings.
2013-10-11 11:58:17 +02:00
cybermind
83a45a79b1
[+] Reuse Key field for AddButton
2013-10-06 16:57:33 +06:00
cybermind
5bef8f555c
[+] Support UTF-8 in ShowLoadProgress
...
[*] Increase message buffer to 256
2013-10-06 16:51:04 +06:00
cybermind
a92eea4fec
[*] Show upgrade name in notify if available
2013-10-06 16:06:59 +06:00
cybermind
640789ff24
[*] Always clamp variables between 0 and Max
2013-10-06 15:42:40 +06:00
cybermind
c92fdc304e
[+] Allow user to modify unt's stats using Get/SetUnitVariable
2013-10-06 15:40:38 +06:00
cybermind
2fb6a51d63
[-] Fix crash when UnitUnderCursor is NULL
2013-10-06 15:38:02 +06:00
cybermind
ded4cc7a7e
[+] Allow placing NonSolid units everywhere
2013-10-06 15:34:36 +06:00
cybermind
de0962bf75
[-] Fix BuildFromOutside
2013-10-06 15:31:48 +06:00
cybermind
8325e2b3fc
[*] Apply MissileType::ChangeVariable and MissileType::OnImpact effects before unit death
2013-10-06 15:28:45 +06:00
cybermind
2d4b995575
[+] Changed MissileType::Damage to NumberDesc, so you can now define uour own damage formula for missile.
2013-10-06 15:24:33 +06:00
joris
841246e72b
[AStyle]
2013-09-05 17:02:22 +02:00
joris
fab20659a0
Draw some more icons with playerColor.
2013-09-05 12:15:30 +02:00
joris
b34f0c86b3
[AStyle]
2013-09-01 17:07:03 +02:00
cybermind
2e7fb1375b
[*] Increased maximum of animations to 4096
2013-09-01 12:33:59 +06:00
cybermind
65e321446e
[-] Fixed clamp in CAnimation_SetVar
2013-09-01 12:31:50 +06:00
cybermind
77a504c708
[+] Adeed second parameter in CclFilteredListDirectory, which allows to use relative paths instead of absolute
2013-09-01 12:27:53 +06:00
cybermind
5afe3b6a1b
[-] Don't show any information for units with IsNotSelectable flag
2013-09-01 12:23:38 +06:00
cybermind
f2f780d729
[+] Ability to get unittype "Name" in CclGetUnitVariable
...
[*] Update unit variables before getting variable in CclGetUnitVariable
2013-09-01 12:12:38 +06:00
cybermind
777d8a3467
[*] Update all unit stats for new unittypes, not variables only
2013-09-01 12:03:58 +06:00
cybermind
b3313b28ae
[-] Missing file in previous commit
2013-09-01 12:00:26 +06:00
cybermind
210369b752
[+] Added new MissileStraightFly, which flies straightly, until it reaches terrain tile field flags mask specified in MissileType::MissileStopFlags. You can use KillFirstUnit property, so missile will explode on first unit.
...
[*] More correct missile handling in MissileHandleBlocking
[*] Missile with KillFirstUnit can't kill dead or non-solid units
2013-09-01 11:44:48 +06:00
joris
c64a14b05c
Fixx gcc warnings.
2013-08-31 19:01:14 +02:00
cybermind
d3de1ee103
[+] Added MissileType::KillFirstUnit flag, hich tells missile to kill first unit on it's way, rather than on destination point
...
[-] Fixed incorrect condition in MissileHandlePierce
2013-08-26 22:05:10 +06:00
cybermind
5740720319
[-] Fixed crash when trying to load a map with new unittypes
2013-08-26 21:33:57 +06:00
cybermind
a31a435412
[+] Added ability to use clrl+alt+right click to attack ground
2013-08-26 21:32:00 +06:00
cybermind
e6fa44c583
[-] Fixed crash on map load when Map.Info.Filename was empty
2013-08-25 21:02:22 +06:00
cybermind
ade21bb402
[+] Added "attacker" property in spell autocast parameters, to control, if spell will be casted only on attacking units
2013-08-25 20:56:48 +06:00
cybermind
b48ee5b4a1
[+] Added ability to block missiles with Wall units, if missile was launched from land unit to land unit. Added MissileType::IgnoreWalls flag to ignore walls.
2013-08-25 15:03:30 +06:00
cybermind
2fd9864207
[+] Enhanced CclCreateMissile by addind 7th bool parameter, to make all position calculations relative to map coordinates.
2013-08-24 21:16:44 +06:00
cybermind
9481b65058
[*] Position spells doesn't use information about UnitUnderCursor
2013-08-24 21:06:41 +06:00
cybermind
e185e25aa2
[+] Added unittype variables TargetPosX and TargetPosY, to hold information about unit's current goal position
2013-08-24 21:04:41 +06:00
cybermind
bc32d48359
[+] Allow to get info about spell autocast in animation
...
[*] CUnitType::Priority is now the main property in AI threaat calculation.
[-] Fixed DrawInformations in replay mode.
2013-08-24 12:44:29 +06:00
cybermind
4734d1fd8e
[-] Fixed bug when unit trying to hide himself with a spell unhides itself again.
2013-08-20 23:22:56 +06:00
cybermind
fe6cb121c7
[+] Enhanced transporters:
...
-ability to specify unit "size" in transporter using BoardSize unit property.
-ability to specify button level for transporting buttons using ButtonLevelForTransporter unit property.
-fixed bug: unit is deselected when it's trying to unload his passengers.
2013-08-20 22:51:48 +06:00
cybermind
a1e8b56830
[-] Fixed crash in replay mode when showing unit without graphics (revealer)
2013-08-20 19:18:25 +06:00
cybermind
3b95b6ad2d
[+] Ability to build several units in row (useful for walls). Just hold mouse left button and SHIFT/ALT and move your mouse to build more units of the same type
2013-08-20 19:16:53 +06:00
cybermind
ea187aff06
[+] Ability to specify setup file for map(useful for scenario maps). Just change Map.Info.Filename while in editor.
2013-08-20 19:14:22 +06:00
cybermind
b4586744db
[+] Added CclGetUnitsAroundUnit function to get all units around specified unit into table
2013-08-16 00:34:32 +06:00
cybermind
aaf2bc1559
[*] Enhancements in editor:
...
-tile mode labels now colored in reverse color if selected.
-fit unit icons in UI.ButtonPanel.Buttons cells.
2013-08-15 19:17:46 +06:00
cybermind
e39a925942
[+] Implemented spell cooldown timer ability, like in modern RTS (WC3). To use it, define "cooldown" property in DefineSpell with integer argument.
2013-08-15 16:08:01 +06:00
cybermind
7d944e5b1d
[*] Invincible units now have the lowest priority for AI
2013-08-14 19:41:47 +06:00
cybermind
9521969aeb
[+] Added MissileType::ParabolCoefficient, to control curve coefficient in MissileParabolic
...
[*] All calculations in MissileParabolic now use doubles instead of ints
2013-08-14 19:23:54 +06:00
cybermind
e988ff95b6
[*] More strings to translate
2013-08-14 12:47:37 +06:00
cybermind
f0660bbc62
[+] Ability to use conditions in NumberDesc using NumIf cxommand. Syntax: NumIf(<cond>, <truepart>, <falsepart>)
2013-08-11 18:03:03 +06:00
cybermind
e7490931c9
[-] Fixed assertion fail in unit_find.cpp
2013-08-11 15:57:51 +06:00
cybermind
74822f0214
[*] Don't notify player for insufficient resources in spell cast
2013-08-11 15:56:29 +06:00
cybermind
55cc1ab4ee
[+] Ability to parse player number in animations as variable. Place variable expression in brackets. Example: p_(v_Player.Value).TotalNumUnits
2013-08-11 15:55:13 +06:00
cybermind
784fc9cddd
[+] Ability to show player name for in StringDesc. Use PlayerName(num), where num is NumberDesc containing player's number
2013-08-11 14:16:45 +06:00
cybermind
b78e366639
[-] Fixed order saving for autocast
2013-08-09 19:21:46 +06:00
cybermind
46dc4049b6
[*] Fixed dependency printing to show only first option in DefineDependency
2013-08-09 19:13:55 +06:00
cybermind
3bed296795
[+] Enhanced Spell_AreaAdjustVital by addind "use-mana" boolean to control mana drain from spell usage.
2013-08-09 18:53:18 +06:00
cybermind
0de6048865
[-] Fixed typo in map preview calculation
2013-08-08 12:32:06 +06:00
cybermind
1b5bb6b97d
[+] Ability to enable OpenGL texture compression from Lua using SetUseTextureCompression function
2013-08-08 11:41:31 +06:00
cybermind
9a975a6304
[-] Fixed compilation
2013-08-08 11:07:26 +06:00
joris
15e7a02002
[AStyle]
2013-08-06 15:33:06 +02:00
joris
f14450045f
Make CUDPSocket_Impl compliant with AStyle // AStyle format wrongly (Socket) -1, but correctly Socket(-1)).
2013-08-06 15:20:00 +02:00
joris
7152fd4302
[AStyle]
2013-08-06 15:08:51 +02:00
joris
db1fb7951c
Fix warning with gcc.
2013-08-06 14:56:45 +02:00
cybermind
9b56c29197
[*] Spell auto-cast feature now saves current order to continue it in future.
2013-08-04 17:52:03 +06:00
cybermind
0ec0b49c93
[+] Added showing of food usage for popup windows.
2013-08-03 18:45:24 +06:00
cybermind
06d0641ddd
[+] Implemented old behavour for storing user data (logs, saves etc) to path where Stratagus is installed. To use this feature, enable ENABLE_USEGAMEDIR option in CMake
2013-08-03 18:43:17 +06:00
cybermind
7e9a32af91
[-] Another fix for map preview, which added player spots
2013-08-03 16:50:57 +06:00
cybermind
3e3ae32ca6
[-] Fixed map preview creating in OpenGL mode
2013-08-03 15:49:37 +06:00
cybermind
ad63ef7486
[+] Enhanced area-adjust-vitals spell by adding Range field
...
[*] ShieldPoints now a vital, so it may be modified through "adjust-vitals"/"area-adjust-vitals" spells
2013-08-03 15:16:20 +06:00
cybermind
31481cda99
[*] ShieldPiercing is now a variable instead of boolflag, so it may be modified through lua
2013-07-31 20:10:40 +06:00
cybermind
576796a15f
[+] Added ShieldPermeability unit variable, which controls damage percent absorbed by shield. 0 - shield fully absorbs damage, 100 - shield unable to protect from damage
2013-07-31 19:55:25 +06:00
cybermind
4876406ff2
[-] Removed revision 8670, which causes periodic "network out of sync", because some player was able to randomly execute commands which aren't executed by other players.
2013-07-29 22:20:43 +06:00
joris
8115d4ae84
Use floorf instead of floor.
2013-07-25 17:42:05 +02:00
joris
ab48443be5
Fix typo
2013-07-25 17:41:05 +02:00
joris
cab3467df1
Fix compilation for mingw
2013-07-25 15:00:59 +02:00
joris
195cdbea03
Fix typo thanks to codespell.
2013-07-25 14:31:34 +02:00
cybermind
ef2aaa419e
[-] Fixed network desync when trying to select units with rectangle and move them
2013-07-20 21:24:18 +06:00
cybermind
637de00822
[-] Fixed bug which didn't allow client to join into game
...
(note: I'm not highly knowledgable in network protocol programming, but looks like stratagus tries to connect on localhost instrad of address specified in join window)
2013-07-20 16:46:55 +06:00
Pali Rohár
752c9f77b2
winapi attachconsole.cpp: Use macro _WIN32_WINNT_WIN2K instead hardcoded constant 0x0500
2013-07-12 14:15:17 +02:00
Pali Rohár
278ec0e474
Fix compile error: include math.h for function floor()
...
src/video/sdl.cpp:827:91: error: ‘floor’ was not declared in this scope
2013-07-12 14:10:56 +02:00
joris
bb21f79cba
Use min/max/clamp.
2013-07-12 09:27:41 +02:00
joris
e73524d87d
Fix gcc warnings about mixing && ||
2013-07-05 10:59:22 +02:00
joris
486c887c62
use std::min, std::max
2013-07-02 11:57:07 +02:00
Tim Felgentreff
180de1f00d
allow distance rules to specify owner of units
2013-06-05 11:38:12 +02:00
Tim Felgentreff
0a6739b153
fix crash that occurs with some compilers when vector capacity isn't initialized
2013-05-30 14:04:33 +02:00
Tim Felgentreff
ab324f9adb
feature: allow buildings to spawn buildings within their repair range
2013-05-30 14:02:59 +02:00
Tim Felgentreff
9dd2c82db7
merge lp:~timfelgentreff/stratagus/ButtonCheckUnitsNot
2013-05-30 08:47:54 +02:00
joris
31543a7c99
Clean up:
...
- Use std::min/max.
- remove useless test: delete null ptr is safe.
2013-05-27 14:02:36 +02:00
Tim Felgentreff
921c298c9c
add a button check to disable a button when a unit is available
2013-05-23 01:23:25 +02:00
Tim Felgentreff
a4760fca73
buildings can build buildings if they are within repair range
2013-05-23 00:37:52 +02:00
joris
e64b56d0fb
Fix chopping wood. (Bug introduced by rev.8737).
...
Fix unitTest.
2013-05-19 18:15:00 +02:00
joris
2b3dacf61d
Replace condition by std::max.
...
remove useless condition
2013-05-15 09:43:09 +02:00
cybermind
c6366e3815
[+] Added ability to join into AI force for spell-capture
...
[*] Flags for CAnimation_SpawnUnit are optional
[*] Joining to AI force is now optional
2013-05-13 16:40:09 +06:00
cybermind
13ffa1d0b3
[+] Added CUnit flag Summoned to mark units which are summoned by spells
...
[*] Summoned units don't bother AI when attacked and join into AI attack forces to help in attack wave
[*] Some animation code clean-up
2013-05-12 21:09:02 +06:00
cybermind
a5d5580115
[*] Limit the count of AI forces available through Lua functions to 25.
...
The forces from 25 to 49 are used to hold attacking forces.
This fixes a situation when user couldn't use forces with bigger indexes because they were used to hold attacking force
2013-05-12 18:17:20 +06:00
cybermind
71f78c119e
[-] Fix crash when resource unit is destroyed
2013-05-12 18:12:43 +06:00
cybermind
a126ed9962
[+] Add CPreference::PauseOnLeave parameter to control the game pause when the window is inactive
2013-05-12 18:11:08 +06:00
cybermind
e6d1b09470
[*] Check button-specific allow conditions when Allowed field is filled with user condition
2013-05-12 14:32:57 +06:00
cybermind
aae9643d4a
[-] Fixed bug when research don't modify the stats of non-ready buildings
2013-05-12 14:30:06 +06:00
cybermind
92d8da8469
[-] Fixed bug when player loses resources if he stops resource-using action (upgrade-to, research etc)
2013-05-12 14:27:20 +06:00
cybermind
e0542ff0e1
[-] Fixed action freeze when speeds are lower than 100
2013-05-12 14:24:45 +06:00
cybermind
70d2627204
[+] Added CAnimation_SetVar changes into CAnimation_SetPlayerVar
2013-05-10 23:21:37 +06:00
cybermind
fbd6c30113
[+] Added AND, OR, XOR and NOT operators in CAnimation_SetVar
...
[+] Added string aliases for operators
2013-05-10 22:29:43 +06:00
cybermind
9cbf372306
[+] Added CclDefineSpell parameter "force-use-animation" to use animation code for "self" targeted spells (enables to use spells as some type of commands promted through button panel)
2013-05-10 22:16:08 +06:00
Tim Felgentreff
cc719afc03
shrink actual capacity of vector to fit when starting new game
2013-05-10 15:16:48 +02:00
joris
cb88d6b3f7
Fix compilation with gcc
2013-05-10 15:08:16 +02:00
Tim Felgentreff
dc9f3e7485
merge lp:~timfelgentreff/stratagus/timfelgentreff-zoomeable-view
2013-05-10 09:16:26 +02:00
cybermind
2fa0216c2f
[+] Added CAnimation_LuaCallback which allows user to call lua functions from animations.
...
Usage: "lua-callback func_name arg1 [argN ...]"
2013-05-09 22:32:37 +06:00
cybermind
a63a4fff61
[+] Added drawlevel sorting for particles
2013-05-09 11:07:50 +06:00
cybermind
b9fb1bfd1b
[-] Spell_Teleport uses standard method for mana subtraction
2013-05-08 18:17:28 +06:00
cybermind
c25f13d6d4
[+] Added CUnitType::TeleportCost and CUnitType::TeleportEffect to customize portals
2013-05-08 18:10:35 +06:00
joris
da22b538d9
Fix clang warnings
2013-05-06 20:18:00 +02:00
cybermind
f7a5a173f7
[-] Fixed life bar drawing bug for extremly low values
2013-05-05 11:45:42 +06:00
cybermind
2901ead35c
[+] Added OnInit lua callback for CUnitType to initialize unit variables after creation
2013-05-04 19:45:27 +06:00
Tim Felgentreff
1f83197c56
print error message to stderr, not stdout
2013-05-01 18:41:37 +02:00
Tim Felgentreff
727ed53949
Only show -Z option in help text if compiled with OpenGL(ES) and make certain that -Z only works with OpenGL enabled
2013-05-01 18:37:39 +02:00
Tim Felgentreff
dae3545a7b
always translate mouse coordinates if we are zoomed
2013-05-01 13:56:24 +02:00
Tim Felgentreff
8ed21f7b44
use Viewport dimensions for video when using OpenGL
2013-05-01 12:42:41 +02:00
Tim Felgentreff
b137d90835
merge lp:stratagus
2013-04-30 20:36:53 +02:00
joris
e82dd1e975
Fix gcc warnings.
...
Fix Assert and DebugPrint macros.
2013-04-30 16:37:18 +02:00
cybermind
9c7004c8cc
[*] Spawn-portal spell improvement
2013-04-30 19:34:46 +06:00
cybermind
7383712a0d
[-] Fixed compilation for metaserver and in release mode
2013-04-30 17:33:12 +06:00
cybermind
b45c081b0b
[+] Added information in help for new command line parameters
2013-04-29 19:31:19 +06:00
cybermind
9c15e7939b
[+] Allow user to dump unit info in log using "-i" command line parameter
2013-04-29 19:22:59 +06:00
cybermind
befeb12084
[-] Correctly handle RegenerationRate modify in CclSetUnitVariable
2013-04-29 18:49:22 +06:00
cybermind
9a1f64f00e
[+] Player can enable and disable asserts or debug messages. Use -a or -p command line options.
...
[-] Replaced RefsAssert by Assert
2013-04-29 18:46:12 +06:00
cybermind
2e5a50d7e4
[-] Fixed incorrect in-game screenshots in software mode
2013-04-29 16:29:27 +06:00
cybermind
75bf724a78
[+] Added Opponents field in CServerSetup
2013-04-29 16:26:50 +06:00
joris
d06e4a584a
Replace CMap::ClearTile by Clear{Wood,Rock}Tile
...
Move MapField flags from tile.h to tileset.h
Add accessor for some CMapField members.
2013-04-26 15:04:33 +02:00
joris
be4b634e72
Clean up: Add const
...
Replace some code by more concise code.
2013-04-25 16:27:24 +02:00
joris
a1c9b4cebf
Add helpers in script.cpp to get value inside table directly.
2013-04-25 15:57:02 +02:00
joris
c89449df41
Fix previous commits.
2013-04-24 14:17:40 +02:00
joris
8610491675
Rename some arguments of CTileset methods.
...
Change some methods of CTileset as private.
Move hardcoded getDefaultTileIndex into CTileset.
2013-04-23 22:49:57 +02:00
joris
69246a0896
Add class CTile : regroups CTileset::NumTiles Table, FlagsTable, Tiles into CTileset::tiles.
...
Remove useless code.
Fix minimap of Editor.
2013-04-23 15:45:52 +02:00
joris
41969f7e94
Remove duplicated test.
...
Some factorisation in map_wall.cpp
2013-04-23 10:36:10 +02:00
cybermind
4a37c36524
[+] Added particle drawing check
2013-04-22 19:40:31 +06:00
joris
4b744633a1
Some clean up and renaming of tileset.
...
Fix docu.
2013-04-22 14:34:27 +02:00
Tim Felgentreff
ea34d6948e
merge lp:stratagus
2013-04-22 12:42:50 +02:00
Tim Felgentreff
b98da23503
Ensure we use absolute mouse coordinates on Windows touchscreen devices in fullscreen
2013-04-22 12:36:39 +02:00
Tim Felgentreff
13f388fea8
Fix bogus rectangle select when touch events jump around
2013-04-22 11:22:24 +02:00
Tim Felgentreff
30ff59a443
* Translate touch coordinates when using OpenGL zoom
...
* have the resolution option affect the viewport when using OpenGL zoom
2013-04-22 10:58:46 +02:00
joris
afe6b7e8cc
Move CMapField code into its own file. (and so remove map_save file)
2013-04-21 15:35:48 +02:00
joris
888fe50184
Remove dead code.
...
Fix docu.
Replace unsigned short *VisibleTable by std::vector..
2013-04-21 15:34:33 +02:00
joris
805ee08cdf
Fix compilation under MSVC.
2013-04-21 10:35:10 +02:00
joris
4795c9570e
Move more related stuff of tiliset into tileset.cpp
...
Remove CleanTileset since it is done in Map::Clean()
2013-04-21 10:09:30 +02:00
joris
c971512ce6
Fix crash when GameFont is not defined (f.e in main-menu).
2013-04-20 15:52:35 +02:00
Tim Felgentreff
1bcd62b6cb
Add cmdline option to enable opengl zoom
2013-04-20 14:24:26 +02:00
Tim Felgentreff
767be11c32
scale, don't resize, when using opengl
2013-04-20 13:41:48 +02:00
joris
e8451ddea9
Remove unused growingTree.
...
make more CTileset member private
2013-04-20 09:33:37 +02:00
joris
5003649f64
Fix typo (case5) in QuadFromTile.
...
Fix CTileset::getTileNumber.
2013-04-19 19:25:02 +02:00
joris
2773438529
Add CTileset::getTileNumber and fillSolidTiles
...
cleanup editloop.cpp
Use loop.
2013-04-19 12:49:04 +02:00
joris
c348a93f61
Add CTileset::findTileIndex{,ByTile}.
...
Redisplay terrain names in editor in debug.
2013-04-18 20:00:32 +02:00
joris
cc5e73a31f
Clean up tileset.
2013-04-18 12:01:21 +02:00
joris
8f06b9bf13
Clean up tileset.
2013-04-17 20:43:16 +02:00
joris
0a96f73811
Replace some raw arrays by std::vector.
2013-04-17 12:33:18 +02:00
joris
f48eb02fa5
Clean up tileset.
2013-04-16 19:55:29 +02:00
joris
ac760fba42
Fix warning for gcc.
...
Use a more generic way to choose colorIndex.
Add some comment.
2013-04-16 16:34:32 +02:00
cybermind
b7ee246ab8
[-] Fixed new UI colors drawing (to-do: need more generic way to specify colors)
2013-04-15 20:41:57 +06:00
cybermind
a4b526c42c
[+] Added teleport spell
2013-04-15 20:39:16 +06:00
cybermind
87d7fa5a87
[*] Increased in-game notify message size fron 64 to 128
...
[-] Fixed bug with transparent 32bpp images in software mode
2013-04-15 19:39:36 +06:00
cybermind
ef2755a4e3
[+] Added SmokePrecision in MissileType to make smoke trails much smoother
...
[+] Added OnImpact lua callback in MissileType to make custom effects on missile impact
2013-04-15 19:36:06 +06:00
joris
b5028c1174
Remove Unit::Rs
2013-04-14 10:42:37 +02:00
joris
4cf60a5607
Add possibility to specify userDirectory via commandLine.
2013-04-14 10:42:04 +02:00
joris
c9d9d1723e
Clean up: Remove unused arg from some functions.
...
Remove some useless cast.
2013-04-13 15:19:19 +02:00
joris
537acf8f38
Fix warning in release.
2013-04-13 15:19:01 +02:00
Kyran Jackson
35f512285b
UI improvements.
2013-04-13 10:57:39 +10:00
joris
2c67ccb304
ReturnGoods without depot works in network too.
2013-04-12 18:12:26 +02:00
joris
53c91f39bb
Fix compilation on x64
2013-04-12 17:18:31 +02:00
joris
4ae820929a
All (de)serializations return size_t instead of unsigned int (Should fix compilation on x64)
...
Commit missing unit test file.
2013-04-12 15:58:50 +02:00
joris
b9b8ad8c82
Some renaming into network.cpp
...
Reordering some functions in network.cpp
Create some sub fonctions.
2013-04-12 15:38:58 +02:00
joris
a4a7241558
Fix warnings encountered by Julio (artofwar).
2013-04-11 13:14:29 +02:00
joris
e63f45b60a
Move generic network statistic into CUDPSocket (and add more). (remove statistic not set).
...
Move NetworkTimeout into CNetworkParameter.
2013-04-11 12:19:16 +02:00
joris
a42cfaecab
Rework InGame network messages.
...
Remove 'adjust' parameter of ChangeTeamSelectedUnits (always called with 0)
2013-04-10 19:39:52 +02:00
joris
39dec1df00
Remove CNetworkCommandQueue custom allocator.
...
use deque<T> instead of list<T*> for (Msg)CommandsIn.
2013-04-09 19:58:01 +02:00
joris
6b56c67135
Use GameNetCycle (GameCycle / NetworkUpdates) instead of GameCycle as index of NetworkIn, NetworkSyncSeeds, NetworkSyncHashs.
...
NetworkInSync is bool instead of int.
NetworkLags vlaue has been divided by NetworkUpdates.
2013-04-09 13:59:34 +02:00
joris
128c42210b
Fix HandleSuicideClick over network.
2013-04-08 16:36:28 +02:00
joris
cdb606fae6
Move some network globals into a singleton.
...
Remove configuration from the command line of NetworkLag, NetworkUpdates.
2013-04-07 16:40:32 +02:00
joris
346339d536
Clean up network.cpp and update some old docu about protocol format.
2013-04-06 19:20:54 +02:00
joris
64b51308a0
Don't use anymore global NetworkFildes inside Client/Server.
2013-04-05 21:05:33 +02:00
joris
af53391cee
Add classes CHost and CUDPSocket.
2013-04-04 23:59:29 +02:00
joris
3c8cbe8e84
Add a simple main.cpp to ease the use of unitTest.
2013-04-03 18:24:22 +02:00
joris
afe77ef505
Use NetSocketReady in sdl.cpp
2013-04-03 17:58:26 +02:00
joris
b705f868cd
Some clean up in master.cpp
2013-04-03 17:56:59 +02:00
joris
eff26b9969
Fix compilation of disabled code.
2013-04-03 11:32:15 +02:00
joris
f50cc657be
[AStyle]
2013-04-03 11:09:28 +02:00
joris
72e97ebe40
Don't use Parameters::Instance.LocalPlayerName inside CClient/CServer.
2013-04-03 11:05:49 +02:00
joris
8df4949abc
Don't use (global) ServerSetupState and LocalSetupState inside CClient and CServer.
...
Simplify CInitMessage_Config.
2013-04-02 20:25:15 +02:00
joris
9e6958e19b
Replace CInitMessage by more specific classes.
2013-04-01 12:54:48 +02:00
Pali Rohár
829e03df97
Rename GrayScale to GScale because GrayScale is #define in X11/X.h
2013-03-31 17:28:10 +02:00
Pali Rohár
cf12e0153c
Use SDL_HWSURFACE and SDL_HWPALETTE on all platforms when opengl or gles is disabled and use SDL_GL_DOUBLEBUFFER for opengl
2013-03-31 17:13:16 +02:00
cybermind
9af911808b
[*] Grayscale works in OpenGL too
2013-03-31 14:59:38 +06:00
cybermind
0ec029274b
[-] Fixed crash when no file was used for missile
2013-03-31 12:19:47 +06:00
cybermind
b29331a933
[*] Particle ticks bound to GameCycle
2013-03-31 12:18:43 +06:00
joris
3908bc44b8
Some refactoring, renaming in netconnect.cpp
2013-03-30 11:09:34 +01:00
joris
51dcae71ab
Add CClient::Send_* and CServer::Send_*.
2013-03-29 16:20:54 +01:00
cybermind
c0fea4f139
[-] Fixed crash when showing unit name popup for destroyed unit
2013-03-29 16:27:43 +06:00
cybermind
a2aa433dbc
[*] Write current GameSettings table into savegame
2013-03-29 16:26:15 +06:00
cybermind
89eddbe415
[-] Fixed assert when saving a game with workers collecting resources from outside
2013-03-29 16:22:19 +06:00