Skip to content

Commit

Permalink
[MIRROR] Removes some done todos (and ones that I think are dumb) [MD…
Browse files Browse the repository at this point in the history
…B IGNORE] (#25362)

* Removes some done todos (and ones that I think are dumb) (#80017)

## About The Pull Request

Most of these are mine that I just forgot about, only one I think anyone
cares about is the one in mobs.dm about making delta time match
subsystem yielding, but I think it's a bad idea so it's gone

Oh also, replaces an old comment of mine with an actual explanation
(it's about the icon cache and shit)

* Removes some done todos (and ones that I think are dumb)

---------

Co-authored-by: LemonInTheDark <[email protected]>
  • Loading branch information
2 people authored and FFMirrorBot committed Dec 1, 2023
1 parent 85bf0b9 commit d1ea207
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 15 deletions.
1 change: 0 additions & 1 deletion code/__HELPERS/paths/jps.dm
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
heuristic = get_dist(tile, node_goal)
f_value = number_tiles + heuristic

/// TODO: Macro this to reduce proc overhead
/proc/HeapPathWeightCompare(datum/jps_node/a, datum/jps_node/b)
return b.f_value - a.f_value

Expand Down
2 changes: 1 addition & 1 deletion code/controllers/subsystem/mobs.dm
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ SUBSYSTEM_DEF(mobs)
//cache for sanic speed (lists are references anyways)
var/list/currentrun = src.currentrun
var/times_fired = src.times_fired
var/seconds_per_tick = wait / (1 SECONDS) // TODO: Make this actually responsive to stuff like pausing and resuming
var/seconds_per_tick = wait / (1 SECONDS)
while(currentrun.len)
var/mob/living/L = currentrun[currentrun.len]
currentrun.len--
Expand Down
10 changes: 6 additions & 4 deletions code/modules/asset_cache/asset_list.dm
Original file line number Diff line number Diff line change
Expand Up @@ -362,10 +362,6 @@ GLOBAL_LIST_EMPTY(asset_datums)
else
to_generate += list(args.Copy())

// LEMON NOTE
// A GOON CODER SAYS BAD ICON ERRORS CAN BE THROWN BY THE "ICON CACHE"
// APPARENTLY IT MAKES ICONS IMMUTABLE
// LOOK INTO USING THE MUTABLE APPEARANCE PATTERN HERE
/datum/asset/spritesheet/proc/queuedInsert(sprite_name, icon/I, icon_state="", dir=SOUTH, frame=1, moving=FALSE)
I = icon(I, icon_state=icon_state, dir=dir, frame=frame, moving=moving)
if (!I || !length(icon_states(I))) // that direction or state doesn't exist
Expand All @@ -380,6 +376,12 @@ GLOBAL_LIST_EMPTY(asset_datums)

if (size)
var/position = size[SPRSZ_COUNT]++
// Icons are essentially representations of files + modifications
// Because of this, byond keeps them in a cache. It does this in a really dumb way tho
// It's essentially a FIFO queue. So after we do icon() some amount of times, our old icons go out of cache
// When this happens it becomes impossible to modify them, trying to do so will instead throw a
// "bad icon" error.
// What we're doing here is ensuring our icon is in the cache by refreshing it, so we can modify it w/o runtimes.
var/icon/sheet = size[SPRSZ_ICON]
var/icon/sheet_copy = icon(sheet)
size[SPRSZ_STRIPPED] = null
Expand Down
6 changes: 0 additions & 6 deletions code/modules/clothing/glasses/_glasses.dm
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@
var/list/color_cutoffs = null
/// The current hud icons
var/list/icon/current = list()
// Potentially replace glass_color_type with a setup that colors lighting by dropping segments of different componets
// Like the current idea, but applied without the mass cutoff (maybe? somehow?)
// That or just a light color to the lighting plane, that'd work too
// Enough to make it visible but not so much that it's a pain

// That, or just make stuff that uses lighting_cutoff have colored offsets and all, like you were planning
/// Colors your vision when worn
var/glass_colour_type
/// Whether or not vision coloring is forcing
Expand Down
2 changes: 1 addition & 1 deletion code/modules/mob/living/carbon/alien/special/facehugger.dm
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


//TODO: Make these simple_animals
//TODO: Make these basic mobs

#define MIN_IMPREGNATION_TIME 100 //time it takes to impregnate someone
#define MAX_IMPREGNATION_TIME 150
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@
if(!istype(potential_flash, /obj/item/assembly/flash/armimplant))
continue
var/obj/item/assembly/flash/armimplant/flash = potential_flash
flash.arm = WEAKREF(src) // Todo: wipe single letter vars out of assembly code
flash.arm = WEAKREF(src)

/obj/item/organ/internal/cyberimp/arm/flash/Extend()
. = ..()
Expand Down Expand Up @@ -325,7 +325,7 @@
if(!istype(potential_flash, /obj/item/assembly/flash/armimplant))
continue
var/obj/item/assembly/flash/armimplant/flash = potential_flash
flash.arm = WEAKREF(src) // Todo: wipe single letter vars out of assembly code
flash.arm = WEAKREF(src)

/obj/item/organ/internal/cyberimp/arm/surgery
name = "surgical toolset implant"
Expand Down

0 comments on commit d1ea207

Please sign in to comment.