Commit Graph

54 Commits

Author SHA1 Message Date
b242eafd02 various small fixes; some changes as in previous rev (which was only the files in lib/)
split a part of win.cpp up into wsysdep
GameSetup: bugfix for incorrect window title text

This was SVN commit r3204.
2005-12-07 03:44:17 +00:00
6af5888866 replace g_active with more clear g_app_has_focus and g_app_minimized
reinstate g_keys - realized that atlas mode cannot call SDL_GetKeyState
main: use g_app_minimized etc. to use up less CPU time when app isn't
active (makes debugging more bearable)

This was SVN commit r3070.
2005-10-31 18:36:36 +00:00
8c76dc34af g_keys[] has been made redundant by SDL's key array; use SDL_GetKeyState instead to get address of new keys array
fix W4 warnings (unused param and type conversion mostly)

This was SVN commit r3068.
2005-10-31 16:26:51 +00:00
32cfc6d807 minimap: now use GUI event system instead of polling. fixes broken click feature.
textureentry: add performance note
list, text: fix mousewheel direction
input: was going to add a deque to allow registering handlers in back
and front. obviated by minimap fix, though. cleaned up a bit and renamed
stuff (again, sigh).
loaderthunks: fixed weird alignment/padding warning

This was SVN commit r2979.
2005-10-20 15:27:39 +00:00
bed9363bfe lib/input.h was old+bad code. fixed in_add_handler return type to enum; renamed EV_PASS to IN_PASS; no longer include sdl.h from other code (instead rely on input.h)
This was SVN commit r2975.
2005-10-20 17:44:56 +00:00
953d2621dd timer: improved timer_add_client - no longer has fixed-size storage. btw, name will change here - not happy with SUM_TIMER.
GUI/input code: moved g_active, g_keys etc. into ps/Globals; it has its
own input handler as well

all users of fopen(): add file_make_full_native_path to get correct path
even though current dir = system/

This was SVN commit r2954.
2005-10-16 23:16:08 +00:00
7b31f0372b GameView: move camera lock params here
wsdl: add proper event queuing mechanism (no longer requires hacky
polling for changes and avoids WM_USER)
rename keys[] and mouse_buttons to g_keys and g_mouse_buttons
fix flipped mouse wheel direction; wsdl now sends up AND down event
(removed 'reset' hack in main.cpp)
main: clean up event handler and kill_mainloop

This was SVN commit r2934.
2005-10-13 18:05:55 +00:00
04650efe7a Lots of gcc -Wall fixes. The common ones:
- switch() statements don't handle all values in an enum
- missing \n at end of file
- non-virtual destructors in classes containing virtual functions
- order of initializers in constructor initializer lists
... some other stuff (signedness, nested comments, unused variables) as
well.

This was SVN commit r2864.
2005-10-07 15:24:29 +00:00
2790981eae CVSROOT: doesn't seem particularly useful now
ObjectBase: removed support for old actor format
Various: reduced sometimes-unnecessary header inclusions
Atlas: slightly nicer tool and message systems

This was SVN commit r2816.
2005-09-30 00:59:42 +00:00
4aa740bff5 - split up lib/res into file, graphics and sound.
- wposix.cpp: initial support for MEM_RESERVE and MEM_COMMIT semantics
in mmap
- cstr: removed no longer necessary serialization header
- xmlutils: wrap new() calls in nommgr/mmgr; allows tracking other
allocs in this file.
- add u64_from_u32
- various minor comments/improvements.

This was SVN commit r2604.
2005-08-12 17:06:53 +00:00
a69ac0dee9 - fix w4 warnings
- add convenience macros for config_db(CFG_GET_SYS_VAL)
- VFSUtil::EnumDirEnts now uses flags instead of bool recursive
- UNUSED() for params, UNUSED2 (<- need better name) for variables
- config.h defines must be tested with #if (always defined) -> allows
detecting misspellings thanks to compiler warnings
- replace debug_assert(0) with debug_warn (its sole purpose)
- replace ScriptingHost::ValueToInt et al with ToPrimitive
- use nommgr.h to disable both mmgr and VC debug heap

This was SVN commit r2585.
2005-08-09 15:55:44 +00:00
549150fe38 Atlas: simple camera control and terrain editing.
Terrain: added terrain-editing code to CTerrain, for better
encapsulation or something.
Console: simplified screen resizing.
Game/etc: removed some unnecessary header file inclusions.

This was SVN commit r2459.
2005-07-03 16:25:48 +00:00
ec6b78b252 rename assert2 debug_assert; use instead of all plain assert(), since there are no longer any issues (e.g. can't use while handling an exception)
This was SVN commit r2447.
2005-06-28 04:06:25 +00:00
fd4eb91e93 debug_out -> debug_printf; MICROLOG moved to ps/Pyrogenesis.h
This was SVN commit r2285.
2005-05-11 18:56:30 +00:00
bc5122fa08 UTF-8->CStrW conversion; used in saved console history.
This was SVN commit r2272.
2005-05-10 18:15:03 +00:00
MarkT
86dc351205 Projectile code and updates to some actors that can use it (celt_ijv and hele_iar)
This was SVN commit r2266.
2005-05-10 07:13:25 +00:00
a43205148b stomped various lint warnings:
- /* */ -> //
- clarified expressions
- add casts
- func() -> func(void)
- signed/unsigned

This was SVN commit r1772.
2005-01-23 17:45:25 +00:00
43271f7618 Ctrl+home, ctrl+end go to top/bottom of console
This was SVN commit r1609.
2005-01-01 18:12:23 +00:00
a2a6f29ab3 s/Prometheus/Pyrogenesis/
This was SVN commit r1459.
2004-12-05 21:56:09 +00:00
MarkT
793794649f Combat code, some scripting, broken network, and fixed some bugs.
This was SVN commit r1301.
2004-11-11 07:09:32 +00:00
a9075a887f - Chat fix (server user didn't see his own text)
- Removed filter for Ctrl-Alt combinations (some pretty useful chars
like {[]} are on AltGr/CtrlAlt combinations here in Sweden)

This was SVN commit r1177.
2004-09-21 14:31:02 +00:00
03ae01c44a Replaced all CStr16 with CStrW, because its name was too confusing
This was SVN commit r1109.
2004-09-03 14:08:12 +00:00
9fa5e3b57a Better Unicode support in the console
This was SVN commit r1038.
2004-08-24 11:07:50 +00:00
4d9c7684df w00t! first batch of actual network support!
This was SVN commit r1006.
2004-08-16 15:19:17 +00:00
00a70deafd Fixed the console's border
This was SVN commit r989.
2004-08-14 11:40:40 +00:00
b09896a62b Documented the console cursor character's magic number (U+FE33)
This was SVN commit r966.
2004-08-11 14:48:36 +00:00
4d202beb5b Less ambiguous cursor in console
This was SVN commit r965.
2004-08-10 17:16:46 +00:00
c248ae93eb Vital whitespace alterations
This was SVN commit r927.
2004-08-06 15:07:01 +00:00
MarkT
2b396ccb57 Minor improvements to some simulation code.
This was SVN commit r887.
2004-08-02 23:14:54 +00:00
MarkT
f02eab8aba Added configurable hotkey-cooker
This was SVN commit r795.
2004-07-21 16:34:07 +00:00
MarkT
194fdf9b4b Unit selection and ordering, setTimeout, scheduler, fixed timestep code, various fixes and reinforcement of the JS<->Native code.
This was SVN commit r783.
2004-07-20 19:30:35 +00:00
NoMonkey
3bf8a5255b no message
This was SVN commit r766.
2004-07-17 06:14:23 +00:00
370e328e89 no change
This was SVN commit r756.
2004-07-15 02:37:41 +00:00
8edbcc3f61 removed assert2 (surgeons leaving their tools inside the patient, tsk tsk ;))
This was SVN commit r752.
2004-07-14 03:24:19 +00:00
d895d9c10f Turn text upside down
This was SVN commit r743.
2004-07-13 22:44:20 +00:00
98224f4a9e add support for pasting from clipboard; move activation logic to input handler (more clear)
This was SVN commit r737.
2004-07-13 21:09:55 +00:00
ca5b760310 Linux/GCC: Changed a whole bunch of wide character format strings... In VC++,
the wide printf functions default %s to be a wide string. GCC defaults
it to
a narrow string. Everything I could find uses %ls or %hs as appropriate
now.

This was SVN commit r715.
2004-07-11 22:30:08 +00:00
f2dc64e75d Send log messages to the console
This was SVN commit r704.
2004-07-11 16:03:26 +00:00
9cead7eab8 Handle \n in inserted messages
This was SVN commit r703.
2004-07-11 15:07:38 +00:00
027d18a8b5 Linux/GCC compat
This was SVN commit r685.
2004-07-10 18:57:13 +00:00
c23d7830fd Minor improvements
This was SVN commit r605.
2004-06-26 12:58:35 +00:00
43c52335ae Added delete/home/end keys to console
This was SVN commit r604.
2004-06-26 12:45:54 +00:00
608e481398 fix event handler return value
This was SVN commit r603.
2004-06-25 22:22:05 +00:00
fc476e04f6 stomped on numerous warnings
This was SVN commit r584.
2004-06-21 16:29:47 +00:00
1514075c9f fixed last vestige of ascii-specific stuff (tolower)
This was SVN commit r569.
2004-06-19 21:35:00 +00:00
32b6627645 Miscellaneous gcc fixes
This was SVN commit r541.
2004-06-18 18:56:10 +00:00
f8247f56e0 Uses Unicode internally
This was SVN commit r521.
2004-06-16 15:42:48 +00:00
MarkT
e4fe4ed602 JS Interface to entities. It even partially works now.
This was SVN commit r469.
2004-06-10 22:24:03 +00:00
ac894d0886 GCC/linux compat
This was SVN commit r444.
2004-06-09 13:55:01 +00:00
264a0a9b86 fixed for loop variable, delete-ing malloc-ed memory, several memory leaks
Trim and ToLower are now in-place

This was SVN commit r435.
2004-06-09 13:35:20 +00:00