Commit Graph
68 Commits
Author SHA1 Message Date
aksdb 9903de9c24 🚨 Guard animation texture deletion against empty frame lists
Destroying an animation material with no frames dereferenced an
empty array.
2026-11-15 22:06:51 +01:00
aksdb 6d0ae63be6 🚨 Clamp write permission areas to the landscape size
The write map trusted area coordinates from the login response and
could index a bits array far out of bounds with hostile data.
2026-11-15 22:06:51 +01:00
aksdb fa288fddf8 🚨 Harden the nodraw map loader
A parse error leaked the file handle and negative IDs from a
malformed file indexed the draw bitmap out of bounds.
2026-11-15 22:06:51 +01:00
aksdb 1335e3f40e 🚨 Validate tile and hue IDs from network data
Static materials indexed the tiledata array and hue table with
unchecked IDs from the server, crashing the client on malformed
packets.
2026-11-15 22:06:51 +01:00
aksdb 1dc371ed27 🚨 Free the block index when a landscape update fails mid-packet 2026-11-15 22:06:51 +01:00
aksdb 3df6ab93f6 🐛 Free the client statics decode buffer on malformed data 2026-11-15 22:06:51 +01:00
aksdb d9f7b126b6 🐛 Load client static blocks stored at offset zero
The client used the same offset-zero bug as the server loader,
dropping the first static block of a freshly written file.
2026-11-15 22:06:51 +01:00
aksdb 2cc0be66c9 🐛 Keep the screen buffer tail pointer valid on inserts
Inserting an item that sorted after everything left the tail
shortcut stale, so later appends unlinked existing nodes. This
leaked screen entries, their textures, and blocked cache eviction
forever.
2026-11-15 22:06:51 +01:00
aksdb b4a14683cb 🐛 Add half of the dominant slope to effective altitude
The altitude helper halved the smaller delta instead of the dominant
one, miscalculating draw priorities on every diagonal slope.
2026-11-15 22:06:51 +01:00
aksdb 3fed4cd5fc 🐛 Use the correct height for landscape draw range
The row loop iterated by width, dropping terrain rows whenever the
draw range was clipped asymmetrically at the map borders.
2026-11-15 22:06:51 +01:00
aksdb 6aa6496429 ⚡️ Speed up preview rendering 2022-07-20 20:22:42 +02:00
aksdb 1753c38eea 🚧 Preview design placement 2022-07-20 18:54:00 +02:00
aksdb d75a85d269 🚧 Implement actions as objects 2022-05-29 11:46:22 +02:00
aksdb dfef4d3556 🔧 Increase caches to accommodate larger resolutions 2022-05-08 18:42:01 +02:00
aksdb 39280f927b * Fixed drop down toolbar buttons to correct their state
* Added terrain grid (ported from CentrED+; Thanks to StaticZ!)
2015-05-17 12:39:57 +02:00
aksdb ffd0cc1028 * Added advanced statics filter (thanks to StaticZ) 2015-05-10 19:48:52 +02:00
aksdb 5ac13430be * Fixed possible range overflow 2012-01-14 18:09:07 +01:00
aksdb abe62e13b8 - Changed the hue change mechanic (store the info in the ScreenBuffer instead of a separate list) (refs #66) 2011-03-30 20:52:24 +02:00
aksdb 086e6dbb7b - Fixed some range violations 2011-03-29 22:04:39 +02:00
aksdb d461774816 - Added optional highlight for (un)walkable tiles
- Fixed lightmanager to draw in the correct color
- Fixed TMapBlock and TStaticBlock to correctly initialize itself as "unchanged"
- Cleanup in the server project
2009-12-24 15:49:15 +01:00
aksdb eb62553f5c - Fixed static tiles with hue 1 using the wrong cache id
- Commented some debug messages
2009-12-22 19:47:46 +01:00
aksdb 841061abbb - Added FBO based light source rendering
- Fixed memory leak in TLightManager.UpdateLightMap
2009-12-22 09:36:35 +01:00
aksdb e502321f35 - Added more nodraw.txt locations
- Improved nodraw.txt parsing
2009-12-18 14:24:35 +01:00
aksdb 7adf94010a - Fixed TNormals to use GLfloat 2009-12-18 13:57:37 +01:00
aksdb 12a28c79b2 - Replaced own UVector with unit matrix from the RTL 2009-12-18 02:35:25 +01:00
aksdb 1e84b76c63 - Added external nodraw definition 2009-12-18 01:53:09 +01:00
aksdb 73e704e5fa - Changed TAnimDataProvider to load as much animdata as the input files provides
- Added TBufferedStream.GetSize
- Added TIndexedMulProvider.EntryCount
- Added TAnimDataProvider.AnimCount
- Added TLandscape.MaxStaticID
- Some more code cleanups
2009-12-18 00:17:42 +01:00
aksdb c41fd3be95 - Several code cleanups
- Fixed TArt.RefreshBuffer using the wrong variable (j <> i)
- Suppressed some hints
2009-12-17 15:41:54 +01:00
aksdb 5c3de09d10 - Added ref counting to TMaterial
- Added cache growing to TCacheManager
- Fixed ImagingOptions.inc to not include JPEG support
- Fixed TfrmRadar to save the radar map to the correct location
- Fixed statics using the wrong hue when being painted
- Removed obsolete TLandTextureManager.GetFlatLandMaterial (and the according cache)
2009-12-10 21:40:14 +01:00
aksdb 9c010eeb89 - Added option to toggle animated tiles
- Added option to toggle the security question when performing area commands
2009-12-10 14:30:47 +01:00
aksdb 222abd54fd - Fixed TAnimMaterial to cache the textures
- Fixed texture size calculation in TMaterial
2009-12-10 14:16:46 +01:00
aksdb 36afc1e1d9 - Fixed tiles only being checked for animdata if they have the appropriate tiledata flag 2009-12-09 16:56:39 +01:00
aksdb be935a6bcb - Added TAnimMaterial
- Implemented animated tiles
- Fixed TAnimData.FrameData to use ShortInt instead of Byte
2009-12-09 16:26:12 +01:00
aksdb 2a3e17fa57 - Abstracted TMaterial
- Removed unnecessary width/height processing from TMaterial
- Added TSimpleMaterial for one-graphic-textures
2009-12-09 14:36:53 +01:00
aksdb 446e104031 - Made ULandscape.GetID inline
- Removed some constraints on TileIDs and map coordinates
- Removed another unnecessary typecast
2009-12-08 15:30:53 +01:00
aksdb dde886b051 - Generalized TCacheManager (for more type-safety and cleaner code) 2009-12-08 15:12:09 +01:00
aksdb be3f8c05df - Updated Vampyre Imaging Lib
- Added font rendering
- Added height display in flat mode
2009-12-05 17:26:22 +01:00
aksdb dd88d845cd - Added translucent static tile support (fixes #46)
- Fixed infinite recursion when updating ghost map tiles
2009-12-05 01:24:58 +01:00
aksdb 14ab47bdf8 - Changed several OpenGL calls with their integer-equivalents (we don't use floats anyway)
- Added a "real quad" to the screenbuffer to keep track of the original terrain locations
- Added OpenGL based hit test to TScreenBuffer.Find
2009-12-04 15:52:27 +01:00
aksdb 0f2130730b - Fixed UpdateSortOrder to handle off-screen updates correctly 2009-12-03 15:38:11 +01:00
aksdb fffb420299 - Some code cleanups in UfrmMain and ULandscape
- Fixed GetPlainNormals in ULandscape to actually return a value
2009-12-03 01:35:29 +01:00
aksdb d5e5510760 - Added TTileDataFlag enum
- Added TTileDataFlags set
- Changed TTiledata.Flags to use the TTileDataFlags set
- Added hue highlighting to TfrmMain
- Added TTextureManager.GetStaticMaterial to handle tiledata and hues
2009-12-03 00:04:19 +01:00
aksdb 01e7b98a12 - Added generic lists for world items, static items and map items
- Added appropriate compare functions
- Some local cleanups
2009-12-02 19:14:00 +01:00
aksdb c3bdc98219 - Moved WriteMap handling from TdmNetwork to TLandscape
- Added repainting when accesslevel display changes (toolstate, update write map)
2009-10-02 23:52:02 +02:00
aksdb f888443ed0 - Changed TLandscape.FOpenRequests to use TBits instead of a boolean array 2009-10-02 18:18:59 +02:00
aksdb 7d038013b2 - Fixed TLandscape.FillDrawList to unnecessarily check upper/lower bounds 2009-10-02 18:10:21 +02:00
aksdb 0cee996fbc - Reimplemented the Virtual Layer 2009-09-29 02:25:19 +02:00
aksdb 99c21fa951 - Added Logging unit and MultiLog dependency
- Removed StaticsFilter parameter from FillDrawList
2009-09-28 18:16:29 +02:00
aksdb 2b040fc5e3 - Disabled use of normals (weren't really in use anyway)
- Added updating of the last shortcut in TScreenBuffer
2009-08-06 15:04:09 +02:00
aksdb 28969d94f7 - Removed merge sort implementation
- Use a temporary array and QuickSort (TList.Sort) to sort the initial drawlist
- Clear the drawlist in the TLandscape.FillDrawList method
2009-08-04 18:02:39 +02:00