スコア上位500件のコメントを検索・フィルタ(全383,418件中)
hack to bypass a bug in the Linux 2.4 kernel pthreads implementation. cpu statistics are only traceable on a process level and the timers will report effectively no elapsed cpu time. this allows the ...
Can the player "see" the given grid in detail? He must have vision, illumination, and line of sight. Note -- "CAVE_LITE" is only set if the "torch" has "los()". So, given "CAVE_LITE", we know that the...
Generic "beam"/"bolt"/"ball" projection routine. Input: who: Index of "source" monster (zero for "player") rad: Radius of explosion (0 = beam/bolt, 1 to 9 = ball) y,x: Target location (or location to ...
XXX-HACK VERSION-Depend on 24bit memory buffer and use scanwrite!
$Log: frame.c,v $ Revision 1.67 2004/11/17 14:26:06 menno Infinite loop fix dunno if this is good, encoder might be tuned to use energies from before MS encoding. But since the MS encoded samples ar...
Note that Level generation is *not* an important bottleneck, though it can be annoyingly slow on older machines... Thus we emphasize "simplicity" and "correctness" over "speed". This entire file is o...
Init some stuff XXX XXX XXX Hack -- This function attempts to "fix" the nasty "Macintosh Save Bug" by using "absolute" path names, since on System 7 machines anyway, the "current working directory" of...
We are called from "project()" to "damage" terrain features We are called both for "beam" effects and "ball" effects. The "r" parameter is the "distance from ground zero". Note that we determine if th...
Wizard routines for creating objects -RAK- And for manipulating them! -Bernd- This has been rewritten to make the whole procedure of debugging objects much easier and more comfortab...
Handle "target" and "look". Note that this code can be called from "get_aim_dir()". All locations must be on the current panel. Consider the use of "panel_bounds()" to allow "off-panel" targets, perh...
FIXME: there be a hack here! neither 'dbip' nor 'get_dbip' should exist.
FIXME: why do we need to rebound? should mirroring really require a tolerance??
* Make a new loop (with specified orientation) and vertex, in a shell or face. XXX - vertex or vertexuse? or both? ctj If the vertex 'v' is NULL, the shell's lone vertex is used, or a new vertex is cr...
GRR TEMPORARY HACK: this is fundamentally no different from cases above; libpng should call our error handler to longjmp() back to us when png_ptr goes away. If we/it segfault instead, seems like a ...
Dynamic hashing, after CACM April 1988 pp 446-457, by Per-Ake Larson. Coded into C, with minor code improvements, and with hsearch(3) interface, by ejp@ausmelb.oz, Jul 26, 1988: 13:16; also, hcreate/h...
HACK Alert: I cannot be bothered to fix ctypes.com, so there has to be a way to use the old, broken sematics: _fields_ are not extended but replaced in subclasses. XXX Remove this in ctypes 1.0!
quick HACK, XXX FIXME MUST be optimized
There is a problem on the handling of _private for entities (bug 155816): Should we copy the content of the field from the entity (possibly overwriting some value set by the user when a copy is create...
FIXME -- this ugly hack needs to die. the result string should be stored before the call.
Explanation of the weirdness around the trashcan macros: Q. What do the trashcan macros do? A. Read the comment titled "Trashcan mechanism" in object.h. For one, this explains why there must be a call...
Hack -- Precompute a bunch of calls to distance() in find_safety() and find_hiding(). The pair of arrays dist_offsets_y[n] and dist_offsets_x[n] contain the offsets of all the locations with a distanc...
XXX - Reflection coefficients - hack until RR_ is changed
Here's the idea: scan from the "center" of each cell "out" until we hit the "edge" of the cell -- that is, the point at which some other color is closer -- and stop. In 1-D, this is simple: for i :=...
TODO: - Scan is probably too permissive about its modifiers. - C escapes in %#[] ? - Multibyte characters (done for format parsing, except scan groups) - Complex numbers? (C99 _Complex) - Boolean valu...
very ugly XVID padding bug detection FIXME/XXX solve this differently lets hope this at least works
XXX/FIXME this is a temporary hack until all encoders output pts
!! HORRIBLE HACK, but on my test devices, it seems that glClipPlanex is missing on the device but not in the SDK lib !!
Get a keypress from the user. This function recognizes a few "global parameters". These are variables which, if set to TRUE before calling this function, will have an effect on this function, and whi...
This file provides a generic, efficient, terminal window package, which can be used not only on standard terminal environments such as dumb terminals connected to a Unix box, but also in more modern "...
WARNING: Tricky kludge!!! The following statement assumes that the 'first' field of a genericListHead type has the same offset as the 'next' field of a genericList type. (There's no reason it shouldn...
XXX - HACK Swap our white entry to 0, and our back entry to 1. Fix x_pixel_table[] to remap them. This is to allow monochrome windows to still be readable while this colormap is loaded.
FIXME: how should we set up brep functionality without introducing lots of new public librt functions? right now, we reach into librt directly and export what we need from brep_debug.cpp which sucks.
XXX HACK CTJ - dgo_drawH_part2 sets the default color of a solid by looking in tps->ts_mater.ma_color, for pseudo solids, this needs to be something different and drawH has no idea or need to know wha...
XXX - backward compatibility hack
XXX hack hack, permute axes, for vertical letters. -M
XXX hack: just assume skylight
FIXME: This is a temporary kludge accommodating dumb binunifs that don't export their minor type or have table entries for all their types. (this gets pushed up when a functab wrapper is created)
XXX hack to restore es_int after rt_db_put_internal blows it away
GROSS HACK XXX we reverse the orientation of the faceuses and loopuses so that we can make the hole as a face, and transfer the hole to an existing face
GROSS HACK XXX we reverse the orientation of the faceuses and loopuses so that we can make the hole as a face, and transfer the hole to an existing face.
We need to work to get the output pixels and scanlines in order before we can run in parallel. Something like view.c does in its dynamic buffering mode. XXX this hack-around causes a need for more ca...
Concoct _some_ kind of background radiation when the ray misses the model and there is no environment map defined. XXX For now this is a gross hack.
HACK for "continued text", i.e. more text without a move command in between. We really need a better solution. - XXX
XXX A big hack, just for testing **
XXX HACK HACK -- shut off error checking