Commit Graph

4389 Commits (77bc79ab8816fe1f5ecbc55f6dce88170664d36e)

Author SHA1 Message Date
Dennis Schridde d24d632e62 Simplify raycasting by making it vector based (3D vectors instead of 2D values to make it future proof to my next attack)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5250 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-12 20:11:50 +00:00
Dennis Schridde 3e8fa065b8 Minor cleanup and dont use globals for callbacks in raycast.c anymore
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5249 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-12 20:11:42 +00:00
Dennis Schridde 74d6424fdc Remove unnecessary inclusion of raycast.h
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5248 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-12 20:11:36 +00:00
Dennis Schridde a31dce8cbc More vector functions: Conversion and integer division
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5247 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-12 20:11:27 +00:00
Giel van Schijndel f9171b825f Use sizeof instead of magic numbers
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5245 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-12 13:51:31 +00:00
Dennis Schridde e56b1580cc Cleanup raycasting
Make parameter to RAY_CALLBACK void* instead of PROPULSION_TYPE.
- Often it was not interpreted anyway, and in the single case where it is used a PROPULSION_TYPE* is now passed.
- Allows more generic raycasting with less globals to keep state. (Not used currently, all globals remain in use.)
Cleanup rayPointsToAngle and add Vector3f wrapper.
Fix an occasion where magic 360 was used instead of NUM_RAYS.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5244 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-12 12:20:20 +00:00
Dennis Schridde 482fbeecf2 Warzone 2100, I have the honour to release you from any license unclarities.
New licensing readme as found in http://forums.wz2100.net/viewtopic.php?f=6&t=1818#p17202
Move non-GPL information into seperate file.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5241 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-11 16:38:04 +00:00
Dennis Schridde adcac9d1e8 Add NTW Mod 1.6.6 by Delphinio under GPL2+
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5240 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-11 15:14:55 +00:00
Giel van Schijndel 05d71e2b19 Don't bother warning about some unused parameters in exchndl.c
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5239 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-09 19:58:56 +00:00
Steven Koenig 80a196de48 Print stylesheet:
* headings use sans-serif, non-headings use serif - typographic standard
* <a> that contain an href will show the URL in brackets after the </a>
* <a> is no longer underlined and normal text colours are used
* added new class 'locallink' to suppress URLs in brackets for href="#..."
* <pre> border thinned and solid instead of dashed
* <hr> increased width, reduced height

English XHTML readme:
* added class="locallink" to every <a> with href="#..."
* removed first line-break in <pre> to prevent empty line


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5238 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-08 18:04:02 +00:00
Elio Gubser e5b6cf18b6 continuing work on intfac1.svg
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5237 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-08 17:00:12 +00:00
Per Inge Mathisen 14460d938a Make sure that packet size is turned into big endian before we send it.
This breaks network compatibility with everything older than this commit.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5234 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-08 14:22:44 +00:00
Per Inge Mathisen a05859644a Fix two mistakes in r5176 (static string cleanup) that made us copy far
less from two strings than we should.


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5233 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-08 13:30:05 +00:00
Dennis Schridde 504ffcc625 Dont output any warnings in external sqlite.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5231 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-07 19:11:14 +00:00
Steven Koenig 88a486d14c English readmes:
* Added information to the section 'Cheats'; updated TOC


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5230 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-07 17:43:05 +00:00
Giel van Schijndel 1aa21f208e * Update Debian changelog
* Fix win32 version info
  * We live in 2008 now...
  * Use 2.0.993.0 instead of 2.0.3.0 for 2.1 beta3 (the same scheme was used for beta1 & beta2)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5227 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-07 12:26:03 +00:00
Dennis Schridde b8dd902636 Use more Vector_New
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5224 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-06 22:39:43 +00:00
Dennis Schridde a3ff407679 Rename VectorXY_Set to VectorXY_New and make it conform to API of the other vector functions
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5223 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-06 22:21:18 +00:00
Freddie Witherden 5fe6816fdd Fix building on OS X (some bozo forgot to update the Xcode project when adding new .c files). Update the font on OS X to Lucida Grande. Correct Framework install path to allow for moving executables.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5221 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-06 17:42:21 +00:00
Steven Koenig 69d91b86dd Readme-styles:
* Added style for <em> to style-sheets

English readmes:
* Updated 'Configuration' (includes 'WZ-dir and configuration file', 'Command-line options', 'Music' and 'Multiplaying via the internet')
* Added empty dummy sections 'Cheats' and 'Debug-keys' to not forget to add them (later), updated TOC


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5220 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-06 17:30:12 +00:00
Per Inge Mathisen 4c0fd74aae Forward port Changelog from 2.1
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5218 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-06 15:02:50 +00:00
Per Inge Mathisen 402a93cbd4 Fix bug #11733: Textures missing on first beta away mission
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5214 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-04 20:41:16 +00:00
Steven Koenig fbd576a329 English readmes:
* Updated 'Contents of Warzone 2100', 'State of the game' and 'Reporting Bugs'


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5213 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-04 20:03:28 +00:00
Giel van Schijndel 2be33c4286 Use WZ_DECL_UNUSED to squelch warnings about unused parameters in the PhysicsFS SQLite-VFS implementation
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5212 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-04 19:50:50 +00:00
Giel van Schijndel 3b4df24942 Use WZ_DECL_UNUSED for the data parameter of debug_callback_win32debug to squelch the warning about it being unused
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5211 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-04 17:50:40 +00:00
Dennis Schridde c29df7dae5 Variable to store default for distributor should not be the applicationdir variable...
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5210 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-04 15:20:03 +00:00
Dennis Schridde 8b2859c7e9 A dummy model, useful for testing
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5209 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-01 10:13:36 +00:00
Elio Gubser f8261c6427 beginning with intfac1, it's fairly big atm, because i copied some frontend svg's into
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5208 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-01 06:48:57 +00:00
Dennis Schridde 29d54a0956 Fix order to silence warning
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5207 4a71c877-e1ca-e34f-864e-861f7616d084
2008-06-01 01:05:26 +00:00
Dennis Schridde 8836ce7a4b warning: converting of negative value `-0x000000001' to `UDWORD'
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5206 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-31 23:17:27 +00:00
Dennis Schridde 2a934b06ce Indention fix and test the stats pointer, too.
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5205 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-31 09:42:54 +00:00
Giel van Schijndel 685b5f3338 Prefetch the column numbers for the WEAPON_STATS only once
* Changes O(n * m * l) to O(n + m * l) behaviour


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5204 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-29 10:18:31 +00:00
Giel van Schijndel 747f158b45 Abort (i.e. return false) when failing to find the column's numbers by looking them up using their names
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5203 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-29 10:18:23 +00:00
Giel van Schijndel f7df0848ec * Fetch the column numbers by column name only once for the BASE_STATS and COMP_BASE_STATS parts of every SQL query (rather than once for every result row from a query)
* This replaces O(n * m * l) behaviour with O(n + m * l) behaviour (where n is the amount of rows returned by a query, m the amount of columns resulting from a query and l the average length of each column's name)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5202 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-29 10:18:18 +00:00
Giel van Schijndel 91fc8a3b53 * Change colours for some of the status bars in the mission "completion score screen" to be more "vivid"
* Add a new colour: WZCOL_MENU_SHADOW
  * Use this colour instead of WZCOL_MENU_BACKGROUND to create a "Black shadow"

Closes #11; patch by Buginator


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5201 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-28 22:08:49 +00:00
Giel van Schijndel 388c2f2128 Use ARRAY_SIZE to determine the length of the cheat-code list rather than a NULL pointer at the end of the list (as a form of NUL-termination)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5200 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-28 22:08:34 +00:00
Giel van Schijndel 40831ddb22 * When loading from the SQLite database rely on the column's names rather than on their number/order of appearance
* Use an "inheritance"-like approach when loading the stats and load all BASE_STATS and COMP_BASE_STATS in a single function rather than duplicating it in every loading function (cuts down in 230 lines, whee!)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5199 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-28 20:57:53 +00:00
Giel van Schijndel 19b80a1a6b Make sure to parse `database` __before__ `file` (i.e. group it with other tokens starting with a `d`) to make sure that it gets recognised at all
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5198 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-28 20:55:49 +00:00
Elio Gubser a955be34c5 intfac0.svg done
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5197 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-28 18:40:29 +00:00
Giel van Schijndel c0296aa371 * Apparently the %destructor feature of Bison is implemented differently for 2.1 than it is for 2.3 (or it is broken in 2.1); so don't use it when compiling with Bison 2.1 (leak memory instead)
* Assume __all__ windows builds use Bison 2.1 (this isn't correct, but it's the best I can currently do, as Bison provides no version macros aside from a string macro)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5196 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-27 21:37:54 +00:00
Elio Gubser bab67317cd intfac0.svg almost done
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5195 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-26 20:12:16 +00:00
Elio Gubser fb0ffbc567 made the blue target pointer (when opening with inkscape there is also a circle-version of this pointer outside the border lines, but i'm not proud of it)
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5194 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-26 18:44:13 +00:00
Giel van Schijndel 6a648a6573 Update POTFILES.in
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5191 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-25 20:09:54 +00:00
Giel van Schijndel c8d9336618 Update the Pygments WRF lexer for the changes done to the WRF file format in r5188:5189
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5190 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-25 20:03:37 +00:00
Giel van Schijndel 1d739ce56b * Pass the table name as well from the .wrf resource file
* "table" will now attempt to load the given resource type from the given table (in the currently opened database)
 * Maintain the current database's name (for error message, etc.)
 * Pass the table name to the database loading functions and use it (in combination with sqlite3_mprintf) to produce the SQL statements


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5189 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-25 19:38:59 +00:00
Giel van Schijndel 452c167e9a * Add a new resource loading function type: RES_TABLELOAD
* Add two new keywords to the .wrf files: "database" and "table"
  * "database" will cause the given filename to be opened as a database file (using SQLite3)
  * "table" will attempt to load the given resource type from the currently opened database
 * Don't open the database in the file loading functions (src/data.c) anymore; turn them in table loading functions instead (which get the current database passed as a paramter)


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5188 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-25 19:38:53 +00:00
Giel van Schijndel 957889d4b9 * Make the load.*StatsFromDB functions load directly from a database (i.e. they don't need to open themself anymore)
* Open the SQLite3 database in src/data.c before invoking a load.*StatsFromDB function


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5187 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-25 19:38:38 +00:00
Steven Koenig 99c4e339c6 All readmes:
* Dropped the "GPL" in "Warzone 2100 GPL"

XHTML-readmes:
* Moved ids of anchors containing nothing else to the parent block-level element
* Added information about title and hreflang to outgoing links

CSS-files:
* Corrected stylesheets; now valid and no warnings



git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5185 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-25 15:44:17 +00:00
Giel van Schijndel f6693eebdf Fix a typo strrcat => sstrcat
git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5183 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-25 15:42:02 +00:00
Giel van Schijndel d193dce6f9 * Add a new resource type (for use with .wrf files): DBSENSOR which is similar to SSENSOR, with as difference that instead of a CSV file it specifies an SQLite database file to load from
* Add the code to load sensors from the sensor table of the given database file (function `loadSensorStatsFromDB`)
  * This code will make sure to load the sensor stats-data in a similar manner (i.e. the resulting data in-memory should be the same) to the sensor.txt loading code
 * Use this stats loading implementation on single player


git-svn-id: svn+ssh://svn.gna.org/svn/warzone/trunk@5182 4a71c877-e1ca-e34f-864e-861f7616d084
2008-05-25 15:41:04 +00:00